Skip to content

Commit

Permalink
Fix addres design
Browse files Browse the repository at this point in the history
  • Loading branch information
jovana committed Dec 21, 2023
1 parent abf163d commit efd1e1a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 25 deletions.
10 changes: 6 additions & 4 deletions ckanext/kepa/assets/css/kepa.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ckanext/kepa/assets/css/kepa.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions ckanext/kepa/assets/scss/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@mixin center-flex {
display: flex;
justify-content: center;
align-items: center;
}

@mixin align-center {
align-items: center;
text-align: center;
}

@mixin column {
display: flex;
flex-direction: column;
}
35 changes: 15 additions & 20 deletions ckanext/kepa/assets/scss/kepa.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
@import "variables";
@import "mixins";

.center-flex {
display: flex;
justify-content: center;
align-items: center;
}

.align-center {
text-align: center;
@include center-flex;
}

.column {
display: flex;
flex-direction: column;
@include column;
}

.masthead {
Expand Down Expand Up @@ -57,11 +51,9 @@
.homepage .hero-placeholder .container {
min-height: 600px;
width: 50%;
display: flex;
flex-direction: column;
@include column;
justify-content: center;
align-items: center;
text-align: center;
@include align-center;
}

.homepage .hero-placeholder .container img {
Expand All @@ -81,9 +73,7 @@
}

.search-container {
display: flex;
justify-content: center;
align-items: center;
@include center-flex;
min-height: 400px;
}

Expand Down Expand Up @@ -148,16 +138,14 @@

.card {
width: 200px;
align-items: center;
text-align: center;
@include align-center;
background-color: $secondary-color;
}

.card a {
color: $white;
height: 100%;
display: flex;
flex-direction: column;
@include column;
justify-content: center;
text-decoration: none;
}
Expand Down Expand Up @@ -210,6 +198,13 @@
align-items: center;
color: $white;
font-weight: $bold;
margin-top: 30px;
}

@media screen and (max-width: 750px) {
.address {
justify-content: start;
}
}

.address img {
Expand Down

0 comments on commit efd1e1a

Please sign in to comment.