Move utilities css from global to local
This commit is contained in:
1 parent
36f15c381e
commit
58b3bf4959
4 files changed
+108
-106
No files matched your search
@@ -414,95 +414,4 @@ html[data-theme='dark'] {
|
||||
border: 0;
|
||||
border-radius: var(--ifm-global-radius);
|
||||
color: #fff
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.font-normal {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.button {
|
||||
width: 150px;
|
||||
outline: 3px solid var(--ifm-tabs-color-active);
|
||||
outline-offset: -3px;
|
||||
border: 0;
|
||||
border-radius: var(--ifm-global-radius);
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
transition: background-color 0.5s ease, color 0.5s ease;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
color: var(--ifm-tabs-color-active);
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: var(--ifm-color-primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.button-secondary {
|
||||
outline: 3px solid var(--ifm-color-secondary);
|
||||
}
|
||||
|
||||
.button-secondary:hover {
|
||||
background-color: var(--ifm-color-secondary);
|
||||
}
|
||||
|
||||
.form-input {
|
||||
border-radius: var(--ifm-global-radius);
|
||||
outline: 1px solid var(--ifm-color-secondary);
|
||||
outline-offset: -1px;
|
||||
padding: 10px;
|
||||
min-width: 50%;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.no-outline {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.form-input {
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* https://codepen.io/JAGATHISH1123/pen/PvayMB */
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 20px;
|
||||
background-color: var(--switch-background-color);
|
||||
border-radius: 20px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.switch::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background-color: white;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.checkbox:checked+.switch::after {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
.checkbox:checked+.switch {
|
||||
background-color: var(--ifm-color-secondary);
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
display: none;
|
||||
}
|
||||
Reference in new issue
Block a user