2017-09-02 06:59:50 +08:00
|
|
|
// Desktop
|
2013-09-06 03:37:07 +08:00
|
|
|
// global styles that apply to the Discourse application specifically
|
|
|
|
// BEWARE: changing these styles implies they take effect anywhere they are seen
|
|
|
|
// throughout the Discourse application
|
|
|
|
|
2022-06-29 10:49:01 +08:00
|
|
|
:root {
|
|
|
|
--d-max-width: 1110px;
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// Base Elements
|
|
|
|
body.widget-dragging {
|
|
|
|
cursor: ns-resize;
|
2014-08-06 11:31:28 +08:00
|
|
|
}
|
|
|
|
|
2022-12-02 03:50:44 +08:00
|
|
|
body.dragging {
|
|
|
|
cursor: ns-resize;
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// Common classes
|
|
|
|
.boxed {
|
|
|
|
height: 100%;
|
2016-05-18 01:03:08 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.form-vertical {
|
|
|
|
.control-group {
|
2019-02-02 10:07:57 +08:00
|
|
|
margin-bottom: 1.25em;
|
|
|
|
}
|
|
|
|
.controls:not(.controls-dropdown) + .controls {
|
|
|
|
margin-top: 0.5em;
|
2017-04-27 04:18:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
/***********************/
|
2013-10-20 06:18:25 +08:00
|
|
|
/* bootstrap carryover */
|
2017-09-02 06:59:50 +08:00
|
|
|
/***********************/
|
|
|
|
code,
|
|
|
|
pre {
|
2023-12-07 22:51:14 +08:00
|
|
|
font-family: var(--d-font-family--monospace);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// this removes the unwanted top margin on a paragraph under a heading
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
+ p {
|
2018-06-08 17:49:31 +08:00
|
|
|
margin-top: 0;
|
2014-02-24 09:47:44 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
2014-02-24 09:47:44 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
form {
|
|
|
|
margin: 0 0 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
label,
|
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
textarea {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-0);
|
2017-09-02 06:59:50 +08:00
|
|
|
font-weight: normal;
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-medium);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 9px;
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-0);
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-large);
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
input,
|
|
|
|
textarea {
|
2017-09-02 06:59:50 +08:00
|
|
|
width: 210px;
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
select,
|
|
|
|
input[type="file"] {
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-large);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
width: 220px;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--secondary);
|
2019-10-23 23:10:10 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
&[multiple],
|
|
|
|
&[size] {
|
|
|
|
height: auto;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
input,
|
|
|
|
textarea {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
&[type="radio"],
|
|
|
|
&[type="checkbox"] {
|
|
|
|
&[disabled],
|
|
|
|
&[readonly] {
|
|
|
|
background-color: transparent;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
2014-03-03 14:16:30 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.input {
|
2018-11-27 05:49:57 +08:00
|
|
|
&-xxlarge,
|
|
|
|
&-xxlarge + .control-instructions {
|
2013-10-20 06:18:25 +08:00
|
|
|
width: 530px;
|
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.controls-dropdown {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
2018-04-13 10:10:42 +08:00
|
|
|
.control-instructions {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-04-13 10:10:42 +08:00
|
|
|
font-size: 0.875rem;
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.control-group {
|
|
|
|
margin-bottom: 9px;
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.form-horizontal {
|
2021-09-20 21:52:03 +08:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
textarea {
|
2013-10-20 06:18:25 +08:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
.control-group {
|
|
|
|
@include clearfix;
|
|
|
|
margin-bottom: 18px;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
.control-indent {
|
|
|
|
margin-left: 20px;
|
|
|
|
margin-bottom: 10px;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
.control-label {
|
2018-03-23 13:42:17 +08:00
|
|
|
margin: 6.5px;
|
2017-09-02 06:59:50 +08:00
|
|
|
float: left;
|
|
|
|
width: 140px;
|
|
|
|
text-align: right;
|
|
|
|
font-weight: bold;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
.controls {
|
|
|
|
margin-left: 160px;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.bootbox.modal {
|
|
|
|
.modal-footer {
|
|
|
|
a.btn-primary {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* bootstrap columns */
|
|
|
|
|
|
|
|
.offset {
|
|
|
|
&2 {
|
|
|
|
margin-left: 116px;
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
&1 {
|
|
|
|
margin-left: 64px;
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2014-05-23 14:40:55 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// Media Queries
|
2018-06-08 17:49:31 +08:00
|
|
|
@media all and (max-width: 570px) {
|
2017-09-02 06:59:50 +08:00
|
|
|
body {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wrap,
|
|
|
|
.full-width {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2022-05-05 14:35:08 +08:00
|
|
|
|
2022-06-29 10:49:01 +08:00
|
|
|
body.has-sidebar-page {
|
|
|
|
.wrap {
|
|
|
|
// increase page max-width to accommodate sidebar width
|
|
|
|
max-width: calc(var(--d-sidebar-width) + var(--d-max-width));
|
|
|
|
}
|
2022-07-27 11:16:34 +08:00
|
|
|
|
2022-06-29 10:49:01 +08:00
|
|
|
#main-outlet-wrapper {
|
|
|
|
grid-template-columns: var(--d-sidebar-width) minmax(0, 1fr);
|
2022-09-29 12:28:01 +08:00
|
|
|
gap: 0 2em;
|
2023-02-14 06:51:42 +08:00
|
|
|
@include breakpoint(large) {
|
|
|
|
gap: 0 1em;
|
|
|
|
}
|
2022-06-29 10:49:01 +08:00
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-09-19 23:05:41 +08:00
|
|
|
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
body.sidebar-animate {
|
|
|
|
#main-outlet-wrapper {
|
|
|
|
// grid-template-columns transition supported in Firefox, Chrome support coming summer 2022
|
|
|
|
transition-property: grid-template-columns, max-width;
|
|
|
|
transition-timing-function: var(--d-sidebar-animation-ease);
|
|
|
|
transition-duration: var(--d-sidebar-animation-time);
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-header-wrap .wrap {
|
|
|
|
transition: max-width var(--d-sidebar-animation-time)
|
|
|
|
var(--d-sidebar-animation-ease);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|