2017-09-02 06:59:50 +08:00
|
|
|
// Common
|
|
|
|
// 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
|
|
|
|
|
|
|
|
// Animation Keyframes
|
|
|
|
@keyframes ping {
|
|
|
|
from {
|
|
|
|
transform: scale(0.25);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
transform: scale(2);
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2015-04-03 06:10:15 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
@keyframes rotate-forever {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
2015-07-20 15:47:53 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
@keyframes background-fade-highlight {
|
|
|
|
0% {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--tertiary-low);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background-color: transparent;
|
2014-10-29 07:46:05 +08:00
|
|
|
}
|
2014-05-20 11:55:46 +08:00
|
|
|
}
|
|
|
|
|
2019-04-27 00:29:48 +08:00
|
|
|
// placeholder
|
|
|
|
@keyframes placeHolderShimmer {
|
|
|
|
0% {
|
|
|
|
background-position: -1000px 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background-position: 1100px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.placeholder-animation {
|
|
|
|
animation-duration: 4s;
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-name: placeHolderShimmer;
|
|
|
|
animation-timing-function: linear;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-very-low);
|
2019-04-27 00:29:48 +08:00
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
2020-08-04 10:57:10 +08:00
|
|
|
var(--primary-very-low) 10%,
|
|
|
|
var(--primary-low) 18%,
|
|
|
|
var(--primary-very-low) 33%
|
2019-04-27 00:29:48 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// Base Elements
|
|
|
|
html {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background-attachment: fixed;
|
|
|
|
background-size: cover;
|
|
|
|
min-height: 100%;
|
|
|
|
|
|
|
|
@include clearfix;
|
2014-05-20 11:55:46 +08:00
|
|
|
}
|
|
|
|
|
2018-01-19 15:12:30 +08:00
|
|
|
// setting a static limit on big and small prevents nesting abuse
|
2014-05-26 23:33:47 +08:00
|
|
|
big {
|
2018-01-22 11:22:30 +08:00
|
|
|
font-size: $font-up-5;
|
2014-05-26 23:33:47 +08:00
|
|
|
}
|
2014-11-03 08:23:00 +08:00
|
|
|
small {
|
2018-01-22 11:22:30 +08:00
|
|
|
font-size: $font-down-2;
|
2014-11-03 08:23:00 +08:00
|
|
|
}
|
|
|
|
|
2014-05-20 11:55:46 +08:00
|
|
|
blockquote {
|
2015-08-20 01:27:17 +08:00
|
|
|
@include post-aside;
|
2015-05-19 17:40:19 +08:00
|
|
|
clear: both;
|
2014-05-20 11:55:46 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2020-10-06 01:40:41 +08:00
|
|
|
font-family: $heading-font-family;
|
2017-09-02 06:59:50 +08:00
|
|
|
margin-top: 0;
|
2018-06-08 17:49:31 +08:00
|
|
|
margin-bottom: 0.5rem;
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
2019-10-03 02:47:29 +08:00
|
|
|
a.cancel {
|
|
|
|
margin-left: 1.25em;
|
|
|
|
line-height: normal;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-10-03 02:47:29 +08:00
|
|
|
transition: color 250ms;
|
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
2019-10-03 02:47:29 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
ul.breadcrumb {
|
|
|
|
margin: 0 10px 0 10px;
|
|
|
|
}
|
|
|
|
|
2014-05-26 14:17:25 +08:00
|
|
|
a.no-href {
|
2014-04-21 03:17:11 +08:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
img.avatar {
|
|
|
|
border-radius: 50%;
|
2014-07-02 03:24:04 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// don't wrap relative dates; we want Jul 26, '15, not: Jul
|
|
|
|
// 26,
|
|
|
|
// '15
|
|
|
|
span.relative-date {
|
2018-06-08 17:49:31 +08:00
|
|
|
white-space: nowrap;
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
2014-07-02 01:39:54 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
label {
|
2018-09-19 20:37:04 +08:00
|
|
|
display: flex;
|
2017-09-02 06:59:50 +08:00
|
|
|
margin-bottom: 5px;
|
2018-09-19 23:48:48 +08:00
|
|
|
align-items: flex-start;
|
2019-03-29 03:10:31 +08:00
|
|
|
> .d-icon {
|
|
|
|
align-self: center;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
2021-01-12 02:35:41 +08:00
|
|
|
a {
|
|
|
|
// flex removes whitespace characters between text nodes and elements
|
|
|
|
// so we need to add it back
|
|
|
|
margin: 0 0.25em;
|
|
|
|
}
|
2017-08-19 00:36:21 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
input {
|
|
|
|
&[type="radio"],
|
|
|
|
&[type="checkbox"] {
|
2018-10-03 00:04:37 +08:00
|
|
|
margin-top: 0.17em;
|
|
|
|
margin-right: 0.43em;
|
2018-10-04 10:26:05 +08:00
|
|
|
margin-left: 0.1em;
|
2018-09-19 20:37:04 +08:00
|
|
|
line-height: $line-height-small;
|
2017-09-02 06:59:50 +08:00
|
|
|
cursor: pointer;
|
2018-10-04 10:26:05 +08:00
|
|
|
flex-shrink: 0; // Adding for safety, Safari will shrink checkboxes
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
&[type="submit"],
|
|
|
|
&[type="reset"],
|
|
|
|
&[type="button"],
|
|
|
|
&[type="radio"],
|
|
|
|
&[type="checkbox"] {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.invalid {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--danger-low);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.radio &[type="radio"],
|
|
|
|
.checkbox &[type="checkbox"] {
|
|
|
|
float: left;
|
|
|
|
margin-left: -18px;
|
|
|
|
}
|
2017-11-10 04:03:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-06-06 02:26:59 +08:00
|
|
|
caret-color: currentColor;
|
2017-11-10 04:03:19 +08:00
|
|
|
|
|
|
|
&[class*="span"] {
|
|
|
|
float: none;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[disabled],
|
|
|
|
&[readonly] {
|
|
|
|
cursor: not-allowed;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-low);
|
|
|
|
border-color: var(--primary-low);
|
2017-11-10 04:03:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus:required:invalid {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
|
|
|
border-color: var(--danger);
|
2017-11-10 04:03:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus:required:invalid:focus {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-color: var(--danger);
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("focus-danger");
|
2017-11-10 04:03:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
&[type="text"],
|
|
|
|
&[type="password"],
|
|
|
|
&[type="datetime"],
|
|
|
|
&[type="datetime-local"],
|
|
|
|
&[type="date"],
|
|
|
|
&[type="month"],
|
|
|
|
&[type="time"],
|
|
|
|
&[type="week"],
|
|
|
|
&[type="number"],
|
|
|
|
&[type="email"],
|
|
|
|
&[type="url"],
|
|
|
|
&[type="search"],
|
|
|
|
&[type="tel"],
|
|
|
|
&[type="color"] {
|
2017-11-28 04:23:18 +08:00
|
|
|
@include appearance-none;
|
2021-09-09 23:01:56 +08:00
|
|
|
@include form-item-sizing;
|
2017-11-10 04:03:19 +08:00
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 9px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
|
|
|
background-color: var(--secondary);
|
|
|
|
border: 1px solid var(--primary-medium);
|
2017-11-28 04:23:18 +08:00
|
|
|
border-radius: 0;
|
2017-11-10 04:03:19 +08:00
|
|
|
&:focus {
|
2021-02-04 00:45:54 +08:00
|
|
|
@include default-focus;
|
2017-11-10 04:03:19 +08:00
|
|
|
}
|
|
|
|
}
|
2021-09-09 23:01:56 +08:00
|
|
|
|
|
|
|
&[type="time"] {
|
|
|
|
max-width: 140px;
|
|
|
|
}
|
2017-11-10 04:03:19 +08:00
|
|
|
}
|
|
|
|
|
2021-09-09 23:01:56 +08:00
|
|
|
// Fixes Safari height inconsistency
|
|
|
|
::-webkit-datetime-edit {
|
|
|
|
display: inline;
|
2020-12-16 13:40:30 +08:00
|
|
|
}
|
|
|
|
|
2021-09-09 23:01:56 +08:00
|
|
|
// Fixes Webkit inconsistencies (Safari/Chrome)
|
|
|
|
::-webkit-datetime-edit-fields-wrapper,
|
|
|
|
::-webkit-datetime-edit-text,
|
|
|
|
::-webkit-datetime-edit-month-field,
|
|
|
|
::-webkit-datetime-edit-day-field,
|
|
|
|
::-webkit-datetime-edit-year-field {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2018-10-05 03:47:14 +08:00
|
|
|
|
2021-09-09 23:01:56 +08:00
|
|
|
::placeholder {
|
|
|
|
text-overflow: ellipsis;
|
2018-10-05 03:47:14 +08:00
|
|
|
}
|
|
|
|
|
2017-11-10 04:03:19 +08:00
|
|
|
textarea {
|
2021-09-09 23:01:56 +08:00
|
|
|
padding: $vpad $hpad;
|
|
|
|
box-sizing: border-box;
|
2017-11-10 04:03:19 +08:00
|
|
|
height: auto;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--secondary);
|
|
|
|
border: 1px solid var(--primary-medium);
|
2017-11-10 04:03:19 +08:00
|
|
|
&:focus {
|
2021-02-04 00:45:54 +08:00
|
|
|
@include default-focus;
|
2017-11-10 04:03:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 1px solid var(--primary-low);
|
2017-08-19 00:36:21 +08:00
|
|
|
}
|
2015-03-28 02:42:27 +08:00
|
|
|
|
2019-02-27 10:40:17 +08:00
|
|
|
table {
|
|
|
|
th {
|
|
|
|
font-weight: normal;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2019-02-27 10:40:17 +08:00
|
|
|
text-align: left;
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// Common Classes
|
2019-02-27 10:40:17 +08:00
|
|
|
|
|
|
|
.sortable {
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
.discourse-no-touch & {
|
2021-04-02 02:19:59 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-low);
|
2019-02-27 10:40:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.d-icon {
|
|
|
|
margin-left: 0.25em;
|
|
|
|
}
|
|
|
|
@include unselectable;
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.radio,
|
|
|
|
.checkbox {
|
|
|
|
min-height: 18px;
|
|
|
|
padding-left: 18px;
|
|
|
|
|
|
|
|
.controls > &:first-child {
|
|
|
|
padding-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.inline {
|
|
|
|
display: inline-block;
|
|
|
|
padding-top: 5px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
vertical-align: middle;
|
2014-04-21 03:17:11 +08:00
|
|
|
}
|
2017-08-19 00:36:21 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.radio.inline .radio.inline,
|
|
|
|
.checkbox.inline .checkbox.inline {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
@extend .clearfix;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wrap {
|
|
|
|
@extend .clearfix;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
2021-05-26 15:33:08 +08:00
|
|
|
padding: 0 10px;
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
.contents {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.boxed {
|
|
|
|
&.white {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--secondary);
|
2014-04-21 03:17:11 +08:00
|
|
|
}
|
2017-08-19 00:36:21 +08:00
|
|
|
}
|
2014-04-24 08:48:04 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.full-width {
|
|
|
|
margin-left: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.top-space {
|
2017-08-19 00:36:21 +08:00
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2014-12-23 19:09:17 +08:00
|
|
|
|
2017-08-19 00:36:21 +08:00
|
|
|
.message {
|
2018-07-13 04:38:51 +08:00
|
|
|
border-radius: 8px;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--secondary);
|
2017-08-19 00:36:21 +08:00
|
|
|
padding: 14px;
|
2014-12-23 19:09:17 +08:00
|
|
|
|
2017-08-19 00:36:21 +08:00
|
|
|
h2 {
|
|
|
|
margin-bottom: 20px;
|
2014-04-21 03:17:11 +08:00
|
|
|
}
|
2017-08-19 00:36:21 +08:00
|
|
|
}
|
2015-09-17 04:04:48 +08:00
|
|
|
|
2017-08-19 00:36:21 +08:00
|
|
|
.clear-transitions {
|
2018-06-08 17:49:31 +08:00
|
|
|
transition: none !important;
|
2017-08-19 00:36:21 +08:00
|
|
|
}
|
2014-05-03 05:46:03 +08:00
|
|
|
|
2017-08-19 00:36:21 +08:00
|
|
|
.tip {
|
|
|
|
display: inline-block;
|
|
|
|
&.good {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--success);
|
2015-09-16 23:54:09 +08:00
|
|
|
}
|
2017-08-19 00:36:21 +08:00
|
|
|
&.bad {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
2015-09-17 04:04:48 +08:00
|
|
|
}
|
2017-08-19 00:36:21 +08:00
|
|
|
}
|
2014-04-21 03:17:11 +08:00
|
|
|
|
2017-08-19 00:36:21 +08:00
|
|
|
.avatar-wrapper {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--secondary);
|
2017-08-19 00:36:21 +08:00
|
|
|
display: inline-block;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
2017-05-19 05:08:45 +08:00
|
|
|
|
2017-08-19 00:36:21 +08:00
|
|
|
.profiler-results.profiler-left {
|
2021-12-05 07:33:07 +08:00
|
|
|
top: var(--header-offset) !important;
|
2017-08-19 00:36:21 +08:00
|
|
|
}
|
|
|
|
|
2017-05-25 03:52:18 +08:00
|
|
|
.flex-center-align {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-04-01 07:09:20 +08:00
|
|
|
.unread-high-priority-notifications {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
|
|
|
background: var(--success);
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
&.badge-notification[href] {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
2014-07-26 01:33:38 +08:00
|
|
|
}
|
2014-08-22 22:45:51 +08:00
|
|
|
|
2020-12-18 23:03:51 +08:00
|
|
|
.d-header .header-dropdown-toggle .do-not-disturb-background {
|
|
|
|
position: absolute;
|
|
|
|
left: 2px;
|
|
|
|
bottom: -1px;
|
|
|
|
z-index: 1002;
|
|
|
|
}
|
|
|
|
|
|
|
|
.do-not-disturb-background {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 1.25em;
|
|
|
|
background-color: var(--tertiary-med-or-tertiary);
|
|
|
|
border-radius: 50%;
|
|
|
|
height: 1.25em;
|
|
|
|
|
|
|
|
.d-icon.d-icon-moon {
|
2020-12-31 22:39:06 +08:00
|
|
|
display: block;
|
2020-12-18 23:03:51 +08:00
|
|
|
color: var(--tertiary-or-white) !important;
|
|
|
|
line-height: unset;
|
|
|
|
font-size: 0.875em;
|
2020-12-31 22:39:06 +08:00
|
|
|
margin: 0 !important;
|
2020-12-18 23:03:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-31 22:39:06 +08:00
|
|
|
.user-menu .quick-access-panel li.do-not-disturb {
|
2020-12-18 23:03:51 +08:00
|
|
|
display: flex;
|
|
|
|
flex: 0 0 100%;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
2020-12-31 22:39:06 +08:00
|
|
|
background: var(--secondary);
|
2020-12-18 23:03:51 +08:00
|
|
|
|
|
|
|
.do-not-disturb-inner-container {
|
|
|
|
display: flex;
|
2020-12-31 22:39:06 +08:00
|
|
|
width: 100%;
|
2020-12-18 23:03:51 +08:00
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.do-not-disturb-label {
|
|
|
|
display: flex;
|
2020-12-31 22:39:06 +08:00
|
|
|
align-items: center;
|
2020-12-18 23:03:51 +08:00
|
|
|
}
|
|
|
|
|
2020-12-31 22:39:06 +08:00
|
|
|
.relative-date {
|
2020-12-18 23:03:51 +08:00
|
|
|
text-align: left;
|
|
|
|
font-size: $font-down-3;
|
2020-12-31 22:39:06 +08:00
|
|
|
padding-top: 3px;
|
|
|
|
margin-left: 0.75em;
|
2020-12-18 23:03:51 +08:00
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
|
2020-12-31 22:39:06 +08:00
|
|
|
.d-icon-toggle-off,
|
|
|
|
.d-icon-toggle-on {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon-toggle-on {
|
|
|
|
color: var(--tertiary);
|
2020-12-18 23:03:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.do-not-disturb-modal {
|
|
|
|
.do-not-disturb-choice {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 2em 1fr auto;
|
|
|
|
grid-template-rows: auto auto;
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0.5em 0;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--tertiary-low);
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-16 18:20:51 +08:00
|
|
|
.ring-backdrop-spotlight {
|
|
|
|
position: absolute;
|
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
top: -18px;
|
|
|
|
right: -18px;
|
2018-06-08 17:49:31 +08:00
|
|
|
background-image: radial-gradient(
|
|
|
|
40px at 50% 50%,
|
2020-09-19 00:02:28 +08:00
|
|
|
rgba(255, 255, 255, 0.15) 95%,
|
|
|
|
rgba(var(--always-black-rgb), 0.65) 100%
|
2018-06-08 17:49:31 +08:00
|
|
|
);
|
2016-11-16 18:20:51 +08:00
|
|
|
}
|
|
|
|
|
2016-11-15 10:56:34 +08:00
|
|
|
.ring-backdrop {
|
2016-11-16 18:20:51 +08:00
|
|
|
position: absolute;
|
2016-11-15 10:56:34 +08:00
|
|
|
width: 80px;
|
|
|
|
height: 80px;
|
|
|
|
top: -18px !important;
|
|
|
|
right: -18px !important;
|
2020-09-19 00:02:28 +08:00
|
|
|
box-shadow: 0 0 0 9999px rgba(var(--always-black-rgb), 0.65);
|
2018-06-08 17:49:31 +08:00
|
|
|
z-index: z("modal", "overlay");
|
2016-11-15 10:56:34 +08:00
|
|
|
}
|
|
|
|
|
2016-11-16 12:24:33 +08:00
|
|
|
.ring-first-notification {
|
|
|
|
position: absolute;
|
|
|
|
text-align: left;
|
2016-11-16 18:20:51 +08:00
|
|
|
right: 70px;
|
2016-11-16 12:44:22 +08:00
|
|
|
top: 60px;
|
2016-11-16 18:20:51 +08:00
|
|
|
width: 230px;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-medium;
|
2020-08-18 16:13:40 +08:00
|
|
|
|
2021-05-26 07:30:16 +08:00
|
|
|
.first-notification,
|
|
|
|
.read-later {
|
2021-06-15 02:48:32 +08:00
|
|
|
display: block;
|
2020-08-22 16:08:37 +08:00
|
|
|
margin-bottom: 36px;
|
|
|
|
}
|
|
|
|
|
2021-05-26 07:30:16 +08:00
|
|
|
.skip-new-user-tips,
|
|
|
|
.read-later-link {
|
2020-08-18 16:13:40 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2020-09-19 00:02:28 +08:00
|
|
|
|
|
|
|
&,
|
2021-05-26 07:30:16 +08:00
|
|
|
.skip-new-user-tips,
|
|
|
|
.read-later-link {
|
2020-09-19 00:02:28 +08:00
|
|
|
color: #eee;
|
|
|
|
}
|
2016-11-16 12:24:33 +08:00
|
|
|
}
|
|
|
|
|
2016-11-08 16:12:40 +08:00
|
|
|
.ring {
|
2016-11-09 09:56:36 +08:00
|
|
|
$gradient-start: transparent;
|
|
|
|
$gradient-end: #090;
|
|
|
|
background: -webkit-radial-gradient($gradient-start, $gradient-end);
|
|
|
|
background: -o-radial-gradient($gradient-start, $gradient-end);
|
|
|
|
background: -moz-radial-gradient($gradient-start, $gradient-end);
|
|
|
|
background: radial-gradient($gradient-start, $gradient-end);
|
|
|
|
top: -11px !important;
|
2016-11-09 14:35:29 +08:00
|
|
|
right: 23.5px !important;
|
2016-11-08 19:57:32 +08:00
|
|
|
border-radius: 100%;
|
2016-11-08 16:12:40 +08:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
-moz-animation-iteration-count: infinite;
|
|
|
|
-webkit-animation-iteration-count: infinite;
|
|
|
|
-webkit-transform-origin: center;
|
|
|
|
-moz-animation-duration: 3s;
|
|
|
|
-webkit-animation-duration: 3s;
|
|
|
|
-moz-animation-name: ping;
|
|
|
|
-webkit-animation-name: ping;
|
|
|
|
}
|
|
|
|
|
2014-08-22 22:45:51 +08:00
|
|
|
.fade {
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.15s linear;
|
2014-11-06 09:13:51 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
&.in {
|
|
|
|
opacity: 1;
|
2014-11-06 09:13:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-11-14 03:15:36 +08:00
|
|
|
.inline-spinner {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2014-11-11 22:22:14 +08:00
|
|
|
.spinner {
|
2014-12-05 06:05:47 +08:00
|
|
|
margin: 20px auto 20px auto;
|
2014-11-11 22:22:14 +08:00
|
|
|
position: relative;
|
|
|
|
-webkit-animation: rotate-forever 1s infinite linear;
|
|
|
|
animation: rotate-forever 1s infinite linear;
|
|
|
|
height: 30px;
|
|
|
|
width: 30px;
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 4px solid var(--primary-low-mid);
|
2014-11-11 22:22:14 +08:00
|
|
|
border-right-color: transparent;
|
|
|
|
border-radius: 50%;
|
2014-11-14 03:15:36 +08:00
|
|
|
|
|
|
|
&.small {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
margin: 0;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2014-11-06 09:13:51 +08:00
|
|
|
}
|
2016-02-07 06:22:46 +08:00
|
|
|
|
2016-06-07 02:18:15 +08:00
|
|
|
.content-list {
|
|
|
|
h3 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-1;
|
2016-06-07 02:18:15 +08:00
|
|
|
padding-left: 5px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
li {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2016-06-07 02:18:15 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
&:first-of-type {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2016-06-07 02:18:15 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
padding: 10px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-low);
|
|
|
|
color: var(--primary);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
font-weight: bold;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
2016-06-07 02:18:15 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
.form-vertical {
|
|
|
|
input,
|
|
|
|
textarea,
|
2021-09-09 23:01:56 +08:00
|
|
|
select {
|
2017-09-02 06:59:50 +08:00
|
|
|
display: inline-block;
|
|
|
|
margin-bottom: 0;
|
2018-10-02 22:42:49 +08:00
|
|
|
flex: 0 0 auto;
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.control-group {
|
|
|
|
@include clearfix;
|
|
|
|
}
|
|
|
|
|
|
|
|
.control-label {
|
2020-10-06 01:40:41 +08:00
|
|
|
font-family: $heading-font-family;
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
font-weight: bold;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-2;
|
|
|
|
line-height: $line-height-large;
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.controls {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2016-02-07 06:22:46 +08:00
|
|
|
}
|
2016-12-06 06:20:52 +08:00
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
// Special elements
|
2020-10-20 05:26:38 +08:00
|
|
|
|
|
|
|
#main-outlet {
|
2021-05-26 17:12:32 +08:00
|
|
|
padding-top: 2.5em;
|
2020-10-20 05:26:38 +08:00
|
|
|
}
|
|
|
|
|
2017-09-02 06:59:50 +08:00
|
|
|
#main {
|
|
|
|
img.avatar {
|
|
|
|
&.header {
|
|
|
|
width: 45px;
|
|
|
|
height: 45px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.medium {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.small {
|
|
|
|
width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.tiny {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
2016-12-06 06:20:52 +08:00
|
|
|
}
|
2017-09-02 06:59:50 +08:00
|
|
|
|
|
|
|
.user-list {
|
|
|
|
.user {
|
|
|
|
padding-bottom: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#loading-message {
|
|
|
|
position: absolute;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-5;
|
2017-09-02 06:59:50 +08:00
|
|
|
text-align: center;
|
|
|
|
top: 120px;
|
|
|
|
left: 500px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#footer {
|
|
|
|
.container {
|
|
|
|
height: 50px;
|
|
|
|
.contents {
|
|
|
|
padding-top: 10px;
|
|
|
|
a[href] {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2017-09-02 06:59:50 +08:00
|
|
|
}
|
|
|
|
}
|
2016-12-06 06:20:52 +08:00
|
|
|
}
|
|
|
|
}
|
2018-03-26 17:33:03 +08:00
|
|
|
|
|
|
|
.inline {
|
|
|
|
display: inline;
|
|
|
|
}
|
2018-08-31 16:18:06 +08:00
|
|
|
|
2020-06-11 00:11:49 +08:00
|
|
|
.pref-email {
|
|
|
|
.row {
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
margin: 5px 0px;
|
|
|
|
padding-bottom: 5px;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.email-first {
|
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.email-second {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2020-06-11 00:11:49 +08:00
|
|
|
|
|
|
|
.primary {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--success);
|
2020-06-11 00:11:49 +08:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.unconfirmed {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.email-dropdown {
|
|
|
|
float: right;
|
|
|
|
|
|
|
|
.btn,
|
|
|
|
.btn:hover {
|
|
|
|
background: transparent;
|
|
|
|
|
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2020-06-11 00:11:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
width: 120px;
|
|
|
|
|
|
|
|
& .icon {
|
|
|
|
margin-top: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-31 16:18:06 +08:00
|
|
|
.pref-auth-tokens {
|
|
|
|
.row {
|
2018-10-09 22:21:41 +08:00
|
|
|
border-bottom: 1px solid #ddd;
|
2018-08-31 16:18:06 +08:00
|
|
|
margin: 5px 0px;
|
2018-10-09 22:21:41 +08:00
|
|
|
padding-bottom: 5px;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2018-08-31 16:18:06 +08:00
|
|
|
}
|
|
|
|
|
2018-10-09 22:21:41 +08:00
|
|
|
.auth-token-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-10-09 22:21:41 +08:00
|
|
|
font-size: 2.25em;
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
2018-08-31 16:18:06 +08:00
|
|
|
}
|
|
|
|
|
2018-10-09 22:21:41 +08:00
|
|
|
.auth-token-first {
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
|
|
|
.auth-token-device {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2018-08-31 16:18:06 +08:00
|
|
|
}
|
|
|
|
|
2018-10-09 22:21:41 +08:00
|
|
|
.auth-token-second {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-08-31 16:18:06 +08:00
|
|
|
|
2018-10-09 22:21:41 +08:00
|
|
|
.active {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--success);
|
2018-10-09 22:21:41 +08:00
|
|
|
font-weight: bold;
|
2018-08-31 16:18:06 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-09 22:21:41 +08:00
|
|
|
.auth-token-dropdown {
|
|
|
|
float: right;
|
|
|
|
|
|
|
|
.btn,
|
|
|
|
.btn:hover {
|
|
|
|
background: transparent;
|
2018-08-31 16:18:06 +08:00
|
|
|
|
2018-10-09 22:21:41 +08:00
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2018-10-09 22:21:41 +08:00
|
|
|
}
|
2018-08-31 16:18:06 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-07 08:22:04 +08:00
|
|
|
|
|
|
|
.topic-statuses {
|
2021-09-03 03:35:35 +08:00
|
|
|
// avoid adding margin/padding on this parent; sometimes it appears as an empty container
|
2018-12-07 08:22:04 +08:00
|
|
|
float: left;
|
|
|
|
.topic-status {
|
|
|
|
margin: 0;
|
2018-12-11 05:06:26 +08:00
|
|
|
display: inline-flex;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2021-09-03 03:35:35 +08:00
|
|
|
margin-right: 0.2em;
|
2018-12-07 08:22:04 +08:00
|
|
|
.d-icon {
|
2020-11-23 09:16:41 +08:00
|
|
|
height: 0.74em;
|
2018-12-07 08:22:04 +08:00
|
|
|
width: 0.75em;
|
2018-12-11 05:06:26 +08:00
|
|
|
}
|
2018-12-07 08:22:04 +08:00
|
|
|
}
|
|
|
|
|
2020-02-27 21:25:32 +08:00
|
|
|
.topic-status-warning .d-icon-envelope {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
2018-12-07 08:22:04 +08:00
|
|
|
}
|
|
|
|
}
|
2019-05-24 22:25:55 +08:00
|
|
|
|
|
|
|
.broken-theme-alert {
|
|
|
|
font-size: $base-font-size;
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 5px 0;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--danger-medium);
|
2019-05-24 22:25:55 +08:00
|
|
|
text-align: center;
|
|
|
|
z-index: z("max");
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2019-05-24 22:25:55 +08:00
|
|
|
}
|
2021-01-22 21:39:16 +08:00
|
|
|
|
|
|
|
.controls {
|
|
|
|
.grouped-control {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.grouped-control-label {
|
|
|
|
padding: 0.25em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grouped-control-field {
|
|
|
|
flex: 1 0 auto;
|
|
|
|
display: flex;
|
|
|
|
padding-bottom: 0.25em;
|
|
|
|
|
|
|
|
label {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-09-01 01:43:30 +08:00
|
|
|
|
|
|
|
a#skip-link {
|
|
|
|
padding: 0.25em 0.5em;
|
2021-09-09 09:28:55 +08:00
|
|
|
position: fixed;
|
|
|
|
top: -50px;
|
2021-09-01 01:43:30 +08:00
|
|
|
left: 1em;
|
|
|
|
color: var(--secondary);
|
|
|
|
background: var(--tertiary);
|
|
|
|
transition: top 0.3s ease-out;
|
|
|
|
z-index: z("header") + 1;
|
|
|
|
&:focus {
|
|
|
|
top: 0px;
|
|
|
|
transition: top 0.15s ease-in;
|
|
|
|
}
|
|
|
|
}
|