| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- @use '../_variables';
- main{
- max-width: 80em;
- margin: auto;
- }
- section#details{
- min-height: 24em;
-
- h2{
- font-size: 300%;
- border-bottom: 0.2em solid;
- margin-left: 2em;
-
- @media only screen and (max-width : 800px){
- margin-left: initial;
- margin-bottom: 0.5em;
- border-bottom: 0.05em solid;
- text-align: center;
- }
- }
-
- p{margin: auto 0.2em;}
- @media only screen and (max-width : 600px) {margin: auto 1em;}
- }
- section.children{
- margin-left: 4em;
- margin-right: 4em;
- @media only screen and (max-width : 600px) {margin: auto 1em;}
- h3{
- font-size: 150%;
- border-bottom: 0.2em solid;
- margin-left: -2em;
- margin-right: -2em;
- @media only screen and (max-width : 800px){
- margin-left: 0;
- margin-right: 0;
- margin-bottom: 0.3em;
- border-bottom: 0.03em solid;
- text-align: center;
- }
-
-
- }
- section.children-images{
- text-align: center;
- }
- }
- section#images{text-align: center;}
- img.img, video.img{
- vertical-align: middle;
- max-width: 12em;
- max-height: 14em;
- border: 0.1em solid variables.$primary-brown;
- border-radius: 0.3em;
- margin: 0.5em;
- cursor: pointer;
- position: relative;
- display: inline-block;
- @media only screen and (max-width : 600px) {
- max-width: calc(50% - 1.5em);
- margin: 0.2em;
- border-radius: 0.2em;
- }
- }
- img.video_play{
- width: 3em;
- height: 3em;
- margin: 0 4.5em 0 -8em;
- z-index: 1;
- position: relative;
- }
- video.img::-webkit-media-controls{display: none;}
- img.img_main{
- max-width: 26em;
- max-height: 21em;
- float: left;
- margin: 0.5em 3em 0.5em 0.5em;
- @media only screen and (max-width : 800px){
- max-width: 100%;
- max-height: 24em;
- float: none;
- margin: 0.5em auto;
- display: block;
- }
- }
- div#gallery-cover{
- display: none;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: variables.$darker-brown;
- opacity: 0.4;
- transition: opacity 1s ease-in-out;
- z-index: 2;
- }
- div#gallery{
- display: none;
- position: fixed;
- flex-direction: column;
- top: 5%;
- left: 10%;
- right: 10%;
- bottom: 5%;
- background-color: variables.$background-off-white;
- border: 0.2em solid variables.$primary-brown;
- border-radius: 0.4em;
- transition: opacity 1s ease-in-out;
- text-align: center;
- overflow: hidden;
- z-index: 3;
-
- @media only screen and (max-width : 800px) {
- top: 4%;
- bottom: 2%;
- left: 2%;
- right: 2%;
- }
-
- div#gallery-fade{
- background-color: variables.$background-off-white;
- display: none;
- display: block;
- height: calc(100% - 3.7em);
- width: 100%;
- position: absolute;
- z-index: 6;
- opacity: 0.5;
- transition: opacity 0.2s;
- }
- h3{
- flex: 0 0 auto;
- text-align: left;
- font-size: 140%;
- margin: 0.6em;
- border-bottom: 0.05em solid variables.$primary-brown;
- input[type='button']{
- position: absolute;
- right: 0.2em;
- top: 0.2em;
- font-size: 130%;
- @media only screen and (max-width : 800px) {
- right: 0.15em;
- top: 0.15em;
- font-size: 90%;
- }
- }
-
- }
-
- div#gallery-content{
- display: flex;
- flex-direction: column;
- flex: 1 1 auto;
- min-height: 0;
- width: 100%;
- }
-
- div#gallery-flex{
- display: flex;
- flex-direction: row;
- flex: 1 1 auto;
- min-height: 0;
- width: 100%;
-
- @media only screen and (max-width : 800px) {
- flex-direction: column;
- }
-
- div#gallery-flex-img-container{
- flex: 70%;
- padding: 1em;
- text-align: center;
- min-height: 0;
- display: flex;
- align-items: center;
- justify-content: center;
-
- @media only screen and (max-width : 800px) {
- flex: 1 1 auto;
- max-height: none;
- padding: 0.35em 1em 0.2em;
- align-items: stretch;
- justify-content: stretch;
- }
-
- img#gallery-img, video#gallery-video{
-
- border-radius: 0.3em;
- max-width: 100%;
- max-height: 100%;
- margin: 0;
- display: block;
-
- @media only screen and (max-width : 800px) {
- width: 100%;
- height: 100%;
- max-width: none;
- max-height: none;
- object-fit: contain;
- }
- }
- }
-
- p#gallery-text{
- flex: 25%;
- margin: 2% 2% 2% auto;
- background-color: #ddd;
- padding: 0.7em;
- text-align: left;
- border: 0.1em solid variables.$primary-brown;
- border-radius: 0.3em;
- overflow-y: scroll;
-
- @media only screen and (max-width : 800px) {
- margin: 0.2em 1em 0;
- flex: 0 0 auto;
- max-height: none;
- overflow-y: visible;
- }
- }
- }
- div#gallery-controls{
- flex: 0 0 auto;
- text-align: center;
- margin: 0;
- padding-bottom: 0.2em;
-
- @media only screen and (max-width : 800px) {
- width: 100%;
- display: flex;
- }
-
- input[type='button']{
- display: inline-block;
- padding: 1em 1.5em;
- margin: 0.3em 1em;
- @media only screen and (max-width : 800px){flex: 1 1 50%}
- }
- }
- }
|