mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 00:58:14 -05:00
Remove Darken and Ligthen SCSS
Updated all the places in the SCSS where we use Darken and Lighten properties. These properties have been problematic in the past and caused some state issues, e.g. New message(s) hightlight (which was fixed seperately from this issue)
This commit is contained in:
parent
4b3d6b9e9d
commit
6a8676ea35
11 changed files with 35 additions and 37 deletions
|
@ -5,6 +5,7 @@ $ui-blue-10percent: hsla(215, 100, 65, .1);
|
||||||
$ui-blue-25percent: hsla(215, 100, 65, .25);
|
$ui-blue-25percent: hsla(215, 100, 65, .25);
|
||||||
|
|
||||||
$ui-orange: hsla(38, 100, 55, 1); // #FFAB19 Control Primary
|
$ui-orange: hsla(38, 100, 55, 1); // #FFAB19 Control Primary
|
||||||
|
$ui-orange-10percent: hsla(35, 90, 55, .1);
|
||||||
$ui-orange-25percent: hsla(35, 90, 55, .25);
|
$ui-orange-25percent: hsla(35, 90, 55, .25);
|
||||||
|
|
||||||
$ui-light-gray: hsla(0, 0, 98, 1); //#FAFAFA
|
$ui-light-gray: hsla(0, 0, 98, 1); //#FAFAFA
|
||||||
|
@ -39,6 +40,7 @@ $overlay-gray: hsla(0, 0, 0, .75);
|
||||||
/* Typography Colors */
|
/* Typography Colors */
|
||||||
$header-gray: hsla(225, 15, 40, 1); //#575E75
|
$header-gray: hsla(225, 15, 40, 1); //#575E75
|
||||||
$type-gray: hsla(225, 15, 40, 1); //#575E75
|
$type-gray: hsla(225, 15, 40, 1); //#575E75
|
||||||
|
$type-gray-75percent: hsla(225, 15, 40, .75);
|
||||||
$type-white: hsla(0, 100, 100, 1); //#FFF
|
$type-white: hsla(0, 100, 100, 1); //#FFF
|
||||||
|
|
||||||
$link-blue: $ui-blue;
|
$link-blue: $ui-blue;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
.char-count {
|
.char-count {
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
color: lighten($type-gray, 30%);
|
color: $type-gray-75percent;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
||||||
&.overmax {
|
&.overmax {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
@import "../../frameless";
|
@import "../../frameless";
|
||||||
|
|
||||||
$base-bg: $ui-light-gray;
|
$base-bg: $ui-light-gray;
|
||||||
$pass-bg: lighten($ui-aqua, 35%);
|
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
label {
|
label {
|
||||||
|
@ -32,8 +31,7 @@ $pass-bg: lighten($ui-aqua, 35%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.pass {
|
&.pass {
|
||||||
border: 1px solid $active-dark-gray;
|
border: 1px solid $ui-aqua;
|
||||||
background-color: $pass-bg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* IE10/11-specific style resets */
|
/* IE10/11-specific style resets */
|
||||||
|
|
|
@ -41,7 +41,7 @@ a.social-messages-profile-link {
|
||||||
color: $type-gray;
|
color: $type-gray;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: darken($type-gray, 10);
|
color: $link-blue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
animation: circleFadeDelay 1.2s infinite ease-in-out both;
|
animation: circleFadeDelay 1.2s infinite ease-in-out both;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
background-color: darken($ui-white, 8%);
|
background-color: $ui-gray;
|
||||||
width: 15%;
|
width: 15%;
|
||||||
height: 15%;
|
height: 15%;
|
||||||
content: "";
|
content: "";
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: lighten($link-blue, 40%);
|
background-color: $ui-blue-10percent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ p {
|
||||||
padding: 1.25em;
|
padding: 1.25em;
|
||||||
|
|
||||||
&.orange {
|
&.orange {
|
||||||
background-color: lighten($ui-orange, 30);
|
background-color: $ui-orange-10percent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ p {
|
||||||
}
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background-color: lighten($ui-blue, 30);
|
background-color: $ui-blue-25percent;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol,
|
ol,
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: lighten($ui-blue, 40);
|
background-color: $ui-blue-25percent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.conf2017-title-band {
|
.conf2017-title-band {
|
||||||
background-color: lighten($ui-blue, 10%);
|
background-color: $ui-blue-10percent;
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: $type-white;
|
color: $type-white;
|
||||||
|
|
|
@ -54,9 +54,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-message {
|
.admin-message {
|
||||||
border: 1px solid darken($ui-gray, 10);
|
border: 1px solid $active-dark-gray;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: lighten($ui-blue, 40);
|
background-color: $ui-blue-25percent;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,6 @@ $base-bg: $ui-white;
|
||||||
max-width: calc(100% - 2rem);
|
max-width: calc(100% - 2rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
$darken-button: rgba(0, 0, 0, .1);
|
|
||||||
|
|
||||||
.tips-button {
|
.tips-button {
|
||||||
margin-right: .75rem;
|
margin-right: .75rem;
|
||||||
background-color: $ui-blue;
|
background-color: $ui-blue;
|
||||||
|
@ -41,7 +39,7 @@ $darken-button: rgba(0, 0, 0, .1);
|
||||||
|
|
||||||
&.getting-started-button {
|
&.getting-started-button {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
background-color: $darken-button;
|
background-color: $ui-aqua;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|
Loading…
Reference in a new issue