Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve design #5

Merged
merged 4 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 31 additions & 5 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;
}
64 changes: 42 additions & 22 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 @@ -74,16 +66,14 @@
}
}

.heading {
.search-form .heading {
color: $white;
font-size: $xxl-size;
text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

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

Expand All @@ -104,9 +94,28 @@
padding: 0;
}

.search-form .search-input button i {
color: $white;
}

.form-control {
border: none;
border-radius: 0;
margin-right: 0 !important;
width: 80%;
}

.site-search .btn {
background-color: white;
border: none;
border-radius: 0 !important;
margin-left: 0 !important;
}

@media screen and (max-width: 980px) {
.form-control {
width: 100%;
}
}

.tags {
Expand All @@ -129,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 All @@ -157,7 +164,7 @@
@media screen and (max-width: 650px) {
.module-stats-center-flex {
flex-direction: column;
align-items: center;
align-items: center;
}

.module-feeds {
Expand Down Expand Up @@ -191,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 All @@ -214,8 +228,14 @@

.site-footer {
padding: 40px;
background-color: $primary-color;
}

.item-count {
background-color: $secondary-color !important;
}

.heading {
color: black;
text-shadow: none;
}
2 changes: 0 additions & 2 deletions ckanext/kepa/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ <h2>{{_('Social')}}</h2>


<script>
console.log("ovde");

document.addEventListener("DOMContentLoaded", function () {
calculateSpaceToBottom();
});
Expand Down
Loading