2017-09-01 18:59:50 -04:00
|
|
|
// Desktop
|
2013-09-05 15:37:07 -04: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-28 22:49:01 -04:00
|
|
|
:root {
|
|
|
|
--d-max-width: 1110px;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
// Base Elements
|
|
|
|
body.widget-dragging {
|
|
|
|
cursor: ns-resize;
|
2014-08-05 23:31:28 -04:00
|
|
|
}
|
|
|
|
|
2022-12-01 14:50:44 -05:00
|
|
|
body.dragging {
|
|
|
|
cursor: ns-resize;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
// Common classes
|
|
|
|
.boxed {
|
|
|
|
height: 100%;
|
2016-05-17 13:03:08 -04:00
|
|
|
}
|
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
.form-vertical {
|
|
|
|
.control-group {
|
2019-02-01 21:07:57 -05:00
|
|
|
margin-bottom: 1.25em;
|
|
|
|
}
|
|
|
|
.controls:not(.controls-dropdown) + .controls {
|
|
|
|
margin-top: 0.5em;
|
2017-04-26 16:18:16 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
/***********************/
|
2013-10-19 18:18:25 -04:00
|
|
|
/* bootstrap carryover */
|
2017-09-01 18:59:50 -04:00
|
|
|
/***********************/
|
|
|
|
code,
|
|
|
|
pre {
|
2018-06-08 05:49:31 -04:00
|
|
|
font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono",
|
|
|
|
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
2013-10-19 18:18:25 -04:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
// this removes the unwanted top margin on a paragraph under a heading
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
+ p {
|
2018-06-08 05:49:31 -04:00
|
|
|
margin-top: 0;
|
2014-02-23 20:47:44 -05:00
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
2014-02-23 20:47:44 -05:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
form {
|
|
|
|
margin: 0 0 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
label,
|
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
textarea {
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-0);
|
2017-09-01 18:59:50 -04:00
|
|
|
font-weight: normal;
|
2022-10-12 10:05:42 -04:00
|
|
|
line-height: var(--line-height-medium);
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 9px;
|
2022-10-12 09:31:59 -04:00
|
|
|
font-size: var(--font-0);
|
2022-10-12 10:05:42 -04:00
|
|
|
line-height: var(--line-height-large);
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
2013-10-19 18:18:25 -04:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
input,
|
|
|
|
textarea {
|
2017-09-01 18:59:50 -04:00
|
|
|
width: 210px;
|
|
|
|
}
|
2013-10-19 18:18:25 -04:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
select,
|
|
|
|
input[type="file"] {
|
2022-10-12 10:05:42 -04:00
|
|
|
line-height: var(--line-height-large);
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
width: 220px;
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--secondary);
|
2019-10-23 11:10:10 -04:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
&[multiple],
|
|
|
|
&[size] {
|
|
|
|
height: auto;
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
2013-10-19 18:18:25 -04:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
input,
|
|
|
|
textarea {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
&[type="radio"],
|
|
|
|
&[type="checkbox"] {
|
|
|
|
&[disabled],
|
|
|
|
&[readonly] {
|
|
|
|
background-color: transparent;
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
2014-03-03 01:16:30 -05:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
.input {
|
2018-11-26 16:49:57 -05:00
|
|
|
&-xxlarge,
|
|
|
|
&-xxlarge + .control-instructions {
|
2013-10-19 18:18:25 -04:00
|
|
|
width: 530px;
|
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.controls-dropdown {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
2018-04-12 22:10:42 -04:00
|
|
|
.control-instructions {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2018-04-12 22:10:42 -04:00
|
|
|
font-size: 0.875rem;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
.control-group {
|
|
|
|
margin-bottom: 9px;
|
|
|
|
}
|
2013-10-19 18:18:25 -04:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
.form-horizontal {
|
2021-09-20 09:52:03 -04:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
textarea {
|
2013-10-19 18:18:25 -04:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
|
|
|
|
.control-group {
|
|
|
|
@include clearfix;
|
|
|
|
margin-bottom: 18px;
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
|
|
|
|
.control-indent {
|
|
|
|
margin-left: 20px;
|
|
|
|
margin-bottom: 10px;
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
|
|
|
|
.control-label {
|
2018-03-23 01:42:17 -04:00
|
|
|
margin: 6.5px;
|
2017-09-01 18:59:50 -04:00
|
|
|
float: left;
|
|
|
|
width: 140px;
|
|
|
|
text-align: right;
|
|
|
|
font-weight: bold;
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
|
|
|
|
.controls {
|
|
|
|
margin-left: 160px;
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.bootbox.modal {
|
|
|
|
.modal-footer {
|
|
|
|
a.btn-primary {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--secondary);
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
|
|
|
}
|
2017-09-01 18:59:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* bootstrap columns */
|
|
|
|
|
|
|
|
.offset {
|
|
|
|
&2 {
|
|
|
|
margin-left: 116px;
|
|
|
|
}
|
2013-10-19 18:18:25 -04:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
&1 {
|
|
|
|
margin-left: 64px;
|
|
|
|
}
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
2014-05-23 02:40:55 -04:00
|
|
|
|
2017-09-01 18:59:50 -04:00
|
|
|
// Media Queries
|
2018-06-08 05:49:31 -04:00
|
|
|
@media all and (max-width: 570px) {
|
2017-09-01 18:59:50 -04:00
|
|
|
body {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wrap,
|
|
|
|
.full-width {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
2013-10-19 18:18:25 -04:00
|
|
|
}
|
2022-05-05 02:35:08 -04:00
|
|
|
|
2022-06-28 22:49:01 -04: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-26 23:16:34 -04:00
|
|
|
|
2022-06-28 22:49:01 -04:00
|
|
|
#main-outlet-wrapper {
|
|
|
|
grid-template-columns: var(--d-sidebar-width) minmax(0, 1fr);
|
2022-09-29 00:28:01 -04:00
|
|
|
gap: 0 2em;
|
2022-06-28 22:49:01 -04:00
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-09-19 11:05:41 -04: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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|