project.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. @use '../_variables';
  2. main{
  3. max-width: 80em;
  4. margin: auto;
  5. }
  6. div#details{
  7. min-height: 24em;
  8. margin: auto 4em 0 4em;
  9. h2{
  10. font-size: 300%;
  11. border-bottom: 0.2em solid;
  12. margin-left: 2em;
  13. @media only screen and (max-width : 800px){
  14. margin-left: initial;
  15. margin-bottom: 0.5em;
  16. border-bottom: 0.05em solid;
  17. text-align: center;
  18. }
  19. }
  20. p{margin: auto 0.2em;}
  21. @media only screen and (max-width : 600px) {margin: auto 1em;}
  22. }
  23. div#images{text-align: center;}
  24. img.img, video.img{
  25. vertical-align: middle;
  26. max-width: 12em;
  27. max-height: 14em;
  28. border: 0.1em solid variables.$primary-brown;
  29. border-radius: 0.3em;
  30. margin: 0.5em;
  31. cursor: pointer;
  32. position: relative;
  33. display: inline-block;
  34. }
  35. img.video_play{
  36. width: 3em;
  37. height: 3em;
  38. margin: 0 4.5em 0 -8em;
  39. z-index: 1;
  40. position: relative;
  41. }
  42. video.img::-webkit-media-controls{display: none;}
  43. img.img_main{
  44. max-width: 26em;
  45. max-height: 21em;
  46. float: left;
  47. margin: 0.5em 3em 0.5em 0.5em;
  48. @media only screen and (max-width : 800px){
  49. max-width: 100%;
  50. max-height: 24em;
  51. float: none;
  52. margin: 0.5em auto;
  53. display: block;
  54. }
  55. }
  56. div#gallery-cover{
  57. display: none;
  58. position: fixed;
  59. top: 0;
  60. left: 0;
  61. right: 0;
  62. bottom: 0;
  63. background-color: variables.$darker-brown;
  64. opacity: 0.4;
  65. transition: opacity 1s ease-in-out;
  66. z-index: 2;
  67. }
  68. div#gallery{
  69. display: none;
  70. position: fixed;
  71. top: 5%;
  72. left: 10%;
  73. right: 10%;
  74. bottom: 5%;
  75. background-color: variables.$background-off-white;
  76. border: 0.2em solid variables.$primary-brown;
  77. border-radius: 0.4em;
  78. transition: opacity 1s ease-in-out;
  79. text-align: center;
  80. z-index: 3;
  81. @media only screen and (max-width : 800px) {
  82. top: 4%;
  83. bottom: 2%;
  84. left: 2%;
  85. right: 2%;
  86. }
  87. h3{
  88. text-align: left;
  89. font-size: 140%;
  90. margin: 0.6em;
  91. border-bottom: 0.05em solid variables.$primary-brown;
  92. input[type='button']{
  93. float: right;
  94. padding: 0.3em 0.6em;
  95. margin: -0.3em;
  96. }
  97. }
  98. div#gallery-flex{
  99. display: flex;
  100. max-height: calc(100% - 8em);
  101. @media only screen and (max-width : 800px) {display: block;}
  102. div#gallery-flex-img-container{
  103. flex: 70%;
  104. padding: 1em;
  105. text-align: center;
  106. @media only screen and (max-width : 800px) {max-height: 60%;}
  107. img#gallery-img, video#gallery-video{
  108. border: 0.1em solid variables.$primary-brown;
  109. border-radius: 0.3em;
  110. max-width: 95%;
  111. max-height: 100%;
  112. margin: auto;
  113. @media only screen and (max-width : 800px) {
  114. display: block;
  115. max-height: calc(60% - 2em);
  116. max-width: 95%;
  117. margin: 0.2em auto;
  118. }
  119. }
  120. }
  121. p#gallery-text{
  122. flex: 25%;
  123. margin: 2%;
  124. background-color: #ddd;
  125. padding: 0.7em;
  126. text-align: left;
  127. border: 0.1em solid variables.$primary-brown;
  128. border-radius: 0.3em;
  129. overflow-y: scroll;
  130. @media only screen and (max-width : 800px) {
  131. display: block;
  132. margin: auto 2em;
  133. }
  134. }
  135. }
  136. div#gallery-controls{
  137. text-align: center;
  138. margin: 0;
  139. @media only screen and (max-width : 800px) {
  140. position: absolute;
  141. bottom: 0;
  142. width: 100%;
  143. }
  144. input[type='button']{
  145. display: inline-block;
  146. padding: 1em 1.5em;
  147. margin: 0.3em 1em;
  148. }
  149. }
  150. }