Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33101655
settings_modal.scss
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
settings_modal.scss
View Options
.
settings-modal
{
overflow
:
hidden
;
h2
{
font-size
:
1.3
rem
;
font-weight
:
500
;
margin-top
:
1
em
;
margin-bottom
:
1
em
;
margin-right
:
1
em
;
}
h3
{
font-size
:
1.2
rem
;
font-weight
:
500
;
margin-top
:
1
em
;
margin-bottom
:
0.5
em
;
margin-right
:
1
em
;
border-bottom
:
1
px
solid
var
(
--border
);
padding-bottom
:
0.25
em
;
box-sizing
:
border-box
;
padding-left
:
0.5
em
;
}
h4
{
font-size
:
1.1
rem
;
margin-top
:
1
em
;
margin-right
:
1
em
;
margin-bottom
:
0.5
em
;
margin-left
:
1
em
;
}
h5
{
font-size
:
1
rem
;
margin-left
:
1
em
;
margin-bottom
:
0.25
em
;
margin-top
:
0.75
em
;
}
p
{
line-height
:
1.5
;
}
.
suboptions
{
margin-left
:
1
em
;
}
.
sidenote
{
margin-left
:
5
em
;
padding
:
0.25
em
1
em
;
margin-top
:
0.25
em
;
}
.
setting-description
{
margin-top
:
0.2
em
;
margin-bottom
:
0
;
font-size
:
80
%
;
}
.
setting-item
{
display
:
grid
;
grid-template-areas
:
"label control"
"label desc"
". draft"
;
grid-template-columns
:
4
fr
5
fr
;
column-gap
:
0.5
em
;
align-items
:
baseline
;
padding
:
0.5
em
0
;
.setting-label
{
grid-area
:
label
;
text-align
:
right
;
}
.
ModifiedIndicator
,
.
ProfileSettingIndicator
{
grid-area
:
indicator
;
}
.
setting-control
{
grid-area
:
control
;
&.textarea
{
align-self
:
baseline
;
overflow
:
auto
;
}
&
.
checkbox
{
display
:
grid
;
grid-template-columns
:
subgrid
;
.label
{
grid-area
:
label
;
text-align
:
right
;
}
.
checkbox-indicator
{
grid-area
:
control
;
}
.
-mobile
&
{
.label
{
text-align
:
left
;
}
}
}
}
.
setting-control
.
setting-label
{
grid-column
:
1
/
3
;
text-align
:
left
;
}
.
setting-description
{
grid-area
:
desc
;
}
.
DraftButtons
{
grid-area
:
draft
;
}
}
.
vertical-tab-switcher
{
height
:
100
%
;
}
.
setting-list
,
.
option-list
{
list-style-type
:
none
;
padding-left
:
0
;
margin
:
0
;
.
btn
:
not
(
.
dropdown
-button
)
{
padding
:
0
2
em
;
}
.
btn-group
{
.button-default
{
flex
:
0
1
auto
;
}
}
&
.
two-column
{
display
:
grid
;
grid-template-columns
:
1
fr
1
fr
;
margin-left
:
2
em
;
border-bottom
:
1
px
solid
var
(
--border
);
padding-bottom
:
0.5
em
;
margin-bottom
:
1
em
;
.setting-item
{
grid-template-columns
:
3
fr
1
fr
;
}
>
li
{
margin
:
0
;
break-inside
:
avoid
;
}
}
}
.
settings-modal-panel
{
overflow
:
hidden
;
transition
:
transform
;
transition-timing-function
:
ease-in-out
;
transition-duration
:
300
ms
;
width
:
70
em
;
max-width
:
90
vw
;
height
:
90
vh
;
@media
all
and
(width
<=
800px)
{
max-width
:
100
vw
;
height
:
100
%
;
}
>
.
panel-body
{
height
:
100
%
;
overflow-y
:
hidden
;
.btn
{
min-height
:
2
em
;
}
}
}
.
settings-footer
{
display
:
flex
;
flex-wrap
:
wrap
;
line-height
:
2
;
>*
{
margin-right
:
0.5
em
;
}
.
extra-content
{
display
:
flex
;
flex-grow
:
1
;
}
}
&
.
-mobile
{
.tabs
{
.menu-item
{
font-size
:
1.2
em
;
padding-top
:
0.75
em
;
padding-bottom
:
0.75
em
;
}
}
/* stylelint-disable no-descending-specificity */
.
setting-item
{
grid-template-columns
:
1
fr
min-content
;
column-gap
:
0.5
em
;
padding
:
1
em
;
align-items
:
center
;
.setting-label
{
text-align
:
left
;
}
.
checkbox
{
.label
{
text-align
:
left
;
margin-left
:
0
;
}
}
}
ul
{
padding
:
0
;
li
:
not
(
:
first
-child
)
{
.
setting-item
{
border-top
:
1
px
solid
var
(
--border
);
}
}
}
.
setting-list
:
not
(
.
suboptions
),
.
option-list
{
&.two-column
{
grid-template-columns
:
1
fr
;
}
}
}
&
.
peek
{
.settings-modal-panel
{
/* Explanation:
* Modal is positioned vertically centered.
* 100vh - 100% = Distance between modal's top+bottom boundaries and screen
* (100vh - 100%) / 2 = Distance between bottom (or top) boundary and screen
* + 100% - we move modal completely off-screen, it's top boundary touches
* bottom of the screen
* - 50px - leaving tiny amount of space so that titlebar + tiny amount of modal is visible
*/
transform
:
translateY
(
calc
(
((
100
vh
-
100
%
)
/
2
+
100
%
)
-
50
px
));
@media
all
and
(width
<=
800px)
{
/* For mobile, the modal takes 100% of the available screen.
This ensures the minimized modal is always 50px above the browser bottom
bar regardless of whether or not it is visible.
*/
transform
:
translateY
(
calc
(
100
%
-
50
px
));
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 20, 12:43 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
973576
Default Alt Text
settings_modal.scss (4 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment