Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33095696
settings_modal.scss
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
settings_modal.scss
View Options
.
settings-modal
{
overflow
:
hidden
;
h4
{
margin-bottom
:
0.5
em
;
}
.
setting-list
,
.
option-list
{
list-style-type
:
none
;
padding-left
:
2
em
;
.
btn
:
not
(
.
dropdown
-button
)
{
padding
:
0
2
em
;
}
li
{
margin-bottom
:
0.5
em
;
}
.
suboptions
{
margin-top
:
0.3
em
;
}
&
.
two-column
{
column-count
:
2
;
>
li
{
break-inside
:
avoid
;
}
}
}
.
setting-description
{
margin-top
:
0.2
em
;
margin-bottom
:
2
em
;
font-size
:
70
%
;
}
.
settings-modal-panel
{
overflow
:
hidden
;
transition
:
transform
;
transition-timing-function
:
ease-in-out
;
transition-duration
:
300
ms
;
width
:
1000
px
;
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
{
.setting-list,
.option-list
{
padding-left
:
0.25
em
;
>
li
{
margin
:
1
em
0
;
line-height
:
1.5
em
;
vertical-align
:
middle
;
}
&
.
two-column
{
column-count
:
1
;
}
}
}
&
.
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, 9:28 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
972856
Default Alt Text
settings_modal.scss (2 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment