2018-08-29 11:11:58 +00:00
|
|
|
%action-group {
|
2019-06-14 17:27:37 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2018-08-29 11:11:58 +00:00
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
2019-06-14 17:27:37 +00:00
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%action-group > div {
|
|
|
|
transition: min-height 150ms;
|
|
|
|
min-height: 0;
|
|
|
|
width: 192px;
|
|
|
|
}
|
|
|
|
%action-group .confirmation-alert {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
%action-group > label span {
|
2019-06-14 17:27:37 +00:00
|
|
|
display: none;
|
2018-08-29 11:11:58 +00:00
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%action-group > label {
|
2018-08-29 11:11:58 +00:00
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%action-group > label:last-of-type {
|
2018-08-29 11:11:58 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
z-index: -1;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
%action-group input[type='radio'],
|
2019-11-25 17:43:25 +00:00
|
|
|
%action-group input[type='radio'] ~ div,
|
2018-08-29 11:11:58 +00:00
|
|
|
%action-group input[type='radio'] ~ .with-confirmation > ul {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%action-group input[type='radio']:checked ~ div,
|
2018-08-29 11:11:58 +00:00
|
|
|
%action-group input[type='radio']:checked ~ .with-confirmation > ul {
|
|
|
|
display: block;
|
|
|
|
}
|
2019-06-14 17:27:37 +00:00
|
|
|
/*TODO: If anything this is %toggle-button*/
|
2018-10-19 15:17:02 +00:00
|
|
|
%action-group input[type='radio']:checked ~ label[for='actions_close'] {
|
2018-08-29 11:11:58 +00:00
|
|
|
z-index: 1;
|
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%action-group input[type='checkbox'] {
|
|
|
|
@extend %action-group-confirm-toggle;
|
|
|
|
}
|
|
|
|
%action-group-confirm-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
%action-group-confirm-toggle + div > ul,
|
|
|
|
%action-group-confirm-toggle + div > ul + div {
|
|
|
|
transition: transform 150ms;
|
|
|
|
}
|
|
|
|
%action-group-confirm-toggle:checked + div > ul,
|
|
|
|
%action-group-confirm-toggle:checked + div > ul + div {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|