-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_article.scss
More file actions
109 lines (90 loc) · 1.6 KB
/
_article.scss
File metadata and controls
109 lines (90 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
.article {
@include respond-to($desk) {
width: 70%;
margin-left: auto;
margin-right: auto;
}
}
/////////////////////////////////
// Article Elements
/////////////////////////////////
.article__title {
margin-bottom: 0;
text-transform: uppercase;
}
.article__date {
position: relative;
display: inline;
left: -5px;
@include rem(padding, 0 5px);
@include rem(margin-bottom, 10px);
@include font-size(12px);
background-color: white;
}
.article__intro {
display: block;
@include rem(padding-bottom, 30px);
margin-bottom: 0;
border-bottom: 1px solid $base-ui-color;
line-height: 1.4;
@include font-size(24px);
font: {
family: $arial;
weight: bold;
}
text: {
align: center;
transform: uppercase;
}
}
.article__content {
font-family: $georgia;
}
/////////////////////////////////
// Article Modifiers
/////////////////////////////////
.article--summary {
@extend %fade-transition;
border-top: 1px solid white;
border-bottom: 1px solid $base-ui-color;
@include rem(padding, 30px 20px 20px);
&:first-child {
border-top: none;
}
&:last-child {
border-bottom: none;
}
&:hover,
&:focus {
background-color: darken($mushroom, 10);
}
a {
color: $base-font-color;
text-decoration: none;
}
.article__content {
@extend %landmark;
}
}
.article--full {
.article__content {
border-top: 1px solid whitesmoke;
@include rem(padding-top, 20px);
p,
ul,
ol {
@extend %landmark;
}
figure > img {
margin: 0 auto;
}
figcaption {
text-align: center;
}
}
@include respond-to($desk) {
.article__content {
@include rem(padding-top, 60px);
}
}
}