Skip to content

Commit

Permalink
moving css from header.css to specific partials
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Conroy committed Jan 11, 2018
1 parent 51b84d5 commit bf8f368
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 91 deletions.
14 changes: 14 additions & 0 deletions css/components/blocks/branding/branding.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
* This file is used to style the branding block.
*/

.block-system-branding-block {
flex: 0 1 40%;
order: 2;
text-align: center;
}

@media screen and (min-width: 48em) {
.block-system-branding-block {
flex: 0 1 220px;
order: 3;
margin: 2.5rem 0;
text-align: left;
}
}
.site-logo {
display: inline-block;
width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions css/components/blocks/page-title/page-title.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
*/

.is-front .block-page-title-block {
margin: 3rem 0 1rem;
margin: 1rem 0;
}

.block-page-title-block {
margin: 3rem 0;
margin: 1rem 0 3rem;
text-align: center;
}
27 changes: 27 additions & 0 deletions css/components/blocks/search/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,38 @@
* This file is used to style the search block.
*/

.search-block-form {
display: none;
}

@media screen and (min-width: 48em) {
.search-block-form {
flex: 0 1 50%;
order: 1;
display: block;
border-bottom: 1px solid #E6EEE0;
}
}

.search-block-form form {
display: flex;
align-items: center;
}

.search__iconwrap {
flex: 0 1 30%;
order: 3;
display: flex;
justify-content: flex-end;
padding-right: 1rem;
}

@media screen and (min-width: 48em) {
.search__iconwrap {
display: none;
}
}

/* Search icon for mobile */
.search__link {
width: 40px;
Expand Down
14 changes: 14 additions & 0 deletions css/components/navigation/menu-account/menu-account.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
* This file is used to style the account menu.
*/

.menu--account {
display: none;
}

@media screen and (min-width: 48em) {
.menu--account {
flex: 0 1 50%;
order: 2;
display: block;
border-bottom: 1px solid #E6EEE0;
text-align: right;
}
}

.menu-account {
display: inline-flex;
margin: 1.6em 0;
Expand Down
33 changes: 33 additions & 0 deletions css/components/navigation/menu-main/menu-main.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,36 @@
margin-left: 2.5em;
}
}

.menu-main__togglewrap {
flex: 0 1 30%;
order: 1;
padding-left: 1rem;
}

@media screen and (min-width: 48em) {
.menu-main__togglewrap {
display: none;
}
}

.menu-main__wrapper {
order: 4;
flex: 0 1 100%;
text-align: center;
}

@media screen and (min-width: 48em) {
.menu-main__wrapper {
order: 4;
flex: 0 1 calc(100% - 220px);
text-align: right;
}
}

@media screen and (min-width: 48em) {
.menu-main {
display: flex;
justify-content: flex-end;
}
}
89 changes: 0 additions & 89 deletions css/components/regions/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,92 +30,3 @@
padding: 0;
}
}

.block-system-branding-block {
flex: 0 1 40%;
order: 2;
text-align: center;
}

@media screen and (min-width: 48em) {
.block-system-branding-block {
flex: 0 1 220px;
order: 3;
margin: 2.5rem 0;
text-align: left;
}
}

.menu-main__togglewrap {
flex: 0 1 30%;
order: 1;
padding-left: 1rem;
}

@media screen and (min-width: 48em) {
.menu-main__togglewrap {
display: none;
}
}

.menu-main__wrapper {
order: 4;
flex: 0 1 100%;
text-align: center;
}

@media screen and (min-width: 48em) {
.menu-main__wrapper {
order: 4;
flex: 0 1 calc(100% - 220px);
text-align: right;
}
}

@media screen and (min-width: 48em) {
.menu-main {
display: flex;
justify-content: flex-end;
}
}

.search__iconwrap {
flex: 0 1 30%;
order: 3;
display: flex;
justify-content: flex-end;
padding-right: 1rem;
}

@media screen and (min-width: 48em) {
.search__iconwrap {
display: none;
}
}

.search-block-form {
display: none;
}

@media screen and (min-width: 48em) {
.search-block-form {
flex: 0 1 50%;
order: 1;
display: block;
border-bottom: 1px solid #E6EEE0;
}
}

.menu--account {
display: none;
}

@media screen and (min-width: 48em) {
.menu--account {
flex: 0 1 50%;
order: 2;
display: block;
border-bottom: 1px solid #E6EEE0;
text-align: right;
}
}

0 comments on commit bf8f368

Please sign in to comment.