ldc-jeusselin/resources/sass/app_custom.scss

73 lines
1.5 KiB
SCSS
Vendored

/* Switch */
.onoffswitch {
position: relative; width: 80px; user-select: none;
}
.onoffswitch-checkbox {
position: absolute;
opacity: 0;
pointer-events: none;
}
.onoffswitch-label {
display: block; overflow: hidden;
border: 2px solid #999; border-radius: 8px; cursor: pointer;
}
.onoffswitch-inner {
display: block; width: 200%; margin-left: -100%;
transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner::before, .onoffswitch-inner::after {
display: block; width: 50%; height: 35px;
box-sizing: border-box; padding: 0; color: #fff; float: left; font-family: Trebuchet, Arial, sans-serif;
font-size: 15px; font-weight: bold; line-height: 35px;
}
.onoffswitch-inner::before {
padding-left: 10px;
background-color: #2196F3; color: #FFF;
content: "Oui";
}
.onoffswitch-inner::after {
padding-right: 10px;
background-color: #CCC; color: #999;
content: "Non";
text-align: right;
}
.onoffswitch-switch {
position: absolute; top: 0;
right: 41px; bottom: 0;
display: block; width: 22px;
border: 2px solid #999; border-radius: 8px; margin: 6.5px;
background: #FFF;
transition: all 0.3s ease-in 0s;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
right: 0;
}
/* Fin du switch */
.required-asterisk {
color: #f00;
}
.game-name {
font-size: large;
text-align: center;
}
.no-wrap-header {
th {
white-space: nowrap;
}
}