discourse/app/assets/stylesheets/common/base/discourse.scss

351 lines
6.3 KiB
SCSS
Raw Normal View History

img.avatar {
2015-04-04 14:07:49 +08:00
border-radius: 50%;
}
2014-05-20 11:55:46 +08:00
.container {
@extend .clearfix;
2015-07-20 15:47:53 +08:00
}
.wrap {
@extend .clearfix;
2014-05-20 11:55:46 +08:00
margin-right: auto;
margin-left: auto;
2015-07-20 16:01:55 +08:00
padding: 0 8px;
.contents {
position: relative;
}
2014-05-20 11:55:46 +08:00
}
.full-width {
margin-left: 12px;
}
big {
font-size: 28px;
}
small {
font-size: 9px;
}
//setting a static limit on big and small prevents nesting abuse
2014-05-20 11:55:46 +08:00
blockquote {
@include post-aside;
2015-05-19 17:40:19 +08:00
clear: both;
2014-05-20 11:55:46 +08:00
}
2014-05-26 14:17:25 +08:00
a.no-href {
cursor: pointer;
}
html {
height: 100%;
}
body {
background-attachment: fixed;
background-size: cover;
min-height: 100%;
2015-03-28 02:42:27 +08:00
@include clearfix;
button.ok {
background: $success;
color: $secondary;
@include hover {
background: lighten($success, 10%);
color: $secondary;
}
}
button.cancel {
background: $danger;
color: $secondary;
@include hover {
background: lighten($danger, 10%);
color: $secondary;
}
}
// the default for table cells in topic list
// is scale-color($primary, $lightness: 50%)
// numbers get dimmer as they get colder
.coldmap-high {
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%)) !important;
}
.coldmap-med {
color: dark-light-choose(scale-color($primary, $lightness: 60%), scale-color($secondary, $lightness: 40%)) !important;
}
.coldmap-low {
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%)) !important;
}
.heatmap-high {
color: #fe7a15 !important;
}
.heatmap-med {
color: #cf7721 !important;
}
.heatmap-low {
color: #9b764f !important;
}
2014-08-14 21:33:41 +08:00
#loading-message {
position: absolute;
font-size: 2.143em;
text-align: center;
top: 120px;
left: 500px;
color: $primary;
}
.top-space {
margin-top: 10px;
}
ul.breadcrumb {
margin: 0 10px 0 10px;
}
2014-12-23 19:09:17 +08:00
.message {
@include border-radius-all(8px);
background-color: $secondary;
padding: 14px;
2014-12-23 19:09:17 +08:00
h2 {
margin-bottom: 20px;
}
}
#footer {
.container {
height: 50px;
.contents {
padding-top: 10px;
a[href] {
color: $secondary;
}
}
}
}
2014-12-23 19:09:17 +08:00
.clear-transitions {
transition:none !important;
}
.tip {
display: inline-block;
&.good {
color: $success;
}
&.bad {
color: $danger;
}
}
input[type].invalid {
background-color: dark-light-choose(scale-color($danger, $lightness: 80%), scale-color($danger, $lightness: -60%));
}
.d-editor-input {
resize: none;
}
.avatar-wrapper {
background-color: $secondary;
display: inline-block;
border-radius: 50%;
}
.profiler-results.profiler-left {
top: 60px !important;
}
}
2014-07-26 01:33:38 +08:00
.unread-private-messages {
2014-07-26 11:06:14 +08:00
color: $secondary;
background: $success;
&.badge-notification[href] {color: $secondary;}
2014-07-26 01:33:38 +08:00
}
2014-08-22 22:45:51 +08:00
.ring-backdrop-spotlight {
position: absolute;
width: 80px;
height: 80px;
top: -18px;
right: -18px;
background-image: radial-gradient(40px at 50% 50% , transparent 95%, $primary 100%);
opacity: 0.85;
}
.ring-backdrop {
position: absolute;
width: 80px;
height: 80px;
top: -18px !important;
right: -18px !important;
box-shadow: 0 0 0 9999px rgba($primary, 0.85);
z-index: 1040;
}
.ring-first-notification {
position: absolute;
color: $secondary;
text-align: left;
right: 70px;
2016-11-16 12:44:22 +08:00
top: 60px;
width: 230px;
line-height: 30px;
}
.ring {
$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%;
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;
}
@-webkit-keyframes ping {
from {
$scale: 0.25;
transform: scale($scale);
-ms-transform: scale($scale);
-webkit-transform: scale($scale);
-o-transform: scale($scale);
-moz-transform: scale($scale);
opacity: 1;
}
to {
2016-11-08 19:57:32 +08:00
$scale: 2;
transform: scale($scale);
-ms-transform: scale($scale);
-webkit-transform: scale($scale);
-o-transform: scale($scale);
-moz-transform: scale($scale);
opacity: 0;
}
}
2014-08-22 22:45:51 +08:00
.fade {
opacity: 0;
transition: opacity 0.15s linear;
}
.fade.in {
opacity: 1;
}
2014-11-06 09:13:51 +08:00
2014-12-25 18:19:06 +08:00
@-webkit-keyframes rotate-forever {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes rotate-forever {
0% {
transform: rotate(0deg);
2014-11-06 09:13:51 +08:00
}
100% {
transform: rotate(360deg);
2014-11-06 09:13:51 +08:00
}
}
2014-11-14 03:15:36 +08:00
.inline-spinner {
display: inline-block;
margin: 0;
}
.spinner {
margin: 20px auto 20px auto;
position: relative;
-webkit-animation: rotate-forever 1s infinite linear;
animation: rotate-forever 1s infinite linear;
height: 30px;
width: 30px;
border: 4px solid dark-light-diff($primary, $secondary, 50%, -50%);
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 {
color: dark-light-diff($primary, $secondary, 50%, -20%);
font-size: 1.071em;
padding-left: 5px;
margin-bottom: 10px;
}
ul {
list-style: none;
margin: 0;
li:first-of-type {
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
}
li {
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
}
li a {
display: block;
padding: 10px;
color: $primary;
&:hover {
background-color: dark-light-diff($primary, $secondary, 90%, -60%);
color: $primary;
}
&.active {
font-weight: bold;
color: $primary;
}
}
}
}
2016-02-07 06:22:46 +08:00
// don't wrap relative dates, we want
//
// Jul 26, '15
//
// not
//
// Jul
// 26,
// '15
//
span.relative-date {
white-space:nowrap;
}
@keyframes background-fade-highlight {
0% {
background-color: dark-light-diff($tertiary, $secondary, 85%, -65%);
}
100% {
background-color: transparent;
}
}