X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b0fadf2591f3af957c1c8e0307d0bcef9e9f8538..41c79d87e68ee700db66327131dbbe7947ed2158:/src/wolnelektury/static/2022/styles/components/_media.scss?ds=sidebyside

diff --git a/src/wolnelektury/static/2022/styles/components/_media.scss b/src/wolnelektury/static/2022/styles/components/_media.scss
index 576174be9..ebeb7aad2 100644
--- a/src/wolnelektury/static/2022/styles/components/_media.scss
+++ b/src/wolnelektury/static/2022/styles/components/_media.scss
@@ -54,6 +54,7 @@
   display: flex;
   align-items: center;
   justify-content: space-between;
+  position: relative;
 
   .icons {}
   .content {
@@ -76,6 +77,47 @@
     font-size: 12px;
     line-height: 140%;
   }
+
+  .c-media__settings {
+      position: absolute;
+      left: 0;
+      right: 0;
+      top: 0;
+      z-index: 5;
+      min-height: 30px;
+      overflow: hidden;
+      
+      .icon {
+          position: absolute;
+          transition: .5s rotate;
+          bottom: 0;
+          right: 0;
+          line-height: 30px;
+          width: 40px;
+          text-align: center;
+          margin: 0;
+      }
+      > div {
+          height: 0;
+          transition: .5s height;
+          overflow: hidden;
+          background: #F2F2F2;
+          border-bottom: 5px solid #D5ECED;
+          margin-top: -5px;
+          > div {
+              padding: 30px;
+          }
+      }
+      &.active {
+          .icon {
+              rotate: 180deg;
+              
+          }
+          > div {
+              height: 150px;
+          }
+      }
+  }
 }
 
 .c-media__popup {
@@ -89,9 +131,13 @@
   background-color: rgba($color-black, 0.35);
   display: none;
   overflow-y: scroll;
-  padding: 10vh 40px 40px 40px;
+  padding: 10vh 16px 10px 10px;
   width: 100%;
 
+  @include rwd($break-flow) {
+      padding: 10vh 40px 40px 40px;
+  }
+  
   &.is-open {
     display: flex;
   }
@@ -99,16 +145,23 @@
 
 .c-media__popup__box {
   background-color: #fff;
-  min-width: 640px;
   position: relative;
   border-radius: 10px;
   overflow: hidden;
+
+  @include rwd($break-flow) {
+      min-width: 640px;
+  }
 }
 
 .c-media__popup__box__lead {
-  padding: 40px;
+  padding: 16px 50px 16px 16px;
   background: #083F4D;
 
+  @include rwd($break-flow) {
+      padding: 40px;
+  }
+  
   h2 {
     margin-top: 0;
     font-weight: 600;
@@ -129,13 +182,17 @@
 }
 
 .c-media__popup__box__items {
-  padding: 40px;
+    padding: 16px;
+  @include rwd($break-flow) {
+      padding: 40px;
+  }
 }
 
 .c-media__popup__box__item {
   display: flex;
   align-items: center;
   justify-content: space-between;
+  column-gap: 16px;
   width: 100%;
   padding: 20px 0;
 
@@ -215,14 +272,19 @@
   cursor: pointer;
   font-size: 0;
   background-color: transparent;
-  top: 35px;
-  right: 40px;
+  top: 15px;
+  right: 20px;
   transition: all $ease-dynamic 350ms;
   opacity: 0.75;
 
   &:hover {
     opacity: 1;
   }
+
+  @include rwd($break-flow) {
+      top: 35px;
+      right: 40px;
+  }
 }
 
 .book-cover-small img {