forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_tabs.scss
More file actions
138 lines (117 loc) · 3.41 KB
/
Copy path_tabs.scss
File metadata and controls
138 lines (117 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
@styleguide Tab Navigation
## Regular Tabs
Our default tabs come complete with a panel attached to the tabs that displays the content inside each tab.
jQueryUI adds all the classes, once you initialize the tabs using the script and markup.
```html
<div id="styleguide-tabs-demo-regular">
<ul>
<li><a href="#tabs-1">Tab One</a></li>
<li><a href="#tabs-2">Tab Two</a></li>
<li><a href="#tabs-3">Tab Three</a></li>
</ul>
<div id="tabs-1">Tab 1 content</div>
<div id="tabs-2">Tab 2 content</div>
<div id="tabs-3">Tab 3 content</div>
</div>
```
$("#styleguide-tabs-demo-regular").tabs()
## Minimal Tabs
Don't want the bordered box around each tab panel?
Simply add the **.ui-tabs-minimal** class to the parent tab element.
```html
<div id="styleguide-tabs-demo-minimal" class="ui-tabs-minimal">
<ul>
<li><a href="#tabs-1">Tab One</a></li>
<li><a href="#tabs-2">Tab Two</a></li>
<li><a href="#tabs-3">Tab Three</a></li>
</ul>
<div id="tabs-1">Tab 1 content</div>
<div id="tabs-2">Tab 2 content</div>
<div id="tabs-3">Tab 3 content</div>
</div>
```
$("#styleguide-tabs-demo-minimal").tabs()
*/
// Custom Canvas branding for tabs -- overwriting the defaults in the jQuery UI tabs styles
.ui-tabs {
.ui-tabs-panel {
border-color: $ic-border-light;
padding: 14px;
}
.ui-tabs-nav {
border-bottom-color: $ic-border-light;
li {
background: transparent;
border-color: transparent;
box-shadow: none;
a {
@include ic-focus-base;
color: $ic-link-color;
font-weight: normal;
padding: 8px 14px;
text-shadow: none;
@if $use_high_contrast { text-decoration: underline; }
&:focus {
@if $use_high_contrast { @include ic-focus-variant($ic-link-color, -4px); }
@else {
text-decoration: underline;
outline: none;
}
}
// special handling for Calendar tabs with solid-color header backgrounds
#edit_event & { color: $ic-color-light; }
}
&.ui-state-hover,
&:hover {
background: $ic-color-light;
border-color: $ic-border-light;
a {
color: $ic-font-color-dark;
@if $use_high_contrast { text-decoration: none; }
// special handling for Calendar tabs with solid-color header backgrounds
#edit_event & { color: $ic-link-color; }
}
}
&.ui-state-focus,
&.ui-state-focus.ui-tabs-active {
outline: none;
border-color: $ic-border-light;
background: $ic-color-light;
a {
@if $use_high_contrast { @include ic-focus-variant($ic-link-color, -4px); }
@else {
text-decoration: underline;
outline: none;
}
}
}
&.ui-tabs-active,
&.ui-tabs-active.ui-state-hover,
&.ui-tabs-active:hover {
border-color: $ic-border-light;
background: $ic-color-light;
a {
@if $use_high_contrast { text-decoration: none; }
// special handling for Calendar tabs with solid-color header backgrounds
#edit_event & { color: $ic-font-color-dark; }
}
}
}
}
&.ui-tabs--mini {
.ui-tabs-nav {
li {
a { padding: 4px 8px; }
}
}
}
&.ui-tabs-minimal {
.ui-tabs-panel {
border-width: 0;
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
}
}
}