overleaf/services/web/frontend/stylesheets/components/switcher.less
Mathias Jakobsen 31190b967b [cm6] Add figure modal (#12751)
GitOrigin-RevId: 3043d1369ed85b38b1fec7479385b123a304c05b
2023-05-16 08:04:02 +00:00

37 lines
695 B
Text

.switcher-input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.switcher-label {
border: 1px solid black;
padding: 4px 16px;
user-select: none;
}
.switcher-label:first-of-type {
border-top-left-radius: 999px;
border-bottom-left-radius: 999px;
}
.switcher-label:last-of-type {
border-top-right-radius: 999px;
border-bottom-right-radius: 999px;
}
.switcher-label:not(:first-of-type) {
border-left-width: 0px;
}
.switcher-input:checked + .switcher-label {
background-color: @neutral-20;
}
.switcher-input:disabled + .switcher-label {
cursor: not-allowed;
background-color: @neutral-20;
border-color: @neutral-20;
opacity: 1;
color: @neutral-90;
}