_typography.scss 4.61 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
// Basic type related customisation


body, p {
    font-weight: 400;
}

h1 {
    @extend .page-header;
    .admin & {
11
        text-shadow: 1px 1px 0 rgba(#fff, 0.5);
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
        color: #555;
        border-bottom-color: #ddd;
    }

    .page-header & {
        border-bottom:0;
    }
}

// Add padding if there is no navigation
.header + .container h1 {
    padding-top: 20px;
}

.page-header {
    margin-bottom:20px;
    ~ .with-heading {
29
30
31
32
        margin-top: -16px;
        @media (max-width: $screen-xs-min) {
            margin-top: 0;
        }
Naomi Guyer's avatar
Naomi Guyer committed
33
    }
Naomi Guyer's avatar
Naomi Guyer committed
34
    ~ form.with-heading,
Robert Lyon's avatar
Robert Lyon committed
35
    ~ form .with-heading,
Naomi Guyer's avatar
Naomi Guyer committed
36
    ~ .form.with-heading {
37
        @include border-bottom-radius(3px);
Naomi Guyer's avatar
Naomi Guyer committed
38
        background-color: #f7f7f7;
39
        padding: 20px 10px 10px 10px;
40
        margin-top: -20px;
Naomi Guyer's avatar
Naomi Guyer committed
41
        border-bottom: 1px solid #eee;
42
43
        &.invite-friend {
            padding-bottom: 5px;
44
45
46
47
48
49
            .input-group {
                margin-top: 0;
                @media (min-width: $screen-sm-min) {
                    margin-top:10px;
                }
            }
50
        }
51
52
53
54
55
56
57
58
59
        @media (max-width: $screen-xs-min) {
            margin-top: 5px;
        }
        @media (max-width: $screen-sm-min) {
            padding: 10px;
            > .input-group {
                padding-top: 10px;
            }
        }
60
61
62
63
64
65
        .admin & {
            background-color: #fcfcfc;
            border-color: #ddd;
            border-left: 1px solid #eee;
            border-right: 1px solid #eee;
        }
Naomi Guyer's avatar
Naomi Guyer committed
66
67
68
69
70
        ~ form.with-heading {
            padding-top: 0;
            margin-top: -1px;
            max-width: 100%;
        }
71
72
73
74
75
        .form-group {
            .select2 {
                max-width: 100%;
            }
        }
Naomi Guyer's avatar
Naomi Guyer committed
76
    }
77
78
79
80
81
82
83
84
85
    ~ div.with-heading {
        padding-bottom: 10px;
        margin-bottom: 10px;
        @media (max-width: $screen-xs-min) {
            border-bottom: 1px solid #eee;
        }
        a {
            margin-right: 5px;
        }
86
87
88
        .tags a {
            margin-right: 0;
        }
89
    }
90
91
92
    &.user-icon-name {
        border-bottom-color: #f0f0f0;
    }
93
94
95
96
97
98
99
100
101
102
103
}

.page-header,
h1, h2 {
    margin-top:0;
}

h4 {
    margin-bottom: 5px;
}

Naomi Guyer's avatar
Naomi Guyer committed
104
105
106
107
108
h2 {

    font-weight:300;
}

109
110
111
112
113
h2, h3, h4, h5, legend {
    &.panel-heading {
        margin: 0;
        font-size: 16px;
    }
114
115
116
    &.no-margin {
        margin: 0;
    }
117
118
}

119
.subsection-heading +  .section-heading {
120
    color: $section-heading-color;
121
122
}

123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
strong i {
    font-style: normal; // #tasteful
}

a {
    &.link-block {
        display: block;
    }
    &:focus,
    &:hover {
        text-decoration-color: #aaa;
        outline-color: rgba($input-border-focus, 0.3);
        .text-orange {
            color: $link-color;
        }
    }
}

141
142
143
144
145
146
.list-unstyled:not(.list-group) {
    li {
        padding-bottom: 5px;
    }
}

147
148
149
150
151
152
153
154
.link-unstyled {
    color: #333;
    &:hover {
        text-decoration: none;
        color: inherit;
    }
}

155
156
157
158
159
160
161
162
163
164
// Styles for links at the bottom of blocktype
// ie. add comment link and artefact detail link
.link-blocktype {
    .col-width-100 &,
    .col-width-50 & {
        padding: 5px 8px;
        @media (min-width: $screen-sm-min) {
            padding: 5px 20px;
        }
    }
165
    font-size: $font-size-base - 1;
166
167
168
169
170
171
172
173
174
175
176
177
178
179
    float: left;
    margin: 10px 0;
    padding: 5px 7px;
    &:hover {
        background-color: $btn-default-bg;
        text-decoration: none;
    }
    .icon {
        display: none;
        @media (min-width: $screen-xs-min) {
            display: inline-block;
        }
    }
}
180
181
182

img {
    max-width: 100%;
183
184
185
186
187
188
    &.artefact-img {
        margin-right: 10px;
    }
    &.file-icon {
        margin-right: 5px;
    }
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
}

hr {
    margin-top: $line-height-computed / 2;
}

ul {
    &.unstyled.unstyled { //increase the importance
        padding: 0;
        margin: 0;
        list-style-type: none;
    }
}

blockquote {
    margin-top: 20px;
    margin-bottom: 30px;
    &.small {
        font-size: $font-size-base;
    }
    .text-small &{
        font-size: $font-size-base;
    }
}

.lead,
.lead p {
216
217
218
219
    font-size: floor(($font-size-base * 1.10));
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 15px;
220

221
222
223
    @media (min-width: $screen-sm-min) {
        font-size: ($font-size-base * 1.2);
    }
224

225
226
227
228
229
    &.text-small {
        font-size: $font-size-base;
    }
    &.link {
        margin-bottom: 0;
230
    }
231
232
}

233
234
235
236
237
238
239
240
241
242
label.lead {
    margin-bottom: 0;
}

.content-text,
.postcontent {
    margin: 10px 0;
}


243
.metadata {
Naomi Guyer's avatar
Naomi Guyer committed
244
    font-family: $font-family-sans-serif;
245
    font-size: 0.8em;
246
    color: #555;
247
248
249
250
251
252
253
254
255
256
    .title & {
        margin-left: 5px;
    }
}

.license {
    margin: 10px 0;
    .license-icon {
        padding-right: 10px;
    }
257
}
258
259
260

.licenseicon {
    padding: 0 10px 5px 0;
261
}