forked from OpenNHP/opennhp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticle.less
96 lines (71 loc) · 1.81 KB
/
article.less
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
// Name: Article
// Description: Define style for article
//
// Component: `am-article`
//
// Sub-objects: `am-article-title`
// `am-article-meta`
// `am-article-lead`
// `am-article-divider`
//
// ========================================================================
/* ========================================================================
Component: Article
========================================================================== */
.am-article {
.clearfix();
& > :last-child {
margin-bottom: 0; // Remove margin from last-child
}
& + .am-article {
margin-top: @article-margin-top;
}
}
/* Sub-object `am-article-title` */
.am-article-title {
font-size: @article-title-font-size;
line-height: @article-title-line-height;
font-weight: @article-title-font-weight;
a {
color: inherit;
text-decoration: none;
}
.hook-article-title;
}
/* Sub-object `am-article-meta` */
.am-article-meta {
font-size: @article-meta-font-size;
line-height: @article-meta-line-height;
color: @article-meta-color;
.hook-article-meta;
}
/* Sub-object `am-article-lead` */
.am-article-lead {
color: @article-lead-color;
font-size: @article-lead-font-size;
line-height: @article-lead-line-height;
border: 1px solid #dedede;
border-radius: 2px;
background: #f9f9f9;
padding: 10px;
.hook-article-lead;
}
/* Sub-object `am-article-divider` */
.am-article-divider {
margin-bottom: @article-divider-margin;
border-color: @article-divider-border;
.hook-article-divider;
* + & {
margin-top: @article-divider-margin;
}
}
.am-article-bd {
blockquote {
font-family: @font-family-kai;
}
}
// Hooks
.hook-article-title() {}
.hook-article-meta() {}
.hook-article-lead() {}
.hook-article-divider() {}