-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy path_typography.less
152 lines (141 loc) · 3.06 KB
/
_typography.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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
// Page header
// --------------------------------------------------
.console-os {
.page-header {
border-color: @page-header-border-color;
margin-bottom: 0;
margin-left: -20px;
margin-right: -20px;
margin-top: 20px;
padding-left: 20px;
padding-right: 20px;
.actions {
margin-top: 0;
}
}
.page-header-link {
display: inline-block;
font-size: @font-size-small;
font-weight: normal;
margin: 0 10px;
white-space: nowrap;
}
@media (min-width: @screen-md-min) {
.page-header.page-header-bleed-left {
margin-left: -30px;
padding-left: 30px;
margin-right: -30px;
padding-right: 30px;
}
}
.section-header{
.page-header();
border-bottom: none;
padding-bottom: 10px;
}
}
h1 {
&.contains-actions {
.word-break();
}
small.meta,
.build-config-summary .meta,
.deployment-config-summary .meta {
font-size: 12px;
@media (max-width: @screen-xs-min) {
display: block;
margin-top: 5px;
}
}
}
.learn-more-block {
display: block;
font-size: @font-size-small;
font-weight: normal;
}
.learn-more-inline {
display: inline;
font-size: @font-size-small;
font-weight: normal;
margin-left: 5px;
}
// same style as a <strong> tag but used when you want to optionally apply the style based on a condition
.strong {
font-weight: bold;
}
// Misc
// --------------------------------------------------
.action-inline {
margin-left: @action-link-inline-margin;
font-size: @font-size-small;
i.pficon, i.fa {
color: @btn-default-color;
margin-right: 5px;
}
}
a.subtle-link {
color: @gray-light;
border-bottom: 1px dotted #BBB;
&:hover, &:active, &:focus {
color: @link-hover-color;
border-bottom: 1px dotted @link-hover-color;
text-decoration: none;
}
}
// Use to control spacing on the parent div to prevent spacing discrepancy at mobile
.h2-help-block {
margin-bottom: (@line-height-computed / 2);
h2 {
margin-bottom: 0;
margin-right: 5px;
}
}
/* force a space where it may collapse */
.space-after:after {
content: "\00a0";
}
.space-before:before {
content: "\00a0";
}
/* Device specific text alignment classes.
- use with the basic align-left & align-right provided by bootstrap.
- example usage:
<div class="text-xs-left text-right">
would align text to left on mobile, else align right on other devices.
---------------------------------------------------------------------------- */
// extra small
@media (max-width: @screen-xs-max) {
.text-xs-left {
text-align: left;
}
.text-xs-right {
text-align: right;
}
}
// small
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
.text-sm-left {
text-align: left;
}
.text-sm-right {
text-align: right;
}
}
// medium
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
.text-md-left {
text-align: left;
}
.text-md-right {
text-align: right;
}
}
// large
@media (min-width: @screen-lg-min) {
.text-lg-left {
text-align: left;
}
.text-lg-right {
text-align: right;
}
}