_typography.scss 1.78 KB
Newer Older
Pat Kira's avatar
Pat Kira committed
1
2
3
// Basic type related customisation

h1 {
Naomi Guyer's avatar
Naomi Guyer committed
4
    @extend .page-header;
Pat Kira's avatar
Pat Kira committed
5
    font-size: $font-size-h1 * 0.88;
6
7

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

Pat Kira's avatar
Pat Kira committed
13
14
h2 {
    font-size: $font-size-h2 * 0.88;
Naomi Guyer's avatar
Naomi Guyer committed
15
16
17
18
19
20
}

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

Naomi Guyer's avatar
Naomi Guyer committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
35
36
37
38
39
.metadata{
    font-size: 0.8em;
    color: #888;
}

Naomi Guyer's avatar
Naomi Guyer committed
40
41
42
43
.page-header,
h1 {
    margin-top:0;
}
44

Naomi Guyer's avatar
Naomi Guyer committed
45
46
47
48
49
50
h2, h3, h4, h5, legend {
    &.panel-heading {
        margin: 0;
        font-size: 1.2em;
    }
}
51

Naomi Guyer's avatar
Naomi Guyer committed
52
53
img {
    max-width: 100%;
54
55
}

Naomi Guyer's avatar
Naomi Guyer committed
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
.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

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;
    }
}