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
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.topic-statuses {
|
2013-10-30 05:15:56 +08:00
|
|
|
float: left;
|
2013-09-06 03:37:07 +08:00
|
|
|
padding: 0;
|
2017-09-02 06:59:50 +08:00
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.topic-status {
|
2013-10-30 05:15:56 +08:00
|
|
|
padding: 0 2px 0 0;
|
2013-09-06 03:37:07 +08:00
|
|
|
margin: 0;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-small;
|
2017-09-02 06:59:50 +08:00
|
|
|
|
2018-11-08 13:12:18 +08:00
|
|
|
i {
|
2018-06-08 17:49:31 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2014-09-08 23:11:56 +08:00
|
|
|
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-envelope {
|
2014-09-08 23:11:56 +08:00
|
|
|
color: $danger;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.form-vertical {
|
|
|
|
.control-group {
|
|
|
|
margin-bottom: 24px;
|
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;
|
2017-09-02 06:59:50 +08:00
|
|
|
color: $primary;
|
|
|
|
}
|
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;
|
|
|
|
&[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 {
|
|
|
|
&-xxlarge {
|
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 {
|
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
|
|
font-size: 0.875rem;
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.control-group {
|
|
|
|
margin-bottom: 9px;
|
|
|
|
|
|
|
|
&.warning,
|
|
|
|
&.error {
|
|
|
|
> label {
|
|
|
|
color: $danger;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox,
|
|
|
|
.radio,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
color: $danger;
|
|
|
|
border-color: $danger;
|
|
|
|
|
|
|
|
&:focus {
|
2014-05-06 13:50:51 +08:00
|
|
|
border-color: scale-color($danger, $lightness: -30%);
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("focus-danger");
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.warning {
|
|
|
|
.input-prepend,
|
|
|
|
.input-append {
|
|
|
|
.add-on {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $danger;
|
|
|
|
background-color: $danger;
|
|
|
|
border-color: $danger;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.error {
|
|
|
|
.input-prepend,
|
|
|
|
.input-append {
|
|
|
|
.add-on {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $danger;
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: $danger-medium;
|
2014-05-06 13:50:51 +08:00
|
|
|
border-color: scale-color($danger, $lightness: -20%);
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.success {
|
|
|
|
> label {
|
|
|
|
color: $success;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox,
|
|
|
|
.radio,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
color: $success;
|
|
|
|
border-color: $success;
|
|
|
|
|
|
|
|
&:focus {
|
2014-05-06 13:50:51 +08:00
|
|
|
border-color: $success;
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("focus");
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.input-prepend,
|
|
|
|
.input-append {
|
|
|
|
.add-on {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $success;
|
2018-06-08 17:49:31 +08:00
|
|
|
background-color: $success-low;
|
2014-05-06 13:50:51 +08:00
|
|
|
border-color: $success;
|
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
|
|
|
.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 {
|
|
|
|
color: $secondary;
|
2013-10-20 06:18:25 +08:00
|
|
|
}
|
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* bootstrap columns */
|
|
|
|
.row {
|
|
|
|
@include clearfix;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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
|
|
|
}
|