Browse Source

toc and article page layout

dependabot/npm_and_yarn/acorn-5.7.4
rdrew 6 years ago
parent
commit
74830a3bae
  1. 53
      css/style.css
  2. 39
      src/scss/_article-pages.scss
  3. 22
      src/scss/_lp-hero.scss
  4. 4
      src/scss/_toc.scss

53
css/style.css

File diff suppressed because one or more lines are too long

39
src/scss/_article-pages.scss

@ -1,14 +1,24 @@
//@format
.page-node-type-journal-article .main-content__section { .page-node-type-journal-article .main-content__section {
padding-top: 0; padding-top: 0;
} }
//hero bg-image
.article-title-banner { .article-title-banner {
//display:none; //display:none;
//border: 1px solid #ccc; //border: 1px solid #ccc;
.bg-image { height: 500px;
background-position: center;
height: 400px; background-repeat: no-repeat;
overflow:hidden; background-size: cover;
position: relative;
} }
//hero text
.article-info--wrapper {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
} }
.field--name-field-journal-article-abstract .field__label { .field--name-field-journal-article-abstract .field__label {
font-size: 2rem; font-size: 2rem;
@ -28,7 +38,7 @@
} }
} }
//footnotes //footnotes
a[id^="footnote"] { a[id^='footnote'] {
border: 1px solid #5d5d5d; border: 1px solid #5d5d5d;
background: #5d5d5d; background: #5d5d5d;
color: #fff; color: #fff;
@ -48,7 +58,8 @@ header.article-header {
.article-header--metadata { .article-header--metadata {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left,.right { .left,
.right {
flex-direction: column; flex-direction: column;
align-items: flex-end; align-items: flex-end;
} }
@ -58,7 +69,6 @@ header.article-header {
} }
} }
.article-title-banner { .article-title-banner {
position:relative;
} }
//.article-info--wrapper { //.article-info--wrapper {
//position: absolute; //position: absolute;
@ -66,11 +76,6 @@ header.article-header {
//margin: 8rem; //margin: 8rem;
//} //}
.article-info--wrapper { .article-info--wrapper {
position: absolute;
margin: 0;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
} }
.article { .article {
&--contributor { &--contributor {
@ -87,13 +92,11 @@ header.article-header {
//font-style: italic; //font-style: italic;
} }
&--type { &--type {
font-size: 18px; font-size: 18px;
//line-height:18px; //line-height:18px;
text-transform: uppercase; text-transform: uppercase;
} }
&--date-published { &--date-published {
font-size: 18px; font-size: 18px;
text-transform: uppercase; text-transform: uppercase;
//line-height:18px; //line-height:18px;
@ -101,14 +104,15 @@ header.article-header {
} }
} }
//layout //layout
.article-title-banner {
padding: 0;
}
.node__main-content { .node__main-content {
grid-area: main; grid-area: main;
} }
.toc-sticky-wrapper { .toc-sticky-wrapper {
height: 100%; height: 100%;
grid-area: toc; grid-area: toc;
} }
@ -119,7 +123,6 @@ header.article-header {
column-gap: 2rem; column-gap: 2rem;
grid-template-columns: 70% 30%; grid-template-columns: 70% 30%;
grid-template-rows: auto; grid-template-rows: auto;
grid-template-areas: grid-template-areas: 'main toc';
'main toc'
} }
} }

22
src/scss/_lp-hero.scss

@ -1,17 +1,17 @@
//@format
/*==========Landing Page Hero Image===========*/ /*==========Landing Page Hero Image===========*/
.hero { .hero {
background: blue; //background: blue;
background: url(../img/DS2_2648.jpg); //background: url(../img/DS2_2648.jpg);
background-size: cover; //background-size: cover;
background-repeat: no-repeat; //background-repeat: no-repeat;
background-position: center; //background-position: center;
position: relative; //position: relative;
height: 250px; //height: 250px;
display: flex; display: flex;
.header-top__container {
padding: 3rem 0 2rem 0;
}
align-items: center; align-items: center;
} }

4
src/scss/_toc.scss

@ -13,6 +13,10 @@ $toc_breakpoint: 768px;
} }
.toc-block--wide { .toc-block--wide {
position: -webkit-sticky; /* Safari */
position: sticky;
top: 100px;
margin-top: 2rem;
.toc--title { .toc--title {
&[aria-expanded='true'] h2::after { &[aria-expanded='true'] h2::after {
//content: "\f146";//square //content: "\f146";//square

Loading…
Cancel
Save