project.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. @use '../_variables';
  2. main{
  3. max-width: 80em;
  4. margin: auto;
  5. }
  6. section#details{
  7. min-height: 24em;
  8. h2{
  9. font-size: 300%;
  10. border-bottom: 0.2em solid;
  11. margin-left: 2em;
  12. @media only screen and (max-width : 800px){
  13. margin-left: initial;
  14. margin-bottom: 0.5em;
  15. border-bottom: 0.05em solid;
  16. text-align: center;
  17. }
  18. }
  19. p{margin: auto 0.2em;}
  20. @media only screen and (max-width : 600px) {margin: auto 1em;}
  21. }
  22. section.children{
  23. margin-left: 4em;
  24. margin-right: 4em;
  25. @media only screen and (max-width : 600px) {margin: auto 1em;}
  26. h3{
  27. font-size: 150%;
  28. border-bottom: 0.2em solid;
  29. margin-left: -2em;
  30. margin-right: -2em;
  31. @media only screen and (max-width : 800px){
  32. margin-left: 0;
  33. margin-right: 0;
  34. margin-bottom: 0.3em;
  35. border-bottom: 0.03em solid;
  36. text-align: center;
  37. }
  38. }
  39. section.children-images{
  40. text-align: center;
  41. }
  42. }
  43. section#images{text-align: center;}
  44. img.img, video.img{
  45. vertical-align: middle;
  46. max-width: 12em;
  47. max-height: 14em;
  48. border: 0.1em solid variables.$primary-brown;
  49. border-radius: 0.3em;
  50. margin: 0.5em;
  51. cursor: pointer;
  52. position: relative;
  53. display: inline-block;
  54. @media only screen and (max-width : 600px) {
  55. max-width: calc(50% - 1.5em);
  56. margin: 0.2em;
  57. border-radius: 0.2em;
  58. }
  59. }
  60. img.video_play{
  61. width: 3em;
  62. height: 3em;
  63. margin: 0 4.5em 0 -8em;
  64. z-index: 1;
  65. position: relative;
  66. }
  67. video.img::-webkit-media-controls{display: none;}
  68. img.img_main{
  69. max-width: 26em;
  70. max-height: 21em;
  71. float: left;
  72. margin: 0.5em 3em 0.5em 0.5em;
  73. @media only screen and (max-width : 800px){
  74. max-width: 100%;
  75. max-height: 24em;
  76. float: none;
  77. margin: 0.5em auto;
  78. display: block;
  79. }
  80. }
  81. div#gallery-cover{
  82. display: none;
  83. position: fixed;
  84. top: 0;
  85. left: 0;
  86. right: 0;
  87. bottom: 0;
  88. background-color: variables.$darker-brown;
  89. opacity: 0.4;
  90. transition: opacity 1s ease-in-out;
  91. z-index: 2;
  92. }
  93. div#gallery{
  94. display: none;
  95. position: fixed;
  96. flex-direction: column;
  97. top: 5%;
  98. left: 10%;
  99. right: 10%;
  100. bottom: 5%;
  101. background-color: variables.$background-off-white;
  102. border: 0.2em solid variables.$primary-brown;
  103. border-radius: 0.4em;
  104. transition: opacity 1s ease-in-out;
  105. text-align: center;
  106. overflow: hidden;
  107. z-index: 3;
  108. @media only screen and (max-width : 800px) {
  109. top: 4%;
  110. bottom: 2%;
  111. left: 2%;
  112. right: 2%;
  113. }
  114. div#gallery-fade{
  115. background-color: variables.$background-off-white;
  116. display: none;
  117. display: block;
  118. height: calc(100% - 3.7em);
  119. width: 100%;
  120. position: absolute;
  121. z-index: 6;
  122. opacity: 0.5;
  123. transition: opacity 0.2s;
  124. }
  125. h3{
  126. flex: 0 0 auto;
  127. text-align: left;
  128. font-size: 140%;
  129. margin: 0.6em;
  130. border-bottom: 0.05em solid variables.$primary-brown;
  131. input[type='button']{
  132. position: absolute;
  133. right: 0.2em;
  134. top: 0.2em;
  135. font-size: 130%;
  136. @media only screen and (max-width : 800px) {
  137. right: 0.15em;
  138. top: 0.15em;
  139. font-size: 90%;
  140. }
  141. }
  142. }
  143. div#gallery-content{
  144. display: flex;
  145. flex-direction: column;
  146. flex: 1 1 auto;
  147. min-height: 0;
  148. width: 100%;
  149. }
  150. div#gallery-flex{
  151. display: flex;
  152. flex-direction: row;
  153. flex: 1 1 auto;
  154. min-height: 0;
  155. width: 100%;
  156. @media only screen and (max-width : 800px) {
  157. flex-direction: column;
  158. }
  159. div#gallery-flex-img-container{
  160. flex: 70%;
  161. padding: 1em;
  162. text-align: center;
  163. min-height: 0;
  164. display: flex;
  165. align-items: center;
  166. justify-content: center;
  167. @media only screen and (max-width : 800px) {
  168. flex: 1 1 auto;
  169. max-height: none;
  170. padding: 0.35em 1em 0.2em;
  171. align-items: stretch;
  172. justify-content: stretch;
  173. }
  174. img#gallery-img, video#gallery-video{
  175. border-radius: 0.3em;
  176. max-width: 100%;
  177. max-height: 100%;
  178. margin: 0;
  179. display: block;
  180. @media only screen and (max-width : 800px) {
  181. width: 100%;
  182. height: 100%;
  183. max-width: none;
  184. max-height: none;
  185. object-fit: contain;
  186. }
  187. }
  188. }
  189. p#gallery-text{
  190. flex: 25%;
  191. margin: 2% 2% 2% auto;
  192. background-color: #ddd;
  193. padding: 0.7em;
  194. text-align: left;
  195. border: 0.1em solid variables.$primary-brown;
  196. border-radius: 0.3em;
  197. overflow-y: scroll;
  198. @media only screen and (max-width : 800px) {
  199. margin: 0.2em 1em 0;
  200. flex: 0 0 auto;
  201. max-height: none;
  202. overflow-y: visible;
  203. }
  204. }
  205. }
  206. div#gallery-controls{
  207. flex: 0 0 auto;
  208. text-align: center;
  209. margin: 0;
  210. padding-bottom: 0.2em;
  211. @media only screen and (max-width : 800px) {
  212. width: 100%;
  213. display: flex;
  214. }
  215. input[type='button']{
  216. display: inline-block;
  217. padding: 1em 1.5em;
  218. margin: 0.3em 1em;
  219. @media only screen and (max-width : 800px){flex: 1 1 50%}
  220. }
  221. }
  222. }