1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 14:19:43 +02:00
documize/gui/app/styles/widget/widget-tabnav.scss

59 lines
1.1 KiB
SCSS
Raw Normal View History

.tabnav-control {
2017-12-07 19:43:46 +00:00
padding: 0 !important;
margin: 0 !important;
font-size: 0;
> .tab {
@include ease-in();
@extend .text-truncate;
display: inline-block;
margin: 0;
padding: 5px 15px;
background-color: $color-white;
color: $color-primary;
2017-12-07 19:43:46 +00:00
border: 1px solid $color-border;
2018-05-24 18:09:38 +01:00
font-weight: 500;
font-size: 1.1rem;
text-align: center;
cursor: pointer;
2017-12-07 19:43:46 +00:00
line-height: 26px;
list-style-type: none;
margin-left: -4px; // remove whitespace inline block
margin-top: -1px; // ensure no double-border when tabs are stacked vertically on mobile device
&:first-of-type {
@include border-radius-left(3px);
}
&:last-of-type {
@include border-radius-right(3px);
}
&:hover {
background-color: $color-primary-light;
}
}
2018-05-23 12:37:21 +01:00
> .tab-vertical {
display: block;
margin-left: 0;
&:first-of-type {
@include border-radius-top(3px);
}
&:last-of-type {
@include border-radius-bottom(3px);
}
}
> .selected {
background-color: $color-primary-light;
2018-05-24 18:09:38 +01:00
font-weight: 700;
}
}
2018-05-23 12:37:21 +01:00
.tabnav-control-centered {
margin: 0 auto !important;
}