This repository was archived by the owner on Sep 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathWebPlatformDocs.less
More file actions
186 lines (156 loc) · 4.1 KB
/
WebPlatformDocs.less
File metadata and controls
186 lines (156 loc) · 4.1 KB
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/* Typography */
@font-weight-semibold: 500;
/* Overall inline widget content container */
.keyword-defn {
margin-left: 20px;
/* Enable text selection */
cursor: auto;
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
-o-user-select: text;
user-select: text;
&:focus {
outline: none;
}
font-family: SourceSansPro;
font-size: 14px;
h1 {
font-size: 16px;
font-weight: @font-weight-semibold;
line-height: normal;
margin: 15px 0 9px 0;
}
h2 {
font-size: 14px;
font-weight: @font-weight-semibold;
line-height: normal;
margin: 15px 0 9px 0;
}
code {
font-family: SourceCodePro;
font-size: 12px;
background: none; // revert Bootstrap styling
padding: 0;
white-space: normal;
}
b {
font-weight: @font-weight-semibold;
}
}
/* Left-hand column */
.keyword-summary {
box-sizing: border-box;
float: left;
padding-left: 20px;
margin-bottom: 20px;
width: 35%;
word-wrap: break-word;
-webkit-hyphens: auto;
hyphens: auto;
p {
line-height: 18px;
}
}
// Used to avoid overlapping CM scrollbar - TODO (#3460): need a cleaner way to do this
@scrollbar-wid: 17px;
/* Right-hand column */
.keyword-doc {
box-sizing: border-box; //for exact dimension
float: right;
width: 60%;
.scroller {
max-height: 300px;
overflow-y: auto;
margin: 20px (@scrollbar-wid + 4px) 0 0;
&:focus {
outline: none;
}
}
dl {
margin-top: 0px;
dt {
font-size: 13px;
font-weight: @font-weight-semibold;
margin-bottom: 3px;
}
dd {
// some styles must specifically be on <p> to override Bootstrap
p, li, b {
font-size: 13px;
font-style: normal;
line-height: 18px;
margin-bottom: 15px;
}
line-height: 18px;
margin-left: 20px;
margin-right: 0px;
margin-bottom: -2px; // remove extra spacing between dt-dd pairs
padding-bottom: 0px;
}
}
}
.divider-holder {
// This nesting lets us effectively have 'left: (37% + 12px)'
position: absolute;
left: 37%;
top: 0;
height: 100%;
.divider {
margin-left: 12px;
width: 0px;
height: 100%;
border-left: 1px solid #cccccc;
border-right: 1px solid white;
}
}
.content-bottom {
// Used to pull bottom edge of .keyword-defn down below its two floated children.
// Also prevents .more-info (after us in DOM order) from overlapping the float: right content.
clear: both;
}
/* Link to full docs, at bottom */
a.more-info {
position: absolute;
bottom: 0px;
right: (33px + @scrollbar-wid);
padding: 4px 10px 4px 10px;
background: #e5e9e9;
background-repeat: no-repeat;
background-size: 15px 15px;
background-position: 8px 4px;
border: 1px solid #9c9e9e;
border-radius: 3px 3px 0 0;
border-bottom: none;
box-shadow: inset 0 1px 0 white; // white chisel along top edge
font-size: 12px;
font-weight: @font-weight-semibold;
text-shadow: 0 1px 0 white;
&:hover {
background-color: #edf1f1;
text-decoration: none;
}
}
/* Link to license */
a.license-info {
position: absolute;
bottom: 0px;
left: 70px;
padding: 4px 10px 4px 10px;
background: #e5e9e9;
background-repeat: no-repeat;
background-size: 15px 15px;
background-position: 8px 4px;
border: 1px solid #9c9e9e;
border-radius: 3px 3px 0 0;
border-bottom: none;
box-shadow: inset 0 1px 0 white; // white chisel along top edge
font-size: 12px;
font-weight: @font-weight-semibold;
text-shadow: 0 1px 0 white;
&:hover {
background-color: #edf1f1;
text-decoration: none;
}
}