Skip to content

Commit

Permalink
Rename to styles/color
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitlock committed Nov 5, 2024
1 parent 19e0218 commit 75daca6
Show file tree
Hide file tree
Showing 71 changed files with 462 additions and 462 deletions.
32 changes: 16 additions & 16 deletions frontend/src/components/Banner.module.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;
@use "../styles/tokens";
@use "../styles/color";

.banner {
border-radius: $border-radius-md;
padding: $spacing-md;
background-color: tokens.$color-white;
background-color: color.$white;
position: relative;
box-shadow: $box-shadow-sm;

&.promo {
// This is the gradient border width (which is implemented as a background image):
padding: 2px;
box-shadow: none;
background-image: tokens.$firefoxGradient;
background-image: color.$firefoxGradient;
}

&.warning {
Expand Down Expand Up @@ -44,15 +44,15 @@
padding: 0;

&:hover {
background-color: tokens.$color-blue-50;
color: tokens.$color-white;
background-color: color.$blue-50;
color: color.$white;
}
}
}

.highlight-wrapper {
display: flex;
background-color: tokens.$color-white;
background-color: color.$white;
flex-wrap: wrap;

.banner.promo & {
Expand All @@ -75,7 +75,7 @@
padding-left: $spacing-md;
border-left-width: 4px;
border-left-style: solid;
border-color: tokens.$color-yellow-50;
border-color: color.$yellow-50;
}
}
}
Expand All @@ -90,7 +90,7 @@

.info-icon {
align-self: center;
color: tokens.$color-violet-30;
color: color.$violet-30;
}
}

Expand Down Expand Up @@ -154,11 +154,11 @@
margin-right: $spacing-sm;

.warning & {
color: tokens.$color-yellow-50;
color: color.$yellow-50;
}

.info & {
color: tokens.$color-violet-30;
color: color.$violet-30;
margin-right: $spacing-xs;
}
}
Expand All @@ -170,7 +170,7 @@
display: inline-block;
padding-top: $spacing-md;
font-weight: 700;
color: tokens.$color-blue-50;
color: color.$blue-50;
cursor: pointer;
background: none;
border: none;
Expand All @@ -182,7 +182,7 @@
}

&:hover {
color: tokens.$color-blue-40;
color: color.$blue-40;
}

&:focus {
Expand All @@ -207,13 +207,13 @@
display: block;
padding: $spacing-sm $spacing-md;
font-weight: 700;
border: 2px solid tokens.$color-blue-50;
color: tokens.$color-blue-50;
border: 2px solid color.$blue-50;
color: color.$blue-50;
border-radius: $border-radius-sm;

&:hover {
background-color: tokens.$color-blue-60;
color: tokens.$color-white;
background-color: color.$blue-60;
color: color.$white;
}

&:focus {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Button.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;
@use "../styles/tokens";
@use "../styles/color";

.button {
display: inline-flex;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/InfoModal.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../styles/tokens";
@use "../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;

.underlay {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/InfoTooltip.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../styles/tokens";
@use "../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;

.wrapper {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../styles/tokens";
@use "../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;

.wrapper {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../styles/tokens";
@use "../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "../../styles/text";

Expand Down Expand Up @@ -79,7 +79,7 @@
font-weight: 600;

@include text-body-md;
color: tokens.$color-grey-50;
color: color.$grey-50;
}

.nevermind-link {
Expand All @@ -97,14 +97,14 @@

.label-input {
font-family: $font-stack-firefox;
border: 1px solid tokens.$color-grey-30;
border: 1px solid color.$grey-30;
border-radius: $border-radius-sm;
font-weight: 100;
padding: $spacing-sm $spacing-md;

// Inputs should be atleast 16px if we want to avoid iOS auto-zooming (MPP-3598)
@include text-body-md;
color: tokens.$color-grey-40;
color: color.$grey-40;
width: 100%;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../styles/tokens";
@use "../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;
@use "../../styles/text";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/dashboard/Onboarding.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../styles/tokens";
@use "../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "../../styles/text";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../styles/tokens";
@use "../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;
@use "../../styles/text";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../styles/tokens";
@use "../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;

.profile-banners {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/dashboard/SubdomainPicker.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../styles/tokens";
@use "../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;
@use "../../styles/text";
Expand Down Expand Up @@ -71,7 +71,7 @@
.lead {
@include text-body-sm;
padding: $spacing-md 0;
color: tokens.$color-grey-50;
color: color.$grey-50;
display: flex;
flex-direction: column;
gap: $spacing-md;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/tokens";
@use "../../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;

Expand Down Expand Up @@ -45,7 +45,7 @@
padding-left: $spacing-sm;
font-family: $font-stack-base;
font-weight: 400;
color: tokens.$color-grey-50;
color: color.$grey-50;

@include text-body-sm;

Expand Down Expand Up @@ -88,7 +88,7 @@

.prefix {
font-family: $font-stack-firefox;
color: tokens.$color-grey-50;
color: color.$grey-50;
width: 70%;
margin: 0 auto;
display: flex;
Expand All @@ -107,7 +107,7 @@
margin: $spacing-sm 0 0 0;
font-weight: 400;
padding: $spacing-sm;
color: tokens.$color-grey-40;
color: color.$grey-40;
font-family: $font-stack-base;

@include text-body-md;
Expand All @@ -128,7 +128,7 @@
gap: $spacing-sm;
margin: $spacing-md $spacing-sm;
font-family: $font-stack-firefox;
color: tokens.$color-grey-50;
color: color.$grey-50;
font-weight: 600;

@media screen and #{$mq-sm} {
Expand All @@ -138,7 +138,7 @@
input[type="checkbox"] {
width: 20px;
height: 20px;
border: 2px solid tokens.$color-grey-20;
border: 2px solid color.$grey-20;
border-radius: $border-radius-sm;
-webkit-appearance: none;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/dashboard/aliases/Alias.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/tokens";
@use "../../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;

$toggleTransitionDuration: 200ms;
Expand Down Expand Up @@ -44,7 +44,7 @@ $trackerRemovalIndicatorWidth: 20px;
button {
border-style: none;
background-color: transparent;
color: tokens.$color-grey-30;
color: color.$grey-30;
display: flex;
align-items: center;
padding: 0 $spacing-xs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/tokens";
@use "../../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/tokens";
@use "../../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;

Expand Down Expand Up @@ -46,7 +46,7 @@
overflow-wrap: break-word;

hr {
border: 1px solid tokens.$color-grey-10;
border: 1px solid color.$grey-10;
margin-top: $spacing-2xl;
}

Expand All @@ -67,7 +67,7 @@
display: block;
text-align: center;
padding: $spacing-lg $spacing-lg $spacing-sm;
color: tokens.$color-grey-50;
color: color.$grey-50;
margin-bottom: $spacing-sm;
user-select: auto;
-webkit-user-select: auto; // Fixes overflow breaking in iOS devices (MPP-3686)
Expand All @@ -78,7 +78,7 @@
font-weight: 600;
text-align: center;
padding: $spacing-sm $spacing-lg;
color: tokens.$color-grey-50;
color: color.$grey-50;
margin: 0 auto $spacing-2xl auto;

@media screen and #{$mq-md} {
Expand Down Expand Up @@ -116,7 +116,7 @@
.warning-wrapper {
position: relative;
display: flex;
border-left: $border-radius-xs solid color tokens.$color-error;
border-left: $border-radius-xs solid color color.$error;
align-items: center;
padding-left: $spacing-sm;
background-color: #fff;
Expand All @@ -131,7 +131,7 @@

p {
@include text-body-sm;
color: tokens.$color-grey-50;
color: color.$grey-50;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/tokens";
@use "../../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;

.button-wrapper {
Expand All @@ -12,7 +12,7 @@
margin-left: -1 * $spacing-md;
// Align the popup to the edge of the screen at narrow widths
inset-inline-end: 0;
background-color: tokens.$color-white;
background-color: color.$white;
border-radius: $border-radius-md;
box-shadow: $box-shadow-md;
list-style-type: none;
Expand All @@ -26,7 +26,7 @@

.menu-item-wrapper {
font-family: $font-stack-firefox;
color: tokens.$color-blue-50;
color: color.$blue-50;
padding: $spacing-md $spacing-lg;

&:first-child {
Expand All @@ -46,8 +46,8 @@

&:focus {
outline: none;
background-color: tokens.$color-blue-50;
color: tokens.$color-white;
background-color: color.$blue-50;
color: color.$white;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/tokens";
@use "../../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;
@use "~@mozilla-protocol/core/protocol/css/includes/forms/lib" as mp_forms;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "../../../styles/tokens";
@use "../../../styles/color";
@use "~@mozilla-protocol/core/protocol/css/includes/lib" as *;

.filter-button {
Expand All @@ -13,14 +13,14 @@
color: $color-dark-gray-50;

&:hover {
background-color: tokens.$color-white;
color: tokens.$color-blue-50;
background-color: color.$white;
color: color.$blue-50;
}
}

.filter-menu {
box-shadow: $box-shadow-sm;
background-color: tokens.$color-white;
background-color: color.$white;
border-radius: $border-radius-md;
font-family: $font-stack-firefox;
overflow-y: auto;
Expand Down
Loading

0 comments on commit 75daca6

Please sign in to comment.