File tree Expand file tree Collapse file tree 3 files changed +39
-36
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 3 files changed +39
-36
lines changed Original file line number Diff line number Diff line change @@ -1415,30 +1415,6 @@ pre.rust {
1415
1415
# settings-menu .rotate > a img {
1416
1416
animation : rotating 2s linear infinite;
1417
1417
}
1418
- # settings-menu # settings {
1419
- position : absolute;
1420
- right : 0 ;
1421
- z-index : 1 ;
1422
- display : block;
1423
- margin-top : 7px ;
1424
- border-radius : 3px ;
1425
- border : 1px solid;
1426
- }
1427
- # settings-menu # settings .setting-line {
1428
- margin : 0.6em ;
1429
- }
1430
- /* This rule is to draw the little arrow connecting the settings menu to the gear icon. */
1431
- # settings-menu # settings ::before {
1432
- content : '' ;
1433
- position : absolute;
1434
- right : 11px ;
1435
- border : solid;
1436
- border-width : 1px 1px 0 0 ;
1437
- display : inline-block;
1438
- padding : 4px ;
1439
- transform : rotate (-45deg );
1440
- top : -5px ;
1441
- }
1442
1418
1443
1419
# help-button {
1444
1420
font-family : "Fira Sans" , Arial, sans-serif;
Original file line number Diff line number Diff line change 46
46
.toggle {
47
47
position : relative;
48
48
display : inline-block;
49
- width : 45 px ;
49
+ width : 100 % ;
50
50
height : 27px ;
51
51
margin-right : 20px ;
52
+ display : flex;
53
+ align-items : center;
54
+ cursor : pointer;
52
55
}
53
56
54
57
.toggle input {
57
60
}
58
61
59
62
.slider {
60
- position : absolute;
63
+ position : relative;
64
+ width : 45px ;
65
+ display : block;
66
+ height : 28px ;
67
+ margin-right : 20px ;
61
68
cursor : pointer;
62
- top : 0 ;
63
- left : 0 ;
64
- right : 0 ;
65
- bottom : 0 ;
66
69
background-color : # ccc ;
67
70
transition : .3s ;
68
71
}
@@ -95,3 +98,28 @@ input:checked + .slider:before {
95
98
width : 100% ;
96
99
display : block;
97
100
}
101
+
102
+ div # settings {
103
+ position : absolute;
104
+ right : 0 ;
105
+ z-index : 1 ;
106
+ display : block;
107
+ margin-top : 7px ;
108
+ border-radius : 3px ;
109
+ border : 1px solid;
110
+ }
111
+ # settings .setting-line {
112
+ margin : 1.2em 0.6em ;
113
+ }
114
+ /* This rule is to draw the little arrow connecting the settings menu to the gear icon. */
115
+ div # settings ::before {
116
+ content : '' ;
117
+ position : absolute;
118
+ right : 11px ;
119
+ border : solid;
120
+ border-width : 1px 1px 0 0 ;
121
+ display : inline-block;
122
+ padding : 4px ;
123
+ transform : rotate (-45deg );
124
+ top : -5px ;
125
+ }
Original file line number Diff line number Diff line change 130
130
} else {
131
131
// This is a toggle.
132
132
const checked = setting [ "default" ] === true ? " checked" : "" ;
133
- output += `
134
- <label class="toggle">
135
- <input type="checkbox" id="${ js_data_name } "${ checked } >
136
- <span class="slider"></span>
137
- </label>
138
- <div>${ setting_name } </div>` ;
133
+ output += `<label class="toggle">\
134
+ <input type="checkbox" id="${ js_data_name } "${ checked } >\
135
+ <span class="slider"></span>\
136
+ <span class="label">${ setting_name } </span>\
137
+ </label>` ;
139
138
}
140
139
output += "</div>" ;
141
140
}
You can’t perform that action at this time.
0 commit comments