Skip to content

Commit

Permalink
oda front: inital styling
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Jul 20, 2024
1 parent 8a4596f commit 8af6ecc
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/01-atoms/buttons/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ $button-colors: (
&-internal {
@include button($white,$green, $green, $white);
}
&-black {
@include button($black, $white, $white, $black);
}
&-internal--active {
display: block;
position: relative;
Expand Down
99 changes: 99 additions & 0 deletions components/04-templates/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -429,3 +429,102 @@ $main-width: calc(100% - (#{$sidebar-width} + #{$gutter}));
}
}
}

.domain-oda.path-frontpage {
.main,
.dingo-layout {
display: block;
}

.layout__region--content {
display: grid;
grid-template-columns: 1fr;
grid-gap: 1rem;
grid-template-columns:repeat( 16, minmax(20px, 1fr) );

.block:first-child {
grid-column: 1 / 12;
}

.block:nth-child(2) {
grid-column: 13 / 17;
ul {
list-style: none;
padding: 0;
li {
border-bottom: 1px solid $gray-lightest;
margin-bottom: .35rem;
padding-bottom: .5rem;
}
}
}

.block:nth-child(3) {
grid-column: 1 / 17;
background: url('../images/oda_front_reports_bg.png') no-repeat center center;
background-size: cover;
padding: 2rem 0;
.inner-content {
background: rgba(207, 184, 124, 0.9);
padding: 25px;
width: 75%;
border-radius: 5px;
h2 {
color: $black;
border-bottom: 1px solid $black;
span {
border: none;
}
}
}
}

.block:nth-child(4) {
grid-column: 1 / 17;
}

.block:not(.contextual-region):has(a):nth-child(3n-1) {
grid-column: 1 / 5;
}

.block:not(.contextual-region):has(a):nth-child(3n) {
grid-column: 6 / 11;
}

.block:not(.contextual-region):has(a):nth-child(3n-2) {
grid-column: 12 / 17;
}

.block:not(.contextual-region):has(a) {
h2 {
position: relative;
font-size: 1rem;
text-transform: uppercase;
text-align: center;
border: none;
margin-bottom: .75rem;
span {
border: none;
}
&:before {
display: block;
content: "";
height: 25px;
width: 100%;
margin-bottom: .5rem;
background: url('../images/icons/oda_front_wwd_title.svg') no-repeat center center;
}
&:after {
content: "";
position: absolute;
left: 42%;
right: 42%;
bottom: -.4rem;
height: 1px;
width: 16%;
border-bottom:4px solid $gold;
}
}
}
}
}
3 changes: 3 additions & 0 deletions images/icons/oda_front_wwd_title.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oda_front_reports_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8af6ecc

Please sign in to comment.