Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33103381
tab_switcher.scss
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
tab_switcher.scss
View Options
@
import
"../../variables"
;
/* stylelint-disable no-descending-specificity */
.
tab-switcher
{
display
:
flex
;
.tab-icon
{
margin
:
0.2
em
auto
;
display
:
block
;
}
&
.
top-tabs
{
flex-direction
:
column
;
>
.tabs
{
width
:
100
%
;
overflow-y
:
hidden
;
overflow-x
:
auto
;
padding-top
:
5
px
;
flex-direction
:
row
;
flex
:
0
0
auto
;
&::after,
&::before
{
content
:
""
;
flex
:
1
1
auto
;
border-bottom
:
1
px
solid
;
border-bottom-color
:
$
fallback--border
;
border-bottom-color
:
var
(
--border
,
$
fallback
--border
);
}
.
tab-wrapper
{
height
:
2
em
;
&:not(.active)::after
{
left
:
0
;
right
:
0
;
bottom
:
0
;
border-bottom
:
1
px
solid
;
border-bottom-color
:
$
fallback--border
;
border-bottom-color
:
var
(
--border
,
$
fallback
--border
);
}
}
.
tab
{
width
:
100
%
;
min-width
:
1
px
;
border-bottom-left-radius
:
0
;
border-bottom-right-radius
:
0
;
padding-bottom
:
99
px
;
margin-bottom
:
6
px
-
99
px
;
}
}
.
contents
.
scrollable-tabs
{
flex-basis
:
0
;
}
}
&
.
side-tabs
{
flex-direction
:
row
;
@media
all
and
(
max-width
:
800
px
)
{
overflow-x
:
auto
;
}
>
.
contents
{
flex
:
1
1
auto
;
}
>
.
tabs
{
flex
:
0
0
auto
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
flex-direction
:
column
;
&::after,
&::before
{
flex-shrink
:
0
;
flex-basis
:
0.5
em
;
content
:
""
;
border-right
:
1
px
solid
;
border-right-color
:
$
fallback--border
;
border-right-color
:
var
(
--border
,
$
fallback
--border
);
}
&
::
after
{
flex-grow
:
1
;
}
&
::
before
{
flex-grow
:
0
;
}
.
tab-wrapper
{
min-width
:
10
em
;
display
:
flex
;
flex-direction
:
column
;
@media
all
and
(
max-width
:
800
px
)
{
min-width
:
4
em
;
}
&
:
not
(
.
active
)
::
after
{
top
:
0
;
right
:
0
;
bottom
:
0
;
border-right
:
1
px
solid
;
border-right-color
:
$
fallback--border
;
border-right-color
:
var
(
--border
,
$
fallback
--border
);
}
&
::
before
{
flex
:
0
0
6
px
;
content
:
""
;
border-right
:
1
px
solid
;
border-right-color
:
$
fallback--border
;
border-right-color
:
var
(
--border
,
$
fallback
--border
);
}
&
:
last-child
.
tab
{
margin-bottom
:
0
;
}
}
.
tab
{
flex
:
1
;
box-sizing
:
content-box
;
min-width
:
10
em
;
min-width
:
1
px
;
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
padding-left
:
1
em
;
padding-right
:
calc
(
1
em
+
200
px
);
margin-right
:
-200
px
;
margin-left
:
1
em
;
@media
all
and
(
max-width
:
800
px
)
{
padding-left
:
0.25
em
;
padding-right
:
calc
(
0.25
em
+
200
px
);
margin-right
:
calc
(
0.25
em
-
200
px
);
margin-left
:
0.25
em
;
.text
{
display
:
none
;
}
}
}
}
}
.
contents
{
flex
:
1
0
auto
;
min-height
:
0
;
.hidden
{
display
:
none
;
}
.
full-height
:
not
(
.
hidden
)
{
height
:
100
%
;
display
:
flex
;
flex-direction
:
column
;
>
*:not(.mobile-label)
{
flex
:
1
;
}
}
&
.
scrollable-tabs
{
overflow-y
:
auto
;
}
}
.
tab
{
position
:
relative
;
white-space
:
nowrap
;
padding
:
6
px
1
em
;
&:not(.active)
{
z-index
:
4
;
&:hover
{
z-index
:
6
;
}
}
&
.
active
{
background
:
transparent
;
z-index
:
5
;
color
:
$
fallback--text
;
color
:
var
(
--tabActiveText
,
$
fallback
--text
);
}
img
{
max-height
:
26
px
;
vertical-align
:
top
;
margin-top
:
-5
px
;
}
}
.
tabs
{
display
:
flex
;
position
:
relative
;
box-sizing
:
border-box
;
&::after,
&::before
{
display
:
block
;
flex
:
1
1
auto
;
}
}
.
tab-wrapper
{
position
:
relative
;
display
:
flex
;
flex
:
0
0
auto
;
&:not(.active)
{
&::after
{
content
:
""
;
position
:
absolute
;
z-index
:
7
;
}
}
}
.
mobile-label
{
padding-left
:
0.3
em
;
padding-bottom
:
0.25
em
;
margin-top
:
0.5
em
;
margin-left
:
0.2
em
;
margin-bottom
:
0.25
em
;
border-bottom
:
1
px
solid
var
(
--border
,
$
fallback
--border
);
@media
all
and
(
min-width
:
800
px
)
{
display
:
none
;
}
}
}
/* stylelint-enable no-descending-specificity */
File Metadata
Details
Attached
Mime Type
text/x-asm
Expires
Tue, Jan 20, 1:44 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
973411
Default Alt Text
tab_switcher.scss (4 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment