Просмотр исходного кода

Style buttons inside alerts (previously had the same colours for backgrounds).

Paulo Reis 8 лет назад
Родитель
Сommit
b8f14873d2

+ 3 - 0
services/web/public/stylesheets/components/alerts.less

@@ -71,4 +71,7 @@
     color: white;
     color: white;
     text-decoration: underline;
     text-decoration: underline;
   }
   }
+  .btn {
+    text-decoration: none;
+  }
 }
 }

+ 8 - 0
services/web/public/stylesheets/core/mixins.less

@@ -438,6 +438,7 @@
   .alert-link-as-btn when (@is-overleaf = true) {
   .alert-link-as-btn when (@is-overleaf = true) {
     display: inline-block;
     display: inline-block;
     font-weight: bold;
     font-weight: bold;
+    text-decoration: none;
     .button-variant(#FFF, shade(@background, 20%), transparent);
     .button-variant(#FFF, shade(@background, 20%), transparent);
     .button-size(@padding-xs-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);
     .button-size(@padding-xs-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);
     &:hover {
     &:hover {
@@ -511,6 +512,10 @@
   background-color: @background;
   background-color: @background;
   border-color: @border;
   border-color: @border;
 
 
+  .alert & when (@is-overleaf = true) {
+      background-color: darken(@background, 16%);
+  }
+
   &:hover,
   &:hover,
   &:focus,
   &:focus,
   &:active,
   &:active,
@@ -520,6 +525,9 @@
     color: @color;
     color: @color;
     background-color: darken(@background, 8%);
     background-color: darken(@background, 8%);
         border-color: darken(@border, 12%);
         border-color: darken(@border, 12%);
+      .alert & when (@is-overleaf = true) {
+          background-color: darken(@background, 24%);
+      }
   }
   }
   &:active,
   &:active,
   &.active,
   &.active,