-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #99 from INN/50-headline-top-area-styles
Create article template, style header
- Loading branch information
Showing
6 changed files
with
366 additions
and
59 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
164 changes: 164 additions & 0 deletions
164
wp-content/themes/citylimits/less/single-two-column.less
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,164 @@ | ||
.single.classic { | ||
header + .span8 { | ||
margin-left: 0; | ||
} | ||
header { | ||
hgroup { | ||
grid-area: hgroup; | ||
border-bottom: 1px solid @grey1; | ||
margin-bottom: @measure; | ||
} | ||
.byline { | ||
grid-area: byline; | ||
margin-bottom: 0; | ||
} | ||
.date { | ||
grid-area: date; | ||
} | ||
.byline, .date { | ||
font-size: 14px; | ||
} | ||
.by { | ||
display: none; | ||
} | ||
.author { | ||
font-weight: normal; | ||
} | ||
.edit-link { | ||
display: none; | ||
} | ||
.largo-follow { | ||
grid-area: social; | ||
} | ||
.label { | ||
display: block; | ||
text-transform: uppercase; | ||
font-weight: bold; | ||
clear: both; | ||
} | ||
} | ||
.largo-follow { | ||
margin-bottom: 0; | ||
|
||
// override Largo colors | ||
.facebook, | ||
.twitter, | ||
.email, | ||
.print, | ||
.more-social-links { | ||
background-color: transparent; | ||
} | ||
a { | ||
color: @red; | ||
&:hover { | ||
color: @black; | ||
} | ||
} | ||
.hidden-phone { | ||
display: none; | ||
} | ||
span { | ||
margin: 0; | ||
} | ||
// make this fold to the right, not left | ||
.popover { | ||
left: unset; | ||
right: 0; | ||
z-index: 1; | ||
&::after, | ||
&::before { | ||
left: unset; | ||
right: 24px; | ||
} | ||
} | ||
} | ||
|
||
|
||
@media ( max-width: 699px ) { | ||
h1.entry-title { | ||
font-size: calc( 20px + 3vw ); | ||
} | ||
#main header { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
grid-template-areas: | ||
"hgroup hgroup" | ||
"byline date" | ||
"social social" | ||
; | ||
|
||
hgroup { | ||
padding: 5% 0; | ||
} | ||
.byline { | ||
border-right: 1px solid @grey1; | ||
padding-right: @measure; | ||
} | ||
.date { | ||
padding-left: @measure; | ||
} | ||
.byline, .date { | ||
text-align: center; | ||
} | ||
.largo-follow { | ||
margin-top: @measure; | ||
text-align: center; | ||
border-top: 1px solid @grey1; | ||
padding-top: @measure; | ||
padding-bottom: @measure; | ||
} | ||
} | ||
} | ||
@media ( min-width: 700px ) { | ||
h1.entry-title { | ||
font-size: calc( 20px + 3vw ); | ||
} | ||
#main { | ||
margin: 0; | ||
} | ||
#main header { | ||
display: grid; | ||
grid-template-columns: 200px 200px 1fr auto; | ||
grid-template-areas: | ||
"hgroup hgroup hgroup hgroup" | ||
"byline date . social" | ||
; | ||
margin-bottom: @measure; | ||
|
||
hgroup { | ||
text-align: center; | ||
padding: 5% 2.5%; | ||
} | ||
.subtitle { | ||
// this does not provide styles for .subtitle | ||
// because while Largo supports outputting a subtitle, | ||
// Largo requires enabling the subtitle input metabox in a child theme | ||
text-align: center; | ||
} | ||
.byline { | ||
border-right: 1px solid @grey1; | ||
padding-right: @measure; | ||
} | ||
.date { | ||
border-right: 1px solid @grey1; | ||
padding-right: @measure; | ||
padding-left: @measure; | ||
} | ||
} | ||
} | ||
.hero { | ||
background: transparent; | ||
padding-bottom: @measure; | ||
border-bottom: 1px solid @grey1; | ||
margin-bottom: @measure; | ||
.wp-caption-text { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
} | ||
@media ( min-width: 1230px ) { | ||
h1.entry-title { | ||
font-size: 55px; | ||
} | ||
} | ||
} |
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,56 @@ | ||
#main .largo-follow.post-social, | ||
#boilerplate #footer-social { | ||
i { | ||
&.icon-facebook { | ||
&::before { | ||
content: url("../img/facebook.svg"); | ||
} | ||
&:hover { | ||
&::before { | ||
content: url("../img/facebook-hover.svg"); | ||
} | ||
} | ||
} | ||
&.icon-twitter { | ||
&::before { | ||
content: url("../img/twitter.svg"); | ||
} | ||
&:hover { | ||
&::before { | ||
content: url("../img/twitter-hover.svg"); | ||
} | ||
} | ||
} | ||
&.icon-linkedin { | ||
&::before { | ||
content: url("../img/linkedin.svg"); | ||
} | ||
&:hover { | ||
&::before { | ||
content: url("../img/linkedin-hover.svg"); | ||
} | ||
} | ||
} | ||
&.icon-instagram { | ||
&::before { | ||
content: url("../img/instagram.svg"); | ||
} | ||
&:hover { | ||
&::before { | ||
content: url("../img/instagram-hover.svg"); | ||
} | ||
} | ||
} | ||
&.icon-youtube { | ||
&::before { | ||
content: url("../img/youtube.svg"); | ||
} | ||
&:hover { | ||
&::before { | ||
content: url("../img/youtube-hover.svg"); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
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
Oops, something went wrong.