Skip to content

Commit

Permalink
feat(styling): introduce new header style (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
madnai authored Aug 19, 2021
1 parent bb977c3 commit 0b505a8
Show file tree
Hide file tree
Showing 22 changed files with 661 additions and 78 deletions.
329 changes: 329 additions & 0 deletions public/css/styling.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,332 @@ footer a:hover {
.bg-type {
background-color: #c4c4c4;
}

.dropdown-menu.show {
border-radius: 8px;
}

.dropdown-toggle:after {
content: none;
}

/***************/
/* Page header */
/***************/


.tools-menu {
display:none;
}

.search-settings {
display:none;
}

.page-header {
padding: 20px 30px;
background-color: rgb(94, 1, 38);
display: flex;
justify-content: space-between;
align-items: center;
height: 60px;
max-height: 90px;
}

.page-header-logo-without-text {
display: none;
}

.page-header-logo-with-text {
display: block;
}

.page-header-menu-container {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 3;
}
.page-header-menu-container.visible {
display: block;
}

.page-header-social-media-icons {
display: none;
}

.page-header-menu-icon {
background: transparent;
border: none;
}
.page-header-menu-icon.hidden {
visibility: hidden;
}

.page-header-menu-page-cover {
position: fixed;
top: 0px;
right: 0px;
width: 100%;
height: 100vh;
background-color: rgba(0, 0, 0, 0.7);
z-index: 3;
display: none;
}

.page-header-menu-nav {
background-color: rgb(94, 1, 38);
position: absolute;
top: 60px;
right: 0px;
width: 100vw;
display: flex;
flex-direction: column;
padding-bottom: 40px;
align-items: flex-start;
z-index: 4;
}

.page-header-menu-list {
display: none;
/* padding: 30px 30px 50px;
display: flex;
flex-direction: column;
align-items: flex-start;
list-style-type: none; */
}

.page-header-menu-list-item {
margin-bottom: 10px;
}

.page-header-menu-list-item .page-header-menu-list-item-title {
font-size: 32px;
text-transform: uppercase;
color: rgb(214, 181, 109);
line-height: 1;
font-weight: 300;
}
.page-header-menu-list-item a {
transition: opacity 200ms ease-in;
}
.page-header-menu-list-item a:hover {
text-decoration: none;
}
.page-header-menu-list-item div.page-header-menu-list-item-title {
display: flex;
align-items: center;
line-height: normal;
cursor: pointer;
user-select: none;
}
.page-header-menu-list-item div.page-header-menu-list-item-title button {
background: transparent;
border: none;
display: flex;
align-items: center;
margin-left: 10px;
padding: 0;
}

.page-header-menu-sub-list {
list-style-type: none;
margin: 10px 0;
padding-left: 0;
display: none;
}

.page-header-menu-sub-list.visible {
display: block;
}

.page-header-menu-sub-list .page-header-menu-sub-list-item {
margin-top: 10px;
}

.page-header-menu-sub-list .page-header-menu-sub-list-item a {
color: #fff;
font-size: 16px;
line-height: 1;
}

.page-header-menu-close {
position: fixed;
z-index: 5;
right: 35px;
top: 5px;
cursor: pointer;
}

.page-header-social-media-icons-container {
display: flex;
justify-content: center;
padding-top: 10px;
width: 100%;
}

.page-header-social-media-icons {
grid-template-columns: repeat(8, 25px);
gap: 10px;
}

.page-header-social-media-icons-container .page-header-social-media-icons {
display: grid;
}

.dropdown-mobile {
position: relative !important;
transform: inherit !important;
min-width: 19rem;
margin-top: 20px;
line-height: 2.2;
}

.tools-mobile {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
margin-bottom: 30px;
flex-direction: column
}

.site-title-mobile {
width: 100%;
text-align: center;
margin-bottom: 20px;
}

.search-settings-mobile {
display: flex;
justify-content: center;
width: 100%;
margin-bottom: 20px
}

@media (min-width: 992px) {
.page-header {
padding: 20px;
}
}

@media (min-width: 768px) {

.search-settings {
display: inherit;
}

.tools-menu {
display: flex;
align-items: center;
}
.page-header-logo-without-text {
display: block;
}

.page-header-logo-with-text {
display: none;
}

.page-header-social-media-icons {
display: grid;
}

.page-header-social-media-icons-container .page-header-social-media-icons {
display: none;
}

.page-header-menu-page-cover {
display: block;
}

.page-header-menu-nav {
position: fixed;
width: 420px;
height: 100%;
top: 0;
bottom: 0px;
overflow-y: scroll;
align-items: center;
}

.page-header-menu-list {
display: flex;
flex-direction: column;
align-items: flex-start;
list-style-type: none;
padding: 140px 80px 120px;
}

.page-header-menu-list-item {
margin-bottom: 20px;
}

.page-header-menu-list-item .page-header-menu-list-item-title {
font-weight: 300;
}

.page-header-menu-sub-list {
margin: 0;
}

.page-header-menu-close {
right: 25px;
}

.tools-mobile {
display: none;
}

.search-settings-mobile {
display: none;
}

.site-title-mobile {
display: none;
}
}
.hide {
display: none;
}

.show {
display: inline-block;
}
input.search {
border-color: white;
border-top-left-radius: 8px !important;
border-bottom-left-radius: 8px !important;
height: 34px;
}

button.search {
background: white;
border: none;
border-top-right-radius: 8px !important;
border-bottom-right-radius: 8px !important;
}

div.tools-container {
border: 2px solid #FFFFFF;
border-radius: 13px;
padding: 4px 10px;
color: white
}
div.tools-container-mobile {
border: 2px solid #FFFFFF;
border-radius: 13px;
padding: 4px 10px;
color: white;
margin-right: 24px;
}

span.site-title {
color: white;
font-size:24px;
font-weight: 300;
padding-right: 10px;
}
Binary file added public/img/arrow-down-yellow.png
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 public/img/arrow-down.png
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 public/img/arrow-up-yellow.png
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 public/img/arrow-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/img/header/btcv-logo-with-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/img/header/btcv-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0b505a8

Please sign in to comment.