discourse/app/assets/stylesheets/common/admin/customize.scss

734 lines
12 KiB
SCSS
Raw Normal View History

// Customise area
2018-07-02 23:14:53 -04:00
// email templates
.content-editor {
min-height: 500px;
float: left;
width: 54.054%;
margin-left: 1.8018%;
p.description {
color: $primary;
}
.controls {
margin-top: 10px;
}
textarea.plain {
width: 98%;
height: 200px;
}
.d-editor-input {
width: 98%;
height: 200px;
}
.ace-wrapper {
position: relative;
height: 600px;
width: 100%;
}
.ace_editor {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
}
.email-template {
input {
width: 100%;
}
label {
font-weight: bold;
}
}
.create-theme-modal {
div.input {
margin-bottom: 12px;
.label {
width: 20%;
display: inline-block;
}
}
2018-08-30 15:23:15 -04:00
.error {
color: $danger;
}
}
.admin-customize.admin-customize-themes {
.customize-themes-header {
border-bottom: 1px solid $primary-low;
padding-bottom: 8px;
display: flex;
.title {
color: $primary-medium;
flex-grow: 1;
h3 {
margin-bottom: 0;
}
}
2018-09-20 22:05:08 -04:00
2018-09-17 11:58:16 -04:00
.create-actions {
margin-left: auto;
2018-08-30 15:23:15 -04:00
}
}
.admin-container {
padding: 0;
}
.error-message {
margin-top: 5px;
margin-bottom: 5px;
.fa {
color: $danger;
}
}
.raw-error {
background-color: $primary-very-low;
padding: 5px;
}
}
.admin-customize {
h1 {
margin-bottom: 10px;
input {
margin-bottom: 0;
2018-01-12 17:27:38 -05:00
font-size: $font-down-2;
2017-12-21 17:13:06 -05:00
}
.btn-small {
2018-01-12 17:27:38 -05:00
font-size: $font-down-2;
}
}
.field-error {
margin-top: 10px;
margin-bottom: 10px;
2017-06-11 22:20:14 -04:00
background-color: $quaternary-low;
padding: 5px;
}
.edit-main-nav {
.nav-pills:after,
.nav-pills:before {
display: inline;
content: "";
}
.show-overidden {
float: right;
}
margin-bottom: 10px;
}
.admin-container {
padding-left: 10px;
padding-right: 10px;
}
.admin-footer {
margin-top: 20px;
}
.color-schemes li {
.fa {
margin-right: 6px;
2017-10-10 16:07:46 -04:00
color: dark-light-choose($primary-medium, $secondary-medium);
}
}
.show-current-style {
2018-09-09 14:48:08 -04:00
display: inline-block;
vertical-align: top;
2018-08-30 15:23:15 -04:00
.url {
margin-bottom: 10px;
}
2018-08-30 15:23:15 -04:00
.title {
font-size: $font-up-4;
font-weight: bold;
margin-bottom: 10px;
}
2018-08-30 15:23:15 -04:00
.about-url,
license-url {
display: block;
margin-bottom: 10px;
}
.mini-title {
font-size: $font-up-1;
font-weight: bold;
margin-bottom: 7px;
}
.control-unit {
margin-bottom: 25px;
margin-top: 15px;
}
.control {
margin-bottom: 10px;
}
.description {
margin-bottom: 12px;
}
}
.add-component-button {
vertical-align: middle;
}
2018-09-09 14:48:08 -04:00
.themes-intro {
display: inline-block;
width: 51%;
vertical-align: top;
margin-left: 20%;
margin-top: 60px;
img {
display: inline-block;
margin-right: 10px;
width: 10%;
vertical-align: top;
margin-top: 5px;
}
.content-wrapper {
display: inline-block;
vertical-align: top;
width: 65%;
h1 {
display: inline-block;
}
}
.external-link {
display: inline-block;
display: block;
margin-bottom: 5px;
}
}
.themes-list {
2018-08-30 15:23:15 -04:00
border-right: 1px solid $primary-low;
border-bottom: 1px solid $primary-low;
2018-09-09 14:48:08 -04:00
display: inline-block;
overflow: hidden;
}
.themes-list-header {
2018-08-30 15:23:15 -04:00
width: 100%;
border-bottom: 1px solid $primary-low;
.tab {
display: inline-block;
padding: 10px;
width: 50%;
box-sizing: border-box;
text-align: center;
border-left: 1px solid $primary-low;
&.active {
font-weight: bold;
color: $tertiary;
2018-08-30 15:23:15 -04:00
}
&:not(.active) {
cursor: pointer;
&:hover {
2018-09-09 14:48:08 -04:00
background-color: $primary-very-low;
2018-08-30 15:23:15 -04:00
}
}
}
}
.themes-list-container {
overflow-y: scroll;
box-sizing: content-box;
2018-09-09 14:48:08 -04:00
max-height: 700px;
width: 100%; /* overridden in javascript to hide scrollbar */
2018-08-30 15:23:15 -04:00
.themes-list-item:last-child {
border-bottom: none;
}
.themes-list-item {
color: $primary;
border-bottom: 1px solid $primary-low;
display: flex;
2018-08-30 15:23:15 -04:00
border-left: 1px solid $primary-low;
&.inactive-indicator {
border-right: 0;
border-left: 0;
font-weight: bold;
color: $primary-medium;
span.empty {
padding-left: 5px;
padding-top: 15px;
}
}
&:not(.inactive-indicator):not(.selected):hover {
2018-09-09 14:48:08 -04:00
background-color: $primary-very-low;
2018-08-30 15:23:15 -04:00
.component {
border-color: $primary-low-mid;
}
}
&.selected {
color: $secondary;
background-color: $tertiary;
2018-08-30 15:23:15 -04:00
.fa {
color: inherit;
}
}
&:not(.selected) {
.broken-indicator {
color: $danger;
}
.fa {
opacity: 0.7;
}
.default-indicator {
color: $success;
}
}
2018-08-30 15:23:15 -04:00
.light-grey-icon {
color: $primary-medium;
}
2018-08-30 15:23:15 -04:00
.info {
overflow: hidden;
font-weight: bold;
font-size: $font-up-1;
.name {
float: left;
}
.icons {
float: right;
}
}
.components-list {
margin-top: 5px;
display: flex;
flex-wrap: wrap;
font-size: $font-down-1;
align-items: baseline;
.others-count:hover {
text-decoration: underline;
}
2018-08-30 15:23:15 -04:00
.component {
display: flex;
padding: 3px 5px 3px 5px;
border-radius: 2px;
border: 1px solid $primary-low;
margin-right: 5px;
margin-bottom: 5px;
}
}
.inner-wrapper {
2018-08-30 15:23:15 -04:00
padding: 10px;
cursor: pointer;
2018-08-30 15:23:15 -04:00
}
span.empty {
padding: 3px 10px 3px 10px;
}
.inner-wrapper,
span.empty {
color: inherit;
width: 100%;
}
}
}
.theme.settings {
.theme-setting {
padding-bottom: 0;
2018-08-30 15:23:15 -04:00
margin-top: 18px;
min-height: 35px;
}
.setting-label {
width: 25%;
h3 {
margin-top: 0;
margin-bottom: 0.5rem;
}
}
}
.current-style.maximized {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: z("fullscreen");
background-color: white;
width: 100%;
padding: 0;
margin: 0;
.wrapper {
position: absolute;
top: 20px;
bottom: 10px;
left: 20px;
right: 20px;
}
}
2018-08-03 17:43:07 -04:00
.nav-pills.fields {
margin-left: 10px;
}
.content-list,
.current-style {
float: left;
}
.content-list ul {
margin-bottom: 10px;
}
.current-style {
width: 100%;
.admin-container {
margin: 0;
}
.nav.target {
margin-top: 15px;
li {
position: relative;
a {
display: flex;
align-items: center;
justify-content: space-between;
}
}
.fa {
margin-left: 8px;
}
.d-icon-mobile {
position: relative;
top: -3px;
2018-01-12 17:27:38 -05:00
font-size: $font-up-3;
max-height: 20px;
}
}
.toggle-maximize {
position: absolute;
right: -5px;
}
.ace-wrapper {
position: relative;
height: 600px;
width: 100%;
}
&.maximized {
.admin-container {
position: absolute;
bottom: 50px;
top: 80px;
width: 100%;
}
.admin-footer {
position: absolute;
bottom: 10px;
}
.ace-wrapper {
2017-05-10 15:42:51 -04:00
height: calc(100% - 200px);
}
}
.ace_editor {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.status-actions {
float: right;
margin-top: 7px;
span {
margin-right: 10px;
}
}
.buttons {
float: left;
width: 200px;
.saving {
padding: 5px 0 0 0;
margin-left: 10px;
width: 80px;
color: $primary;
}
}
}
.color-scheme {
.controls {
span,
button,
a {
margin-right: 10px;
}
}
}
.colors {
thead th {
border: none;
}
td.hex {
width: 160px;
}
td.actions {
width: 200px;
}
.hex-input {
width: 80px;
margin-bottom: 0;
}
.hex {
text-align: center;
}
.description {
color: dark-light-choose($primary-medium, $secondary-medium);
}
.invalid .hex input {
background-color: white;
color: black;
border-color: $danger;
}
}
.status-message {
display: block;
font-size: $font-down-1;
margin-top: 8px;
}
.removable-list {
list-style: none;
margin-left: 0;
li {
display: table-row;
2017-05-10 14:43:05 -04:00
.col:first-child {
padding-right: 10px;
padding-bottom: 10px;
2017-05-10 14:43:05 -04:00
min-width: 80px;
}
2017-05-10 14:43:05 -04:00
.col {
display: table-cell;
}
}
}
}
2017-05-10 14:43:05 -04:00
.add-upload-modal {
label {
margin-top: 20px;
}
}
2018-02-14 12:26:05 -05:00
2018-02-15 15:07:26 -05:00
#custom_emoji {
2018-02-14 12:26:05 -05:00
width: 27%;
}
.modal-body .inputs .branch {
margin-top: 10px;
}
.modal-body .inputs .check-private {
margin-top: 10px;
label {
padding-left: 0;
}
label input {
width: auto;
margin: 3px 0;
}
.public-key {
margin-top: 10px;
textarea {
cursor: auto;
height: 150px;
}
}
}
2018-07-02 23:14:53 -04:00
// Permalinks
.permalinks {
.url,
.topic,
.category,
.external_url,
.post {
text-overflow: ellipsis;
white-space: nowrap;
}
}
.permalink-form {
display: flex;
align-items: center;
.select-kit {
width: 150px;
}
input {
margin: 0 5px;
}
}
2018-07-02 23:14:53 -04:00
.permalink-title {
margin-bottom: 10px;
}
// embedding
.embeddable-hosts {
margin-bottom: 2em;
table.grid {
margin-bottom: 1em;
tr td {
word-wrap: break-word;
max-width: 25vw;
align-self: start;
}
td.controls {
min-width: 6em;
}
.select-kit.combo-box.category-chooser {
width: calc(100% - 10px);
}
}
@media screen and (max-width: 880px) {
table.grid {
thead {
display: none;
}
div.label {
display: block;
font-size: $font-down-1;
color: $primary-medium;
}
td.controls,
td.editing-controls {
align-self: end;
}
tr {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
}
}
@media screen and (max-width: 580px) {
table.grid {
tr td.editing-input {
grid-column-start: 1;
grid-column-end: 4;
max-width: 100%;
input {
width: calc(100% - 20px);
}
}
td.editing-controls {
margin-top: 1em;
max-width: 100%;
}
}
}
@media screen and (max-width: 350px) {
table.grid tr {
grid-template-columns: repeat(2, 1fr);
td.controls {
text-align: left;
}
}
}
}
.embedding-secondary {
h3 {
margin: 1em 0;
}
margin-bottom: 2em;
.embed-setting {
input[type="text"] {
width: 50%;
}
margin: 0.75em 0;
}
p.description {
color: dark-light-choose($primary-medium, $secondary-medium);
margin-bottom: 1em;
max-width: 700px;
}
}
.embedding td input {
margin-bottom: 0;
}
.user-fields {
h2 {
margin-bottom: 10px;
}
.user-field {
padding: 10px;
margin-bottom: 10px;
border-bottom: 1px solid $primary-low;
.form-display {
width: 25%;
display: inline-block;
float: left;
}
.form-element,
.form-element-desc {
float: left;
min-height: 30px;
padding: 0.25em 0;
&.input-area {
width: 75%;
.value-list,
.select-kit,
2018-07-02 23:14:53 -04:00
input[type="text"] {
width: 50%;
}
.value-list {
.select-kit {
width: 100%;
}
}
2018-07-02 23:14:53 -04:00
}
&.label-area {
width: 25%;
label {
margin: 0.5em 1em 0 0;
text-align: right;
font-weight: bold;
}
}
}
.controls {
float: right;
text-align: right;
}
.clearfix {
clear: both;
}
}
}