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
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// Base Elements
|
|
|
|
body.widget-dragging {
|
|
|
|
cursor: ns-resize;
|
2014-08-06 11:31:28 +08:00
|
|
|
}
|
|
|
|
|
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 {
|
2018-06-08 17:49:31 +08:00
|
|
|
font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono",
|
|
|
|
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", 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 {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2017-09-02 06:59:50 +08:00
|
|
|
font-weight: normal;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-medium;
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 4px;
|
|
|
|
margin-bottom: 9px;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
|
|
|
line-height: $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"] {
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $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 {
|
|
|
|
.hide {
|
|
|
|
display: none;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
input,
|
|
|
|
textarea,
|
|
|
|
select,
|
|
|
|
.input-prepend,
|
|
|
|
.input-append {
|
|
|
|
display: inline-block;
|
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
|
|
|
}
|