2018-08-30 23:36:30 +02:00
|
|
|
.ui-helper-reset { line-height: inherit; }
|
2018-10-22 21:00:45 +02:00
|
|
|
|
2019-03-29 02:53:26 +01:00
|
|
|
@mixin -active-tab {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
a {
|
2019-12-12 08:47:51 +01:00
|
|
|
color: $sl-color--pale-sky;
|
2019-03-29 02:53:26 +01:00
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after,
|
|
|
|
&:before {
|
|
|
|
bottom: -3px;
|
|
|
|
left: 50%;
|
|
|
|
border: solid transparent;
|
|
|
|
content: " ";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
border-color: transparent;
|
|
|
|
border-bottom-color: #f8f8f8;
|
|
|
|
border-width: 10px;
|
|
|
|
margin-left: -10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
border-color: transparent;
|
|
|
|
border-bottom-color: #ebebeb;
|
|
|
|
border-width: 11px;
|
|
|
|
margin-left: -11px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-30 23:36:30 +02:00
|
|
|
.ui-tabs {
|
2019-03-04 23:41:21 +01:00
|
|
|
|
2018-08-30 23:36:30 +02:00
|
|
|
&,
|
|
|
|
.ui-tabs-nav,
|
|
|
|
.ui-tabs-nav li.ui-tabs-active,
|
|
|
|
.ui-tabs-panel { padding: 0; }
|
2014-03-14 06:04:34 +01:00
|
|
|
|
2019-03-29 02:53:26 +01:00
|
|
|
.ui-tabs-panel-inactive { display: none; }
|
|
|
|
|
2018-08-30 23:36:30 +02:00
|
|
|
.ui-tabs-nav {
|
2019-04-12 00:30:17 +02:00
|
|
|
font-size: $sl-font-size--small;
|
2019-03-10 15:10:50 +01:00
|
|
|
margin-top: -1rem;
|
2019-03-05 02:51:45 +01:00
|
|
|
margin-left: -1em;
|
2018-12-28 23:55:48 +01:00
|
|
|
|
2018-12-29 02:59:53 +01:00
|
|
|
a { border: 0; background: none; }
|
2018-12-29 02:03:29 +01:00
|
|
|
|
2018-08-30 23:36:30 +02:00
|
|
|
a:focus {
|
|
|
|
outline: 0px !important;
|
|
|
|
border:none !important;
|
|
|
|
box-shadow:none !important;
|
|
|
|
}
|
2018-12-28 23:55:48 +01:00
|
|
|
|
2019-03-29 02:53:26 +01:00
|
|
|
.ui-tabs-active { @include -active-tab; }
|
2018-12-28 23:55:48 +01:00
|
|
|
|
2018-08-30 23:36:30 +02:00
|
|
|
li {
|
2019-03-05 02:51:45 +01:00
|
|
|
float: left;
|
2019-03-29 02:53:26 +01:00
|
|
|
margin: 0;
|
2018-08-30 02:54:04 +02:00
|
|
|
|
2018-08-30 23:36:30 +02:00
|
|
|
&.css-tab {
|
2018-12-28 23:55:48 +01:00
|
|
|
|
2018-08-30 23:36:30 +02:00
|
|
|
&,
|
2018-12-28 01:31:28 +01:00
|
|
|
&.ui-tabs-active { margin-left: 2em; }
|
2018-08-30 02:54:04 +02:00
|
|
|
|
2018-08-30 23:36:30 +02:00
|
|
|
a::before {
|
2018-12-28 01:31:28 +01:00
|
|
|
color: $sl-color--regent-grey;
|
|
|
|
content: "\21d2";
|
|
|
|
font-size: $sl-font-size--large;
|
|
|
|
font-weight: $sl-font-weight--bold;
|
|
|
|
left: -1.2em;
|
2018-08-30 23:36:30 +02:00
|
|
|
position: absolute;
|
2019-03-05 02:51:45 +01:00
|
|
|
top: 0.75rem;
|
2018-08-30 02:54:04 +02:00
|
|
|
}
|
2014-03-14 06:04:34 +01:00
|
|
|
}
|
2018-08-30 23:36:30 +02:00
|
|
|
}
|
2014-03-14 06:04:34 +01:00
|
|
|
|
2018-12-28 01:31:28 +01:00
|
|
|
.ui-tabs-anchor { padding: .75rem 1rem; }
|
|
|
|
}
|
2018-12-28 23:57:14 +01:00
|
|
|
|
2019-03-10 15:10:50 +01:00
|
|
|
pre { margin-top: 0; }
|
|
|
|
|
2018-12-28 23:57:14 +01:00
|
|
|
// Carefully calibrated so that the distance between two code blocks in the
|
|
|
|
// syntax switcher is exactly equal to two lines, so there's no visual jitter
|
|
|
|
// when switching between syntaxes.
|
2019-03-10 15:10:50 +01:00
|
|
|
pre + pre { margin-top: 22px; }
|
2018-12-28 01:31:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ui-widget.ui-widget-content,
|
|
|
|
.ui-widget-header,
|
|
|
|
.ui-state-default,
|
|
|
|
.ui-widget-content .ui-state-default,
|
|
|
|
.ui-widget-header .ui-state-default,
|
|
|
|
.ui-button,
|
|
|
|
html .ui-button.ui-state-disabled:hover,
|
|
|
|
html .ui-button.ui-state-disabled:active { border: 0; }
|
|
|
|
|
|
|
|
.ui-widget-header { font-weight: inherit; }
|
|
|
|
|
|
|
|
.ui-widget { font: inherit; }
|
|
|
|
|
|
|
|
.ui-widget-content,
|
|
|
|
.ui-widget-header,
|
|
|
|
.ui-state-default,
|
|
|
|
.ui-widget-content .ui-state-default,
|
|
|
|
.ui-widget-header .ui-state-default,
|
|
|
|
.ui-button,
|
|
|
|
html .ui-button.ui-state-disabled:hover,
|
|
|
|
html .ui-button.ui-state-disabled:active { background: none; }
|
|
|
|
|
|
|
|
.ui-widget-content,
|
|
|
|
.ui-widget-header { color: inherit; }
|
|
|
|
|
|
|
|
.sl-c-callout {
|
|
|
|
.ui-state-default,
|
|
|
|
.ui-widget-content .ui-state-default,
|
|
|
|
.ui-widget-header .ui-state-default,
|
|
|
|
.ui-button,
|
|
|
|
html .ui-button.ui-state-disabled:hover,
|
|
|
|
html .ui-button.ui-state-disabled:active,
|
|
|
|
.ui-state-default a,
|
|
|
|
.ui-state-default a:link,
|
|
|
|
.ui-state-default a:visited,
|
|
|
|
a.ui-button,
|
|
|
|
a:link.ui-button,
|
|
|
|
a:visited.ui-button,
|
|
|
|
.ui-button { color: inherit; }
|
|
|
|
|
|
|
|
.ui-widget a { border: 0; }
|
2014-03-14 06:04:34 +01:00
|
|
|
}
|
2018-12-28 04:47:31 +01:00
|
|
|
|
2019-03-04 23:41:21 +01:00
|
|
|
.ui-tabs-panel > h3 {
|
2019-03-05 02:19:06 +01:00
|
|
|
position: relative;
|
|
|
|
top: .45rem;
|
2019-03-04 23:41:21 +01:00
|
|
|
margin: 0;
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: $sl-color--hopbush;
|
|
|
|
|
|
|
|
&,
|
|
|
|
* { font-size: 1rem; }
|
|
|
|
}
|
2019-03-29 02:53:26 +01:00
|
|
|
|
|
|
|
@mixin -split-css-tabs {
|
|
|
|
.ui-tabs.can-split {
|
|
|
|
.ui-tabs-panel {
|
|
|
|
&.scss, &.sass {
|
2019-03-29 03:12:50 +01:00
|
|
|
width: calc(var(--split-location) - 5px);
|
2019-03-29 02:53:26 +01:00
|
|
|
display: inline-block;
|
|
|
|
&.ui-tabs-panel-inactive { display: none; }
|
|
|
|
}
|
|
|
|
|
|
|
|
&.css {
|
2019-03-29 03:12:50 +01:00
|
|
|
width: calc(100% - var(--split-location) - 5px);
|
2019-03-29 02:53:26 +01:00
|
|
|
float: right;
|
|
|
|
&.ui-tabs-panel-inactive { display: block; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&.ui-tabs-panel-css-is-active {
|
|
|
|
.scss, .sass {
|
|
|
|
&.ui-tabs-panel.ui-tabs-panel-previously-active { display: inline-block; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.css-tab {
|
|
|
|
position: absolute;
|
2019-03-29 03:12:50 +01:00
|
|
|
left: calc(var(--split-location) - 1%);
|
2019-03-29 02:53:26 +01:00
|
|
|
@include -active-tab;
|
|
|
|
|
|
|
|
&,
|
|
|
|
&.ui-tabs-active { margin-left: 0; }
|
|
|
|
|
|
|
|
::before {content: none}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: sl-px-to-rem(1500px)) {
|
|
|
|
body.documentation { @include -split-css-tabs }
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: sl-px-to-rem(1000px)) {
|
|
|
|
body.guide { @include -split-css-tabs }
|
|
|
|
}
|