Skip to content

Commit

Permalink
Refactor copy-message to use new mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
RachelElysia committed Mar 21, 2024
1 parent ad5ccf2 commit 5d3d23e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 30 deletions.
12 changes: 2 additions & 10 deletions frontend/components/AddHostsModal/PlatformWrapper/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@
}

&__copy-message {
font-weight: $regular;
vertical-align: top;
background-color: $ui-light-grey;
border: solid 1px #e2e4ea;
border-radius: 10px;
padding: 2px 6px;
@include copy-message;
}

.buttons {
Expand Down Expand Up @@ -122,9 +117,6 @@
}

&__copy-message {
background-color: $ui-light-grey;
border: solid 1px #e2e4ea;
border-radius: 10px;
padding: 2px 6px;
@include copy-message;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@
}

&__copy-message {
background-color: $ui-light-grey;
border: solid 1px #e2e4ea;
border-radius: 10px;
padding: 2px 6px;
@include copy-message;
}

&__action-overlay {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
}

&__copy-message {
background-color: $ui-light-grey;
border: solid 1px #e2e4ea;
border-radius: 10px;
padding: 2px 6px;
@include copy-message;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@
}

&__copy-message {
font-weight: $regular;
vertical-align: top;
background-color: $ui-light-grey;
border: solid 1px #e2e4ea;
border-radius: 10px;
padding: 2px 6px;
@include copy-message;
}

&__secret-download-icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@
}

&__copy-message {
font-weight: $regular;
vertical-align: top;
background-color: $ui-light-grey;
border: solid 1px #e2e4ea;
border-radius: 10px;
padding: 2px 6px;
@include copy-message;
}

&__code {
Expand Down
9 changes: 9 additions & 0 deletions frontend/styles/var/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,15 @@ $max-width: 2560px;
}
}

@mixin copy-message {
font-weight: $regular;
vertical-align: top;
background-color: $ui-light-grey;
border: solid 1px #e2e4ea;
border-radius: 10px;
padding: 2px 6px;
}

@mixin color-contrasted-sections {
background-color: $ui-off-white;
.section {
Expand Down

0 comments on commit 5d3d23e

Please sign in to comment.