2015-08-17 17:00:26 -07:00
/ * *
* Tabs .
* /
. is-collapse-enabled . tabs ,
. is-horizontal . tabs {
position : relative ;
}
. is-collapse-enabled . tabs : before ,
. is-horizontal . tabs : before {
content : '' ;
display : block ;
background-color : # A6A6A6 ;
height : 1px ;
position : absolute ;
bottom : 0 ;
left : 0 ;
z-index : 10 ;
right : 0 ;
}
/* Span the full width of the viewport */
. content-header . is-horizontal . tabs : before ,
. content-header . is-collapse-enabled . tabs : before {
left : -2 . 5em ;
right : -2 . 5em ;
}
/ * *
* Tab
*
* 1 . Required by some elements such as < button >
* 2 . Fixed height needed to ensure alignment with absolutely-positioned
* active tab .
* /
. tabs__tab {
position : relative ;
display : block ;
overflow : hidden ;
box-sizing : border-box ;
margin : -1px 0 0 ;
padding : 9px 2em 7px 1em ; /* LTR */
width : 100 % ; /* 1 */
border : 1px solid # bfbfbf ;
background-color : rgba ( 242 , 242 , 240 , 0 . 7 ) ;
color : # 0074bd ;
text-overflow : ellipsis ;
white-space : nowrap ;
}
[ dir = "rtl" ] . tabs__tab {
padding-left : 2em ;
padding-right : 1em ;
}
. tabs__tab : hover ,
. tabs__tab : focus {
color : # 008ee6 ;
background-color : # fafaf7 ;
}
li . tabs__tab {
display : block ;
padding : 0 ;
}
/* This is required to win over specifity of [dir="rtl"] .tabs__tab */
[ dir = "rtl" ] li . tabs__tab {
padding-left : 0 ;
padding-right : 0 ;
}
li . tabs__tab a {
padding : 9px 2em 7px 1em ; /* LTR */
}
[ dir = "rtl" ] li . tabs__tab a {
padding-left : 2em ;
padding-right : 1em ;
}
. tabs a : hover ,
. tabs a : focus {
text-decoration : none ;
}
/* Primary tabs */
. tabs . primary {
clear : both ;
margin : 16px 0 0 ;
margin : 1rem 0 0 ;
}
. tabs . primary . tabs__tab . is-active {
z-index : 15 ;
border-color : # a6a6a6 ;
border-radius : 4px 0 0 0 ; /* LTR */
background-color : # ffffff ;
color : # 004f80 ;
}
[ dir = "rtl" ] . tabs . primary . tabs__tab . is-active {
border-top-left-radius : 0 ;
border-top-right-radius : 4px ;
}
. tabs . primary a {
background : none ;
}
. tabs . primary a : focus {
color : # 008ee6 ;
background-color : # fafaf7 ;
text-decoration : underline ;
}
. tabs . primary . is-active a : focus {
background : none ;
text-decoration : underline ;
}
/* Only add the arrow if there's space */
@ media screen and ( min-width : 18 . 75em ) { /* 300px */
. tabs . primary a {
background : url ( . . / . . / . . / . . / misc / icons / 0074bd / chevron-right . svg ) 99 % center no-repeat ;
}
[ dir = "rtl" ] . tabs . primary a {
background : url ( . . / . . / . . / . . / misc / icons / 0074bd / chevron-left . svg ) 1 % center no-repeat ;
}
. tabs . primary . tabs__tab . is-active a {
background-image : none ;
}
}
. tabs__trigger {
display : none ;
}
/* JS dependent styling */
. is-collapse-enabled . tabs__trigger {
box-sizing : content-box ;
display : block ;
position : absolute ;
z-index : 10 ;
right : 0 ; /* LTR */
top : 2px ;
left : auto ; /* LTR */
width : 25 % ;
padding-right : 4px ;
padding-left : 4px ;
border-left : 0 ; /* LTR */
border-radius : 0 4px 0 0 ; /* LTR */
font-family : Arial , sans-serif ;
font-size : 1 . 25em ;
letter-spacing : 0 . 1em ;
text-align : center ;
outline : 0 ;
}
[ dir = "rtl" ] . is-collapse-enabled . tabs__trigger {
border-right : 0 ;
border-left : 1px solid # bfbfbf ;
border-radius : 4px 0 0 0 ;
right : auto ;
left : 0 ;
}
. is-collapse-enabled . tabs {
padding-top : 38px ;
max-height : 0 ;
}
. tabs . is-open {
max-height : 999em ;
padding-bottom : 16px ;
padding-bottom : 1rem ;
}
. is-collapse-enabled . tabs__tab . is-active {
position : absolute ;
top : 2px ;
left : 0 ; /* LTR */
width : 75 % ;
border-bottom : 0 ;
}
[ dir = "rtl" ] . is-collapse-enabled . tabs__tab . is-active {
left : auto ;
right : 0 ;
}
. is-collapse-enabled . tabs . primary a . is-active : before {
content : none ;
}
. is-open . tabs__tab . is-active {
border-color : # a6a6a6 ;
background-color : # ffffff ;
color : # 004f80 ;
border-bottom : 1px solid # a6a6a6 ;
}
/* Styles for the horizontal state always take priority */
. is-horizontal . tabs {
max-height : none ! important ;
padding-top : 0 ! important ;
overflow : visible ;
}
. is-horizontal . tabs__tab {
float : left ; /* LTR */
height : auto ;
width : auto ;
margin : 0 0 -1px ;
text-align : center ;
border-bottom-color : # a6a6a6 ;
}
[ dir = "rtl" ] . is-horizontal . tabs__tab {
float : right ;
/* This is required to win over specifity of [dir="rtl"] .tabs > li */
margin-left : 0 ;
}
. is-horizontal . tabs__tab + . tabs__tab {
margin-left : -1px ; /* LTR */
}
[ dir = "rtl" ] . is-horizontal . tabs__tab + . tabs__tab {
margin-left : 0 ;
margin-right : -1px ;
}
. is-horizontal . tabs . primary . tabs__tab : first-child {
border-radius : 4px 0 0 0 ; /* LTR */
}
[ dir = "rtl" ] . is-horizontal . tabs . primary . tabs__tab : first-child {
border-radius : 0 4px 0 0 ;
}
. is-horizontal . tabs . primary . tabs__tab : last-child {
border-radius : 0 4px 0 0 ; /* LTR */
}
[ dir = "rtl" ] . is-horizontal . tabs . primary . tabs__tab : last-child {
border-radius : 4px 0 0 0 ;
}
/* Override the states above */
. is-horizontal . tabs__tab . is-active ,
. is-horizontal . tabs . primary . tabs__tab . is-active ,
[ dir = "rtl" ] . is-horizontal . tabs . primary . tabs__tab . is-active {
border-radius : 4px 4px 0 0 ;
position : relative ;
width : auto ;
top : 0 ;
border-bottom : 0 ;
margin : 0 -4px ;
}
. is-horizontal . tabs . primary a {
background-image : none ;
padding : 7px 2em 7px 2em ;
}
. is-horizontal . tabs__trigger {
display : none ;
}
/* Secondary tabs */
. tabs . secondary {
display : block ;
margin-top : 16px ;
margin-top : 1rem ;
}
. tabs . secondary . tabs__tab {
display : block ;
padding : 5px 15px 5px 16px ; /* LTR */
margin-left : -1px ; /* LTR */
color : # 0074bd ;
-webkit-transition : border-color 0 . 2s , background-color 0 . 2s ;
transition : border-color 0 . 2s , background-color 0 . 2s ;
}
[ dir = "rtl" ] . tabs . secondary . tabs__tab {
padding-left : 15px ;
padding-right : 16px ;
margin-left : 0 ;
margin-right : -1px ;
}
2015-11-04 11:11:27 -08:00
/* This is required to win over specificity of [dir="rtl"] .tabs.secondary .tabs__tab */
[ dir = "rtl" ] . views-displays . tabs . secondary li ,
[ dir = "rtl" ] . views-displays . tabs . secondary li . is-active {
padding-left : 0 ;
padding-right : 0 ;
}
2015-08-17 17:00:26 -07:00
. tabs . secondary . tabs__tab + . tabs__tab {
border-top : 1px solid # d9d8d4 ;
}
. tabs . secondary . tabs__tab . is-active {
color : # 004f80 ;
border-left : 2px solid # 004f80 ; /* LTR */
padding-left : 15px ; /* LTR */
}
[ dir = "rtl" ] . tabs . secondary . tabs__tab . is-active {
border-left : 1px solid # bfbfbf ;
border-right : 2px solid # 004f80 ;
padding-right : 15px ;
}
2015-11-04 11:11:27 -08:00
/* This is required to win over specificity of [dir="rtl"] .tabs.secondary .tabs__tab.is-active */
[ dir = "rtl" ] . views-displays . tabs . secondary li . is-active {
border : 0 none ;
padding-right : 0 ;
}
2015-08-17 17:00:26 -07:00
. tabs . secondary . tabs__tab : hover ,
. tabs . secondary . tabs__tab : focus {
color : # 008ee6 ;
border-left : 2px solid # 008ee6 ; /* LTR */
padding-left : 15px ; /* LTR */
}
[ dir = "rtl" ] . tabs . secondary . tabs__tab : hover ,
[ dir = "rtl" ] . tabs . secondary . tabs__tab : focus {
border-left : 1px solid # bfbfbf ;
border-right : 2px solid # 008ee6 ;
padding-right : 15px ;
}
2015-11-04 11:11:27 -08:00
/* This is required to win over specificity of [dir="rtl"] .tabs.secondary .tabs__tab:hover */
[ dir = "rtl" ] . views-displays . tabs li . tabs__tab : hover {
border : 0 none ;
padding-right : 0 ;
}
2015-08-17 17:00:26 -07:00
. tabs . secondary a {
background-color : transparent ;
padding : 7px 13px 5px ;
text-decoration : none ;
}
2015-11-04 11:11:27 -08:00
/* This is required to win over specificity of [dir="rtl"] li.tabs__tab a */
[ dir = "rtl" ] . tabs . secondary a {
padding-left : 13px ;
padding-right : 13px ;
}
/* This is required to win over specificity of [dir="rtl"] .tabs.secondary a */
[ dir = "rtl" ] . views-displays . tabs . secondary a {
padding-left : 7px ;
padding-right : 7px ;
}
2015-08-17 17:00:26 -07:00
. tabs . secondary . is-active a {
color : # 004f80 ;
}
. tabs . secondary a : focus {
text-decoration : underline ;
}
/* Styles for the horizontal state */
. is-horizontal . tabs . secondary . tabs__tab {
background : none ;
float : left ; /* LTR */
position : relative ;
top : 0 ;
z-index : 15 ;
margin-left : 1em ;
margin-right : 1em ;
border-bottom : 2px solid transparent ;
border-left : 1px solid transparent ; /* LTR */
border-right-color : transparent ; /* LTR */
border-top : 0 ;
padding : 0 ;
}
/ * *
* 1 . This is required to win over specifity of
* [ dir = "rtl" ] . tabs . secondary . tabs__tab : hover ,
* [ dir = "rtl" ] . tabs . secondary . tabs__tab : focus
* /
[ dir = "rtl" ] . is-horizontal . tabs . secondary . tabs__tab {
float : right ;
border-right : 1px solid transparent ;
border-left-color : transparent ;
padding-right : 0 ; /* 1 */
}
. is-horizontal . tabs . secondary . tabs__tab . is-active {
border-bottom-color : # 004f80 ;
}
. is-horizontal . tabs . secondary . tabs__tab : hover ,
. is-horizontal . tabs . secondary . tabs__tab : focus {
border-bottom-color : # 008ee6 ;
}