1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/elements/emby-checkbox/emby-checkbox.css

138 lines
2.4 KiB
CSS
Raw Normal View History

2018-10-23 01:13:23 +03:00
.emby-checkbox-label {
position: relative;
z-index: 1;
vertical-align: middle;
display: inline-flex;
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 0;
padding-left: 2.4em;
2018-10-23 01:13:23 +03:00
align-items: center;
height: 2.35em;
cursor: pointer;
2018-10-23 01:13:23 +03:00
}
.checkboxFieldDescription {
padding-left: 2.4em;
2018-10-23 01:13:23 +03:00
}
.checkboxContainer {
margin-bottom: 1.8em;
display: flex;
}
.checkboxListContainer {
margin-bottom: 1.8em;
2018-10-23 01:13:23 +03:00
}
.checkboxContainer-withDescription {
flex-direction: column;
2018-10-23 01:13:23 +03:00
}
.emby-checkbox {
position: absolute;
2020-01-22 21:40:45 +01:00
/* This is for focusing purposes, so the focusManager doesn't skip over it */
2018-10-23 01:13:23 +03:00
width: 1px;
height: 1px;
margin: 0;
padding: 0;
opacity: 0;
2020-01-09 19:35:19 +01:00
-ms-appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
2018-10-23 01:13:23 +03:00
appearance: none;
border: none;
2018-10-23 01:13:23 +03:00
}
.checkboxOutline {
position: absolute;
top: 3px;
left: 0;
box-sizing: border-box;
width: 1.83em;
height: 1.83em;
margin: 0;
overflow: hidden;
2020-03-12 12:35:13 +03:00
border: 0.14em solid currentcolor;
2020-01-19 15:00:37 +01:00
border-radius: 0.14em;
2018-10-23 01:13:23 +03:00
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
2018-10-23 01:13:23 +03:00
}
.checkboxIcon {
font-size: 1.6em;
color: #fff;
2018-10-23 01:13:23 +03:00
}
2020-03-03 19:48:13 +03:00
.checkboxIcon-checked,
.emby-checkbox-label .checkboxIcon-checked {
display: none;
2018-10-23 01:13:23 +03:00
}
2019-05-16 18:23:46 -04:00
.emby-checkbox:checked + span + .checkboxOutline > .checkboxIcon-checked {
2019-09-06 22:33:15 -07:00
/* background color set by theme */
display: flex !important;
2018-10-23 01:13:23 +03:00
}
2019-05-16 18:23:46 -04:00
.emby-checkbox:checked + span + .checkboxOutline > .checkboxIcon-unchecked {
2019-09-06 22:33:15 -07:00
/* background color set by theme */
display: none !important;
2018-10-23 01:13:23 +03:00
}
2019-05-16 18:23:46 -04:00
.emby-checkbox:checked[disabled] + span + .checkboxOutline > .checkboxIcon {
background-color: rgba(0, 0, 0, 0.26);
2018-10-23 01:13:23 +03:00
}
.checkboxLabel {
position: relative;
margin: 0;
2018-10-23 01:13:23 +03:00
}
.checkboxList > .emby-checkbox-label {
2018-10-23 01:13:23 +03:00
display: flex;
2019-09-06 22:33:15 -07:00
margin: 0.5em 0;
2018-10-23 01:13:23 +03:00
}
.checkboxList-verticalwrap {
display: flex;
flex-wrap: wrap;
2018-10-23 01:13:23 +03:00
}
2020-01-25 11:42:43 +01:00
.checkboxList-verticalwrap > .emby-checkbox-label {
display: inline-flex;
margin: 0.3em 0 0.3em 0;
width: 12em;
}
2018-10-23 01:13:23 +03:00
.checkboxList-paperList {
padding: 1em !important;
2018-10-23 01:13:23 +03:00
}
.checkboxListLabel {
2020-01-19 15:00:37 +01:00
margin-bottom: 0.25em;
2018-10-23 01:13:23 +03:00
}
@keyframes repaintChrome {
from {
padding: 0;
}
to {
padding: 0;
}
}
2020-01-09 19:35:19 +01:00
@-webkit-keyframes repaintChrome {
from {
padding: 0;
}
2018-10-23 01:13:23 +03:00
to {
padding: 0;
2018-10-23 01:13:23 +03:00
}
}