Files
PurpleMine2/sass/components/_tabs.scss
2015-01-08 09:44:36 +01:00

146 lines
3.2 KiB
SCSS

//
// Tabs
// --------------------------------------------------
.tabs {
$tabs-buttons-width: 40px;
margin-bottom: $line-height-computed;
padding-right: $tabs-buttons-width;
overflow: hidden;
position: relative;
> ul {
width: 2000px; // stop it from breaking
margin: 0;
padding-left: 0;
list-style: none;
border-bottom: 1px solid $tab-border;
@extend %clearfix;
> li {
float: left;
margin-bottom: -1px;
> a {
display: block;
margin-right: 2px;
padding: $tab-padding-vertical $tab-padding-horizontal;
border: 1px solid transparent;
border-radius: $border-radius-base $border-radius-base 0 0;
&:hover,
&:focus {
text-decoration: none;
background-color: $tab-hover-bg;
border-color: $tab-hover-border $tab-hover-border $tab-border;
}
&.selected {
color: $tab-active-text;
background: $tab-active-bg;
border-color: $tab-active-border $tab-active-border $tab-active-bg;
}
}
}
}
.tabs-buttons {
position: absolute;
top: 0;
right: 0;
width: $tabs-buttons-width;
padding-left: 5px;
background-color: $body-bg;
> button {
float: left;
margin: 0;
padding: 0;
width: 50%;
border: 0 none;
opacity: .8;
height: $tab-padding-vertical * 2 + $line-height-computed;
background-color: $body-bg;
background-position: center center;
background-repeat: no-repeat;
box-shadow: none;
@include transition(opacity .1s);
&:hover,
&:active {
opacity: 1;
}
&:active {
background-color: $tab-hover-bg;
}
}
/**
* TODO: ikony
*/
.tab-left {
background-image: url(../../../images/bullet_arrow_left.png);
}
.tab-right {
background-image: url(../../../images/bullet_arrow_right.png);
}
}
}
/**
* Specific tabs content layout
*/
#tab-content-modules fieldset p {
margin: 3px 0 4px 0;
}
#tab-content-members,
#tab-content-memberships,
#tab-content-users {
.splitcontentleft {
width: 65%;
}
.splitcontentright {
width: 35%;
}
fieldset {
margin-bottom: $line-height-computed;
legend {
font-weight: bold;
}
label {
display: block;
margin-bottom: 3px;
@include checkbox;
}
label[for=principal_search] {
padding-left: 0;
}
}
.pagination .items {
margin-left: 0;
}
}
#tab-content-members,
#tab-content-users {
#principals {
max-height: 400px;
overflow: auto;
}
}
#tab-content-memberships .splitcontentright select {
width: 100%;
}