uikit
Version:
UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
61 lines (42 loc) • 1.35 kB
text/less
//
// Component: Thumbnav
//
// ========================================================================
// Variables
// ========================================================================
//
// New
//
@thumbnav-item-background: fade(@global-background, 40%);
@thumbnav-item-hover-background: transparent;
@thumbnav-item-active-background: transparent;
// Component
// ========================================================================
.hook-thumbnav() {}
.hook-thumbnav-item() {
position: relative;
&::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: @thumbnav-item-background;
transition: background-color 0.1s ease-in-out;
}
}
.hook-thumbnav-item-hover() {
&::after { background-color: @thumbnav-item-hover-background; }
}
.hook-thumbnav-item-active() {
&::after { background-color: @thumbnav-item-active-background; }
}
// Miscellaneous
// ========================================================================
.hook-thumbnav-misc() {}
// Inverse
// ========================================================================
.hook-inverse-thumbnav-item() {}
.hook-inverse-thumbnav-item-hover() {}
.hook-inverse-thumbnav-item-active() {}