Skip to content

Commit

Permalink
oda: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Jul 24, 2024
1 parent d2c74fc commit 657bdaa
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 11 deletions.
31 changes: 31 additions & 0 deletions components/01-atoms/buttons/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,29 @@ $button-colors: (
}
}

@mixin data_secure {
content: '';
display: inline-block;
height: 20px;
width: 22px;
margin-bottom: -5px;
background-color: $white;
--webkit-mask: url('../images/icons/oda_external.svg') 50% 50% no-repeat;
mask: url('../images/icons/oda_external.svg') 50% 50% no-repeat;
-webkit-mask-size: cover;
mask-size: cover;
}

@mixin data_secure_left {
@include data_secure;
margin-right: .5em;
}

@mixin data_secure_right {
@include data_secure;
margin-left: .5em;
}

@mixin buttonColors(
$scheme,
$pallate: map-get($button-colors, $scheme),
Expand Down Expand Up @@ -317,3 +340,11 @@ input[value='Search'] {
width: 34px;
}
}

.data-secure-left:before {
@include data_secure_left;
}

.data-secure-right:before {
@include data_secure_right;
}
22 changes: 11 additions & 11 deletions components/04-templates/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,12 @@ $main-width: calc(100% - (#{$sidebar-width} + #{$gutter}));
border: none;
}
}
a.button-black:before {
@include data_secure_left;
}
a.button-black:hover:before {
background-color: $black;
}
}
}

Expand Down Expand Up @@ -582,17 +588,7 @@ $main-width: calc(100% - (#{$sidebar-width} + #{$gutter}));
}

.block:first-child a:before {
content: '';
display: inline-block;
height: 20px;
width: 22px;
margin-right: .5em;
margin-bottom: -5px;
background-color: $white;
--webkit-mask: url('../images/icons/oda_external.svg') 50% 50% no-repeat;
mask: url('../images/icons/oda_external.svg') 50% 50% no-repeat;
-webkit-mask-size: cover;
mask-size: cover;
@include data_secure_left;
}

.block:first-child,
Expand All @@ -607,6 +603,10 @@ $main-width: calc(100% - (#{$sidebar-width} + #{$gutter}));
.block:nth-child(3) {
margin-top: 1rem;
}

.block:last-child {
margin-top: -40px;
}
}

}

0 comments on commit 657bdaa

Please sign in to comment.