-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from SU-SWS/x-block-titles
Removed block titles on banner and banner overlay
- Loading branch information
Showing
5 changed files
with
225 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
189 changes: 189 additions & 0 deletions
189
modules/stanford_news_extras/css/stanford_news_extras.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
/* HIDE PAGE TITLE ON NEWS NODES */ | ||
|
||
.node-type-stanford-news-item #page-title { | ||
display: none; | ||
} | ||
|
||
|
||
/* NEWS BANNER IMAGE STYLES */ | ||
|
||
.node-type-stanford-news-item .fullwidth .field-name-field-s-news-banner img { | ||
width: 100%; | ||
height: 300px; | ||
} | ||
|
||
.node-type-stanford-news-item .field-name-field-s-news-banner .field-item { | ||
background: #000000; | ||
} | ||
|
||
.node-type-stanford-news-item .field-name-field-s-news-banner img { | ||
opacity: .4; | ||
} | ||
|
||
|
||
/* POSITION AND STYLE NEWS TITLES AND TEASERS OVER BANNER IMAGE - LOGGED OUT */ | ||
|
||
.node-type-stanford-news-item div#content-head { | ||
margin-bottom: 0; | ||
} | ||
|
||
#block-ds-extras-banner-overlay { | ||
width: 750px; | ||
} | ||
|
||
#block-ds-extras-banner-overlay .field-name-title h1, | ||
#block-ds-extras-banner-overlay .field-name-field-s-news-teaser .field-item { | ||
color: white; | ||
text-shadow: 0 0 4px black; | ||
} | ||
|
||
#block-ds-extras-banner-overlay { | ||
position: absolute; | ||
top: 210px; | ||
} | ||
|
||
@media (max-width: 1200px) { | ||
#block-ds-extras-banner-overlay { | ||
top: 250px; | ||
} | ||
} | ||
|
||
@media (max-width: 910px) { | ||
#block-ds-extras-banner-overlay { | ||
width: 450px; | ||
top: 225px; | ||
} | ||
#block-ds-extras-banner-overlay .field-name-title h1 { | ||
font-size: 1.4em; | ||
} | ||
#block-ds-extras-banner-overlay .field-name-field-s-news-teaser .field-item { | ||
font-size: 16px; | ||
} | ||
} | ||
|
||
@media (max-width: 767px) { | ||
#block-ds-extras-banner-overlay { | ||
position: relative; | ||
top: -310px; | ||
} | ||
.node-type-stanford-news-item div#block-ds-extras-banner-overlay { | ||
margin-bottom: -245px; | ||
} | ||
} | ||
|
||
@media (max-width: 485px) { | ||
#block-ds-extras-banner-overlay { | ||
width: 100%; | ||
} | ||
#block-ds-extras-banner-overlay .field-name-title h1 { | ||
font-size: 1.2em; | ||
} | ||
#block-ds-extras-banner-overlay .field-name-field-s-news-teaser .field-item { | ||
font-size: 15px; | ||
} | ||
} | ||
|
||
@media (max-width: 380px) { | ||
#block-ds-extras-banner-overlay { | ||
top: -315px; | ||
width: 250px; | ||
} | ||
#block-ds-extras-banner-overlay .field-name-title h1 { | ||
font-size: 1em; | ||
} | ||
#block-ds-extras-banner-overlay .field-name-field-s-news-teaser .field-item { | ||
font-size: 14px; | ||
} | ||
} | ||
|
||
|
||
/* POSITION AND STYLE NEWS TITLES AND TEASERS OVER BANNER IMAGE - LOGGED IN */ | ||
|
||
.logged-in #block-ds-extras-banner-overlay { | ||
top: 285px; | ||
} | ||
|
||
@media (max-width: 1200px) { | ||
.logged-in #block-ds-extras-banner-overlay { | ||
top: 325px; | ||
} | ||
} | ||
|
||
@media (max-width: 767px) { | ||
.logged-in #block-ds-extras-banner-overlay { | ||
top: -305px; | ||
} | ||
} | ||
|
||
@media (max-width: 485px) { | ||
.logged-in #block-ds-extras-banner-overlay .field-name-title h1 { | ||
font-size: 1.2em; | ||
} | ||
.logged-in #block-ds-extras-banner-overlay .field-name-field-s-news-teaser .field-item { | ||
font-size: 15px; | ||
} | ||
} | ||
|
||
@media (max-width: 380px) { | ||
.logged-in #block-ds-extras-banner-overlay { | ||
top: -325px; | ||
} | ||
} | ||
|
||
|
||
/* STYLE NEWS FEATURED IMAGE CAPTION AND CREDITS */ | ||
|
||
.node-type-stanford-news-item .content-body .field-name-field-s-image-image { | ||
margin-bottom: 0; | ||
} | ||
|
||
.node-type-stanford-news-item .content-body .group-s-news-body-style { | ||
margin-top: 1em; | ||
} | ||
|
||
.node-type-stanford-news-item .content-body .field-name-field-s-image-caption, | ||
.node-type-stanford-news-item .field-name-field-s-image-caption p { | ||
margin-bottom: 0; | ||
} | ||
|
||
.node-type-stanford-news-item .caption { | ||
font-size: .7em; | ||
font-style: normal; | ||
} | ||
|
||
.node-type-stanford-news-item .caption p:after { | ||
content: " |"; | ||
padding-right: 3px; | ||
} | ||
|
||
.node-type-stanford-news-item .credits { | ||
margin-bottom: 0; | ||
margin-top: -8px; | ||
color: #928b81; | ||
font-size: .7em; | ||
} | ||
|
||
.node-type-stanford-news-item .group-s-caption-style.field-group-div.caption, | ||
.node-type-stanford-news-item .group-s-credits-style.field-group-div.credits { | ||
display: inline-block; | ||
} | ||
|
||
@media (max-width: 550px) { | ||
.node-type-stanford-news-item .group-s-caption-style.field-group-div.caption, | ||
.node-type-stanford-news-item .group-s-credits-style.field-group-div.credits { | ||
display: block; | ||
} | ||
} | ||
|
||
|
||
/* BODY CONTENT STYLES */ | ||
|
||
.node-type-stanford-news-item .body-style { | ||
width: 750px; | ||
} | ||
|
||
@media (max-width: 910px) { | ||
.node-type-stanford-news-item .body-style { | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters