]> git.agnieray.net Git - galette.git/blobdiff - ui/semantic/galette/globals/site.overrides
Fix menu horizontal scroll when name is too long
[galette.git] / ui / semantic / galette / globals / site.overrides
index 7946160342ce89f5ca579ad42bfedfc2fad020d7..57ec3a4af5c515cd9ad0e2eada44c1bba2b9d74f 100644 (file)
   display: none !important;
 }
 
+.ui.corner.label .icon.btnlegend {
+    cursor: pointer;
+}
+
 /* Content using visually-hidden is read by screen readers */
 .visually-hidden {
   position: absolute !important;
@@ -114,9 +118,10 @@ body.pushable:not(.loggedin) {
     display: flex;
     justify-content: center;
   }
-  main ~ footer.ui.segment {
-    margin-top: -120px;
+  footer.page-footer {
+    position: relative;
     z-index: 2;
+    margin-top: -120px;
   }
 }
 
@@ -168,6 +173,10 @@ aside .ui.vertical.menu {
   max-width: 100%;
 }
 
+aside .ui.small.compact.fluid.menu .ui.item {
+  max-width: 14.688rem;
+}
+
 .loggedin .content {
   .ui.horizontal.segments.header {
     flex-direction: row-reverse;
@@ -179,11 +188,83 @@ footer .ui.horizontal.list .list > .item,
 footer .ui.horizontal.list > .item{
   font-size: .95rem;
 }
+footer.page-footer {
+  position: relative;
+  background-color: @pageBackground;
+}
+main.pusher ~ footer.page-footer {
+  transition: transform .5s ease;
+  &:after {
+    position: absolute;
+    top: 0;
+    right: 0;
+    content: "";
+    background: @lightTextColor;
+    overflow: hidden;
+    opacity: 0;
+    transition: all .5s;
+    will-change: opacity;
+  }
+}
+main.pusher.dimmed {
+  & ~ footer.page-footer {
+    transform: translate3d(260px, 0, 0);
+    &:after {
+      width: 100% !important;
+      height: 100% !important;
+      opacity: 1 !important;
+    }
+  }
+  &.closing ~ footer.page-footer {
+    transform: translate3d(0, 0, 0);
+    z-index: 1;
+    &:after {
+      opacity: 0 !important;
+    }
+  }
+}
+body:not(.loggedin) main.pusher.dimmed.closing ~ footer.page-footer {
+  z-index: 2;
+}
 
 @media only screen and (max-width: @largestMobileScreen) {
   html.public_page .ui.ui.ui.container:not(.fluid) {
     width: 100%;
   }
+  .core-lists-properties,
+  .core-fields-properties {
+    display: none !important;
+  }
+  .core-lists-listing,
+  .core-fields-listing {
+    i.arrows.alternate {
+      display: block;
+      margin: 1rem auto;
+      &::before {
+        display: block;
+      }
+    }
+  }
+  .core-lists-listing {
+    span[data-prop-label] {
+      display: block;
+      text-align: center;
+      &::before {
+          display: block;
+          content: attr(data-prop-label);
+          text-align: center;
+          font-weight: bold;
+      }
+    }
+  }
+  .core-fields-listing {
+    span[data-prop-label]::before {
+        display: inline-block;
+        content: attr(data-prop-label);
+        width: 10em;
+        font-weight: bold;
+    }
+  }
 }
 
 @media only screen and (max-width: 991px) {
@@ -282,7 +363,7 @@ footer .ui.horizontal.list > .item{
     display: block;
   }
 
-  html:not(.public_page) body:not(.front-page) main ~ footer.ui.segment,
+  html:not(.public_page) body:not(.front-page) footer.page-footer .footer-wrapper,
   body:not(.front-page) section.content {
     margin-left: 260px;
     flex: 1 1 auto;
@@ -329,7 +410,7 @@ footer .ui.horizontal.list > .item{
     width: 350px;
   }
 
-  html:not(.public_page) body:not(.front-page) main ~ footer.ui.segment,
+  html:not(.public_page) body:not(.front-page) footer.page-footer .footer-wrapper,
   body:not(.front-page) section.content {
     margin-left: 350px;
   }
@@ -539,7 +620,7 @@ ul.leaders span + span {
   .infoline .right.aligned.segment,
   .actions_row,
   .ui.pagination.menu,
-  main ~ footer.ui.segment,
+  footer.page-footer,
   #back2top {
     display: none !important;
   }