_typography.scss 2.55 KB
Newer Older
Pat Kira's avatar
Pat Kira committed
1
// Basic type related customisation
Naomi Guyer's avatar
Naomi Guyer committed
2
3
4
body, p {
    font-weight: 400;
}
Pat Kira's avatar
Pat Kira committed
5
h1 {
Naomi Guyer's avatar
Naomi Guyer committed
6
    @extend .page-header;
Pat Kira's avatar
Pat Kira committed
7
    border-bottom: none;
Pat Kira's avatar
Pat Kira committed
8
    font-size: $font-size-h1 * 0.88;
9
10

    .admin & {
Naomi Guyer's avatar
Naomi Guyer committed
11
12
        @include text-shadow(1px 1px 0 rgba(#fff, 0.5));
        color: #555;
13
    }
Pat Kira's avatar
Pat Kira committed
14
15
}

Naomi Guyer's avatar
Naomi Guyer committed
16
17
18
19
20
// Add padding if there is no navigation
.header + .container h1 {
    padding-top: 20px; 
}

Pat Kira's avatar
Pat Kira committed
21
22
h2 {
    font-size: $font-size-h2 * 0.88;
Naomi Guyer's avatar
Naomi Guyer committed
23
24
25
26
27
28
}

strong i {
    font-style: normal; //No italics on bold fonts thanks
}

Naomi Guyer's avatar
Naomi Guyer committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
a:focus {
    outline-color:$input-border-focus;
}

.lead {
  font-size: floor(($font-size-base * 1.15));
  font-weight: 300;
  line-height: 1.4;

  @media (min-width: $screen-sm-min) {
    font-size: ($font-size-base * 1.4);
  }
}

Naomi Guyer's avatar
Naomi Guyer committed
43
44
45
46
47
.metadata{
    font-size: 0.8em;
    color: #888;
}

Naomi Guyer's avatar
Naomi Guyer committed
48
49
50
51
.page-header,
h1 {
    margin-top:0;
}
52

Naomi Guyer's avatar
Naomi Guyer committed
53
54
55
h2, h3, h4, h5, legend {
    &.panel-heading {
        margin: 0;
Naomi Guyer's avatar
Naomi Guyer committed
56
        font-size: 16px;
Naomi Guyer's avatar
Naomi Guyer committed
57
58
    }
}
59

Naomi Guyer's avatar
Naomi Guyer committed
60
61
img {
    max-width: 100%;
62
63
}

Naomi Guyer's avatar
Naomi Guyer committed
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
.alert {
    h1, h2, h3, h4, h5, h6 {
        margin-top: 0;
        margin-bottom: 14px;
        color: inherit;
    }
    ul {
        padding-left: 20px;
    }
    .table {
        margin-top:10px;
        color: inherit;
        >thead{
            color: inherit;
        }
        >thead>tr>th {
            color: inherit;
            vertical-align: bottom;
            border-bottom: 1px solid $alert-info-border;
        }
        >thead>tr>th,
        >thead>tr>td,
        >tbody>tr>th,
        >tbody>tr>td,
        >tfoot>tr>th,
        >tfoot>tr>td {
            border-top: 1px solid $alert-info-border;
            &:first-child {
                padding-left:0;
            }
        }
    }
}
Naomi Guyer's avatar
Naomi Guyer committed
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116

ul {
    &.inline {
        li {
            display:inline-block;
        }
    }
    &.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;
    }
Naomi Guyer's avatar
Naomi Guyer committed
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
}

.table-small{
    font-size: 0.8em;
    th {
        font-size: 0.8em;
    }
    >thead>tr>th,
    >thead>tr>td,
    >tbody>tr>th,
    >tbody>tr>td,
    >tfoot>tr>th,
    >tfoot>tr>td {
        padding: 5px 3px;
        &:first-child {
            padding-left:8px;
        }
        &:last-child {
            padding-right: 8px;
        }
    }

    > thead>tr> th {
        padding: 10px 3px;
    }

    .btn-xs {
        font-size: 10px;
    }
}

table.table tr {
    .with-checkbox {
        min-width: 74px;

        input {
            margin-top:12px;
            margin-right:3px;
            float:left;
        }
    }
Naomi Guyer's avatar
Naomi Guyer committed
158
}