Ver Fonte

Merge pull request #10431 from overleaf/jel-ieee-btns

[web] Update IEEE variables for new build

GitOrigin-RevId: 7f94ca94619b4f599936da6cb3a7fa1955f08f55
Jessica Lawshe há 3 anos atrás
pai
commit
b425569dc8

+ 1 - 1
services/web/frontend/stylesheets/core/mixins.less

@@ -590,7 +590,7 @@
   }
   }
 }
 }
 
 
-.btn-borderless(@color: @white; @background: @green; @background-hover: @btn-primary-hover-bg-color) {
+.btn-borderless(@color: @white; @background: @brand-primary; @background-hover: @btn-primary-hover-bg-color) {
   color: @color;
   color: @color;
   background-color: @background;
   background-color: @background;
   border-color: @background; // add a border that is same as background color so that the height matches the btn-bordered style
   border-color: @background; // add a border that is same as background color so that the height matches the btn-bordered style

+ 9 - 0
services/web/frontend/stylesheets/variables/themes/ieee.less

@@ -24,6 +24,12 @@
 @ol-red: @ieee-red;
 @ol-red: @ieee-red;
 @ol-dark-red: darken(@ieee-red, 15%);
 @ol-dark-red: darken(@ieee-red, 15%);
 
 
+@green: @ol-green;
+@green-dark: @ol-dark-green;
+@blue: @ol-blue;
+@blue-dark: @ol-dark-blue;
+@red: @ol-red;
+
 @brand-primary: @ieee-blue;
 @brand-primary: @ieee-blue;
 @brand-secondary: @ieee-dark-blue;
 @brand-secondary: @ieee-dark-blue;
 @brand-success: @ol-blue;
 @brand-success: @ol-blue;
@@ -50,3 +56,6 @@
 @navbar-default-link-hover-bg: @ieee-blue;
 @navbar-default-link-hover-bg: @ieee-blue;
 @navbar-default-link-hover-color: @ieee-blue;
 @navbar-default-link-hover-color: @ieee-blue;
 @navbar-default-link-active-bg: @ieee-blue;
 @navbar-default-link-active-bg: @ieee-blue;
+
+@btn-primary-hover-bg-color: darken(@brand-primary, 8%);
+@btn-default-bg: @ol-blue-gray-4;