home.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. @use '../_variables';
  2. section#profile{
  3. max-width: 65em;
  4. margin: 1em auto;
  5. padding:0.5em 1em;
  6. img{
  7. max-width: 12em;
  8. height: 12em;
  9. border-radius: 50%;
  10. border: 0.3em solid variables.$primary-brown;
  11. margin-right: 2em;
  12. display: inline-block;
  13. vertical-align: middle;
  14. z-index: 1;
  15. position: relative;
  16. @media screen and (max-width: 800px){
  17. height: initial;
  18. max-height: initial;
  19. max-width: calc(30% - 2em);
  20. margin-right: 1em;
  21. margin-right: 0;
  22. }
  23. }
  24. div#profile-text{
  25. max-width: calc(100% - 18em);
  26. display: inline-block;
  27. height: 10em;
  28. max-height: 10em;
  29. vertical-align: middle;
  30. border-bottom: 0.2em solid variables.$primary-brown;
  31. border-top: 0.2em solid variables.$primary-brown;
  32. border-top-right-radius: 1em;
  33. border-bottom-right-radius: 1em;
  34. margin-left: -7em;
  35. padding: 0.5em 3em 0.5em 7em;
  36. z-index:0;
  37. position: relative;
  38. background: linear-gradient(90deg, #eeeeee 99%, #ffffff00 100%);
  39. @media screen and (max-width: 800px){
  40. max-width: 65%;
  41. font-size: 90%;
  42. border-bottom: 0;
  43. border-top: 0;
  44. background: initial;
  45. margin-left: initial;
  46. padding: 0.3em 0.3em 0.3em 0.8em;
  47. margin: 0;
  48. height: initial;
  49. max-height: initial;
  50. }
  51. p{margin: 0.3em 0;}
  52. p:first-child{font-weight: bold;}
  53. }
  54. }
  55. section#catalog{
  56. text-align: center;
  57. font-size: 0;
  58. article{
  59. position: relative;
  60. display: inline-block;
  61. vertical-align: top;
  62. width: calc(33% - 1.2em);
  63. max-width: 15em;
  64. aspect-ratio: 1;
  65. overflow: hidden;
  66. border: 0.1em solid variables.$primary-brown;
  67. border-radius: 0.3em;
  68. margin: 0.5em;
  69. font-size: initial;
  70. @media only screen and (max-width : 600px) {
  71. width: calc(33% - 0.12em);
  72. margin: 0;
  73. border-radius: 0;
  74. }
  75. img.project-image, img.project-image-alt{
  76. object-fit: cover;
  77. object-position: center;
  78. width: 100%;
  79. height: 100%;
  80. scale: 1;
  81. position: absolute;
  82. left: 0;
  83. transition: opacity 0.5s ease-in-out, scale 0.5s ease-in-out;
  84. @media only screen and (max-width : 600px) {
  85. width: 100%;
  86. height: 100%;
  87. }
  88. }
  89. div.project_details{
  90. position: absolute;
  91. bottom: 0em;
  92. width: 100%;
  93. height: 100%;
  94. text-align: right;
  95. margin: 0;
  96. padding: 0;
  97. opacity: 0;
  98. background: #000000;
  99. background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 0) 37%, rgba(0, 0, 0, 0) 100%);
  100. transition: opacity 0.5s ease-in-out;
  101. h3{
  102. margin: 0.3em;
  103. width: calc(100% - 0.6em);
  104. position: absolute;
  105. bottom: 0em;
  106. color: var(--accent-gold);
  107. font-size: 150%;
  108. line-height: 1;
  109. @media only screen and (max-width : 600px){font-size: 120%;}
  110. }
  111. }
  112. }
  113. }
  114. @media (hover: hover) {
  115. section#catalog article:hover img{scale: 1.2;}
  116. section#catalog article:hover div.project_details{opacity: 0.8;}
  117. }
  118. @media (hover: none) {
  119. section#catalog article div.project_details{opacity: 0.8;}
  120. }