mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
UX: Fix mobile styling for admin color schemes (#14314)
This commit is contained in:
parent
954f8f8e7e
commit
a03d8a147f
@ -17,7 +17,7 @@
|
||||
label="admin.customize.copy"
|
||||
}}
|
||||
{{d-button
|
||||
class="btn-default"
|
||||
class="btn-default copy-to-clipboard"
|
||||
action=(action "copyToClipboard" model)
|
||||
icon="far-clipboard"
|
||||
label="admin.customize.copy_to_clipboard"
|
||||
@ -38,8 +38,6 @@
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="admin-controls">
|
||||
{{#unless model.theme_id}}
|
||||
<div class="pull-right">
|
||||
|
@ -46,6 +46,9 @@
|
||||
input {
|
||||
margin-bottom: 0;
|
||||
font-size: $font-down-2;
|
||||
.ios-device & {
|
||||
font-size: var(--font-down-2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -84,7 +87,7 @@
|
||||
font-weight: bold;
|
||||
margin-bottom: 0.25em;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
align-items: center;
|
||||
|
||||
input {
|
||||
margin: 0;
|
||||
@ -519,7 +522,8 @@
|
||||
.controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
button,
|
||||
margin-bottom: 1em;
|
||||
button:not(:last-child),
|
||||
a {
|
||||
margin-right: 10px;
|
||||
}
|
||||
@ -539,6 +543,9 @@
|
||||
}
|
||||
td.hex {
|
||||
width: 160px;
|
||||
.color-picker {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
td.actions {
|
||||
width: 200px;
|
||||
|
@ -1,13 +1,15 @@
|
||||
.admin-customize {
|
||||
body .admin-customize {
|
||||
.show-current-style {
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.themes-list {
|
||||
.themes-list,
|
||||
.color-schemes {
|
||||
width: 100%;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.form-horizontal.theme.settings .setting-label,
|
||||
.admin-container .select-kit {
|
||||
width: 100%;
|
||||
@ -16,5 +18,37 @@
|
||||
.admin-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.content-list.color-schemes ul {
|
||||
max-height: 250px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.color-scheme {
|
||||
h1,
|
||||
h1 input {
|
||||
width: 100%;
|
||||
}
|
||||
.copy-to-clipboard {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.controls,
|
||||
.admin-controls {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sp-replacer {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
td {
|
||||
vertical-align: top;
|
||||
}
|
||||
td.actions {
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user