2020-07-25 06:17:25 +08:00
|
|
|
// Store the current responsive screen mode in a CSS variable, to make it
|
|
|
|
// available to the JS code.
|
|
|
|
:root {
|
|
|
|
--flarum-screen: none;
|
|
|
|
|
2020-08-16 08:21:06 +08:00
|
|
|
@media @phone { --flarum-screen: phone; }
|
|
|
|
@media @tablet { --flarum-screen: tablet; }
|
|
|
|
@media @desktop { --flarum-screen: desktop; }
|
|
|
|
@media @desktop-hd { --flarum-screen: desktop-hd; }
|
2020-07-25 06:17:25 +08:00
|
|
|
}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
* {
|
|
|
|
&,
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
.box-sizing(border-box);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background: @body-bg;
|
|
|
|
color: @text-color;
|
2018-10-18 05:55:41 +08:00
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, Oxygen, Roboto, Helvetica, Arial, sans-serif;
|
2015-07-17 13:17:49 +08:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 1.5;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
line-height: 1.3;
|
|
|
|
}
|
|
|
|
|
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
cursor: pointer;
|
|
|
|
color: @link-color;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
margin-top: 15px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
border: 0;
|
|
|
|
border-top: 2px solid @control-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
padding-left: 15px;
|
|
|
|
padding-right: 15px;
|
|
|
|
.clearfix();
|
|
|
|
|
|
|
|
@media @tablet {
|
|
|
|
width: @screen-tablet;
|
|
|
|
}
|
|
|
|
@media @desktop {
|
|
|
|
width: @screen-desktop;
|
|
|
|
}
|
|
|
|
@media @desktop-hd {
|
|
|
|
width: @screen-desktop-hd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.containerNarrow {
|
|
|
|
max-width: 600px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
mark {
|
|
|
|
background: #FFE300;
|
|
|
|
padding: 1px;
|
|
|
|
border-radius: @border-radius;
|
|
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
fieldset {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
border: 0;
|
2017-07-22 10:17:50 +08:00
|
|
|
|
|
|
|
> ul > li {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
legend {
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: 10px;
|
2015-07-31 18:46:47 +08:00
|
|
|
color: @text-color;
|
2015-07-17 13:17:49 +08:00
|
|
|
}
|
|
|
|
input[type="search"] {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
|
|
|
|
2015-07-29 19:28:22 +08:00
|
|
|
.checkbox {
|
|
|
|
display: block;
|
|
|
|
padding-left: 20px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
input[type=checkbox],
|
|
|
|
input[type=radio] {
|
|
|
|
margin-left: -20px;
|
|
|
|
margin-top: 2px;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
2015-07-17 13:17:49 +08:00
|
|
|
|
|
|
|
.fade {
|
|
|
|
opacity: 0;
|
|
|
|
.transition(opacity .15s linear);
|
|
|
|
&.in {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.darkenBackground {
|
|
|
|
background: @shadow-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote p:last-child,
|
|
|
|
blockquote ul:last-child,
|
|
|
|
blockquote ol:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media @tablet-up {
|
|
|
|
.affix {
|
|
|
|
position: fixed;
|
|
|
|
}
|
|
|
|
}
|
2015-09-18 15:16:46 +08:00
|
|
|
|
|
|
|
.RequestErrorModal {
|
|
|
|
pre {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-11-02 14:17:36 +08:00
|
|
|
|
|
|
|
#flarum-loading {
|
|
|
|
text-align: center;
|
|
|
|
padding: 50px 0;
|
|
|
|
font-size: 18px;
|
|
|
|
color: @muted-more-color;
|
|
|
|
}
|