c7d89f364d
* Begin refactoring CSS into component folders. Moved most components into layout/skin folders, left out a couple of ones I want to think about more. * Adjust grays based on recent Structure changes * Switch to fullscreen layout for lists and detail, left aligned forms (#4435) * Specifically use the 'actions_close' label, not just the :last-child (actions-group) * Replace some non-var-ed colours in vaults code skin, plus prefixing (black and white)
77 lines
1.4 KiB
SCSS
77 lines
1.4 KiB
SCSS
%action-group label span {
|
|
display: none;
|
|
}
|
|
%action-group::before {
|
|
margin-left: -1px;
|
|
}
|
|
%action-group label::after {
|
|
margin-left: 5px;
|
|
}
|
|
%action-group label::before {
|
|
margin-left: -7px;
|
|
}
|
|
%action-group {
|
|
width: 30px;
|
|
height: 30px;
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 15px;
|
|
}
|
|
%action-group label {
|
|
display: block;
|
|
height: 100%;
|
|
}
|
|
%action-group label:last-of-type {
|
|
position: absolute;
|
|
width: 100%;
|
|
z-index: -1;
|
|
top: 0;
|
|
}
|
|
%action-group ul {
|
|
position: absolute;
|
|
right: -10px;
|
|
padding: 1px;
|
|
}
|
|
%action-group ul::before {
|
|
position: absolute;
|
|
right: 18px;
|
|
content: '';
|
|
display: block;
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
%action-group ul:not(.above) {
|
|
top: 35px;
|
|
}
|
|
%action-group ul:not(.above)::before {
|
|
top: -6px;
|
|
transform: rotate(45deg);
|
|
}
|
|
%action-group ul.above {
|
|
bottom: 35px;
|
|
}
|
|
%action-group ul.above::before {
|
|
bottom: -6px;
|
|
transform: rotate(225deg);
|
|
}
|
|
%action-group li {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
%action-group li a {
|
|
width: 170px;
|
|
padding: 10px 10px;
|
|
}
|
|
%action-group input[type='radio'],
|
|
%action-group input[type='radio'] ~ ul,
|
|
%action-group input[type='radio'] ~ .with-confirmation > ul {
|
|
display: none;
|
|
}
|
|
%action-group input[type='radio']:checked ~ ul,
|
|
%action-group input[type='radio']:checked ~ .with-confirmation > ul {
|
|
display: block;
|
|
}
|
|
%action-group input[type='radio']:checked ~ label[for="actions_close"] {
|
|
z-index: 1;
|
|
}
|