FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PMLBook.github.io/_static/togglebutton.css at main · PMLBook/PMLBook.github.io · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
PMLBook
/
PMLBook.github.io
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
4
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PMLBook.github.io
/
_static
/
togglebutton.css
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
160 lines (132 loc) · 3.64 KB
Breadcrumbs
PMLBook.github.io
/
_static
/
togglebutton.css
Copy path
File metadata and controls
executable file
·
160 lines (132 loc) · 3.64 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/**
* Admonition-based toggles
*/
/* Visibility of the target */
.
admonition
.
toggle
.
admonition-title
~
*
{
transition
:
opacity
.3
s
,
height
.3
s
;
}
/* Toggle buttons inside admonitions so we see the title */
.
admonition
.
toggle
{
position
:
relative;
}
/* Titles should cut off earlier to avoid overlapping w/ button */
.
admonition
.
toggle
.
admonition-title
{
padding-right
:
25
%
;
cursor
:
pointer;
}
/* Hovering will cause a slight shift in color to make it feel interactive */
.
admonition
.
toggle
.
admonition-title
:
hover
{
box-shadow
:
inset
0
0
0
px
20
px
rgb
(
0
0
0
/
1
%
);
}
/* Hovering will cause a slight shift in color to make it feel interactive */
.
admonition
.
toggle
.
admonition-title
:
active
{
box-shadow
:
inset
0
0
0
px
20
px
rgb
(
0
0
0
/
3
%
);
}
/* Remove extra whitespace below the admonition title when hidden */
.
admonition
.
toggle-hidden
{
padding-bottom
:
0
;
}
.
admonition
.
toggle-hidden
.
admonition-title
{
margin-bottom
:
0
;
}
/* hides all the content of a page until de-toggled */
.
admonition
.
toggle-hidden
.
admonition-title
~
*
{
height
:
0
;
margin
:
0
;
opacity
:
0
;
visibility
:
hidden;
}
/* General button style and position*/
button
.
toggle-button
{
/**
* Background and shape. By default there's no background
* but users can style as they wish
*/
background
:
none;
border
:
none;
outline
:
none;
/* Positioning just inside the admonition title */
position
:
absolute;
right
:
0.5
em
;
padding
:
0
px
;
border
:
none;
outline
:
none;
}
/* Display the toggle hint on wide screens */
@media
(
min-width
:
768
px
) {
button
.
toggle-button
.
toggle-button-hidden
:
before
{
content
:
attr
(data-toggle-hint);
/* This will be filled in by JS */
font-size
:
.8
em
;
align-self
:
center;
}
}
/* Icon behavior */
.
tb-icon
{
transition
:
transform
.2
s
ease-out;
height
:
1.5
em
;
width
:
1.5
em
;
stroke
:
currentColor;
/* So that we inherit the color of other text */
}
/* The icon should point right when closed, down when open. */
/* Open */
.
admonition
.
toggle
button
.
tb-icon
{
transform
:
rotate
(
90
deg
);
}
/* Closed */
.
admonition
.
toggle
button
.
toggle-button-hidden
.
tb-icon
{
transform
:
rotate
(
0
deg
);
}
/* With details toggles, we don't rotate the icon so it points right */
details
.
toggle-details
.
tb-icon
{
height
:
1.4
em
;
width
:
1.4
em
;
margin-top
:
0.1
em
;
/* To center the button vertically */
}
/**
* Details-based toggles.
* In this case, we wrap elements with `.toggle` in a details block.
*/
/* Details blocks */
details
.
toggle-details
{
margin
:
1
em
0
;
}
details
.
toggle-details
summary
{
display
:
flex;
align-items
:
center;
cursor
:
pointer;
list-style
:
none;
border-radius
:
.2
em
;
border-left
:
3
px
solid
#
1976d2
;
background-color
:
rgb
(
204
204
204
/
10
%
);
padding
:
0.2
em
0.7
em
0.3
em
0.5
em
;
/* Less padding on left because the SVG has left margin */
font-size
:
0.9
em
;
}
details
.
toggle-details
summary
:
hover
{
background-color
:
rgb
(
204
204
204
/
20
%
);
}
details
.
toggle-details
summary
:
active
{
background
:
rgb
(
204
204
204
/
28
%
);
}
.
toggle-details__summary-text
{
margin-left
:
0.2
em
;
}
details
.
toggle-details
[
open
]
summary
{
margin-bottom
:
.5
em
;
}
details
.
toggle-details
[
open
]
summary
.
tb-icon
{
transform
:
rotate
(
90
deg
);
}
details
.
toggle-details
[
open
]
summary
~
*
{
animation
:
toggle-fade-in
.3
s
ease-out;
}
@keyframes
toggle-fade-in {
from
{
opacity
:
0
%
;}
to
{
opacity
:
100
%
;}
}
/* Print rules - we hide all toggle button elements at print */
@media
print {
/* Always hide the summary so the button doesn't show up */
details
.
toggle-details
summary
{
display
:
none;
}
}
Back
|
FazBrowse Home
|
New Git URL