Debian Codegraph @

vendor/static/bulma/sass/components/tabs.sass

raw
1 @import "../utilities/mixins"
2
3 $tabs-border-bottom-color: $border !default
4 $tabs-border-bottom-style: solid !default
5 $tabs-border-bottom-width: 1px !default
6 $tabs-link-color: $text !default
7 $tabs-link-hover-border-bottom-color: $text-strong !default
8 $tabs-link-hover-color: $text-strong !default
9 $tabs-link-active-border-bottom-color: $link !default
10 $tabs-link-active-color: $link !default
11 $tabs-link-padding: 0.5em 1em !default
12
13 $tabs-boxed-link-radius: $radius !default
14 $tabs-boxed-link-hover-background-color: $background !default
15 $tabs-boxed-link-hover-border-bottom-color: $border !default
16
17 $tabs-boxed-link-active-background-color: $scheme-main !default
18 $tabs-boxed-link-active-border-color: $border !default
19 $tabs-boxed-link-active-border-bottom-color: transparent !default
20
21 $tabs-toggle-link-border-color: $border !default
22 $tabs-toggle-link-border-style: solid !default
23 $tabs-toggle-link-border-width: 1px !default
24 $tabs-toggle-link-hover-background-color: $background !default
25 $tabs-toggle-link-hover-border-color: $border-hover !default
26 $tabs-toggle-link-radius: $radius !default
27 $tabs-toggle-link-active-background-color: $link !default
28 $tabs-toggle-link-active-border-color: $link !default
29 $tabs-toggle-link-active-color: $link-invert !default
30
31 .tabs
32 @extend %block
33 +overflow-touch
34 @extend %unselectable
35 align-items: stretch
36 display: flex
37 font-size: $size-normal
38 justify-content: space-between
39 overflow: hidden
40 overflow-x: auto
41 white-space: nowrap
42 a
43 align-items: center
44 border-bottom-color: $tabs-border-bottom-color
45 border-bottom-style: $tabs-border-bottom-style
46 border-bottom-width: $tabs-border-bottom-width
47 color: $tabs-link-color
48 display: flex
49 justify-content: center
50 margin-bottom: -#{$tabs-border-bottom-width}
51 padding: $tabs-link-padding
52 vertical-align: top
53 &:hover
54 border-bottom-color: $tabs-link-hover-border-bottom-color
55 color: $tabs-link-hover-color
56 li
57 display: block
58 &.is-active
59 a
60 border-bottom-color: $tabs-link-active-border-bottom-color
61 color: $tabs-link-active-color
62 ul
63 align-items: center
64 border-bottom-color: $tabs-border-bottom-color
65 border-bottom-style: $tabs-border-bottom-style
66 border-bottom-width: $tabs-border-bottom-width
67 display: flex
68 flex-grow: 1
69 flex-shrink: 0
70 justify-content: flex-start
71 &.is-left
72 padding-right: 0.75em
73 &.is-center
74 flex: none
75 justify-content: center
76 padding-left: 0.75em
77 padding-right: 0.75em
78 &.is-right
79 justify-content: flex-end
80 padding-left: 0.75em
81 .icon
82 &:first-child
83 +ltr-property("margin", 0.5em)
84 &:last-child
85 +ltr-property("margin", 0.5em, false)
86 // Alignment
87 &.is-centered
88 ul
89 justify-content: center
90 &.is-right
91 ul
92 justify-content: flex-end
93 // Styles
94 &.is-boxed
95 a
96 border: 1px solid transparent
97 +ltr
98 border-radius: $tabs-boxed-link-radius $tabs-boxed-link-radius 0 0
99 +rtl
100 border-radius: 0 0 $tabs-boxed-link-radius $tabs-boxed-link-radius
101 &:hover
102 background-color: $tabs-boxed-link-hover-background-color
103 border-bottom-color: $tabs-boxed-link-hover-border-bottom-color
104 li
105 &.is-active
106 a
107 background-color: $tabs-boxed-link-active-background-color
108 border-color: $tabs-boxed-link-active-border-color
109 border-bottom-color: $tabs-boxed-link-active-border-bottom-color !important
110 &.is-fullwidth
111 li
112 flex-grow: 1
113 flex-shrink: 0
114 &.is-toggle
115 a
116 border-color: $tabs-toggle-link-border-color
117 border-style: $tabs-toggle-link-border-style
118 border-width: $tabs-toggle-link-border-width
119 margin-bottom: 0
120 position: relative
121 &:hover
122 background-color: $tabs-toggle-link-hover-background-color
123 border-color: $tabs-toggle-link-hover-border-color
124 z-index: 2
125 li
126 & + li
127 +ltr-property("margin", -#{$tabs-toggle-link-border-width}, false)
128 &:first-child a
129 +ltr
130 border-top-left-radius: $tabs-toggle-link-radius
131 border-bottom-left-radius: $tabs-toggle-link-radius
132 +rtl
133 border-top-right-radius: $tabs-toggle-link-radius
134 border-bottom-right-radius: $tabs-toggle-link-radius
135 &:last-child a
136 +ltr
137 border-top-right-radius: $tabs-toggle-link-radius
138 border-bottom-right-radius: $tabs-toggle-link-radius
139 +rtl
140 border-top-left-radius: $tabs-toggle-link-radius
141 border-bottom-left-radius: $tabs-toggle-link-radius
142 &.is-active
143 a
144 background-color: $tabs-toggle-link-active-background-color
145 border-color: $tabs-toggle-link-active-border-color
146 color: $tabs-toggle-link-active-color
147 z-index: 1
148 ul
149 border-bottom: none
150 &.is-toggle-rounded
151 li
152 &:first-child a
153 +ltr
154 border-bottom-left-radius: $radius-rounded
155 border-top-left-radius: $radius-rounded
156 padding-left: 1.25em
157 +rtl
158 border-bottom-right-radius: $radius-rounded
159 border-top-right-radius: $radius-rounded
160 padding-right: 1.25em
161 &:last-child a
162 +ltr
163 border-bottom-right-radius: $radius-rounded
164 border-top-right-radius: $radius-rounded
165 padding-right: 1.25em
166 +rtl
167 border-bottom-left-radius: $radius-rounded
168 border-top-left-radius: $radius-rounded
169 padding-left: 1.25em
170 // Sizes
171 &.is-small
172 font-size: $size-small
173 &.is-medium
174 font-size: $size-medium
175 &.is-large
176 font-size: $size-large