2018-07-03 11:14:53 +08:00
|
|
|
// Styles for /admin section
|
|
|
|
|
2013-08-29 01:58:44 +08:00
|
|
|
@import "common/foundation/variables";
|
|
|
|
@import "common/foundation/mixins";
|
|
|
|
@import "common/foundation/helpers";
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2015-08-31 03:09:28 +08:00
|
|
|
$mobile-breakpoint: 700px;
|
2015-08-02 06:00:39 +08:00
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
// Common admin styles
|
2015-08-02 06:00:39 +08:00
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
.admin-main-nav {
|
|
|
|
display: inline-flex;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 100%;
|
|
|
|
.mobile-view & {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
|
|
width: calc(100% + 10px);
|
|
|
|
margin-left: -10px;
|
|
|
|
padding: 0 0 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav.nav-pills {
|
|
|
|
display: inline-flex;
|
|
|
|
width: calc(100% - 10px);
|
|
|
|
flex: 1 0 auto;
|
|
|
|
@media screen and (max-width: 768px) {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: scroll;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
margin: 0 0 0 -10px;
|
|
|
|
padding: 0 10px 10px 10px;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
> li {
|
|
|
|
margin: 0;
|
|
|
|
&:last-of-type {
|
|
|
|
> a {
|
|
|
|
margin-right: 25px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
|
|
// Fade-out for horizontal scroll nav
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 10px;
|
|
|
|
margin-left: -10px;
|
|
|
|
height: 100%;
|
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
rgba($secondary, 1) 0%,
|
|
|
|
rgba($secondary, 0) 100%
|
|
|
|
);
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
right: 0px;
|
|
|
|
width: 30px;
|
|
|
|
height: 100%;
|
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
rgba($secondary, 0) 0%,
|
|
|
|
rgba($secondary, 1) 100%
|
|
|
|
);
|
2015-08-02 06:00:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
.nav-stacked {
|
|
|
|
@media screen and (max-width: 700px) {
|
|
|
|
margin: 0 10px 0 -10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-17 01:35:23 +08:00
|
|
|
.admin-contents {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2013-10-29 01:46:59 +08:00
|
|
|
.admin-contents table {
|
2014-02-13 12:36:10 +08:00
|
|
|
width: 100%;
|
2017-03-20 22:23:00 +08:00
|
|
|
margin-top: 10px;
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
tr {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
padding: 8px;
|
|
|
|
}
|
2017-03-20 22:23:00 +08:00
|
|
|
th {
|
|
|
|
text-align: left;
|
|
|
|
&.sortable {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: #e9e9e9;
|
|
|
|
background-color: lighten($primary, 80%);
|
|
|
|
}
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-chevron-down,
|
|
|
|
.d-icon-chevron-up {
|
2017-03-20 22:23:00 +08:00
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
tr:hover {
|
|
|
|
background-color: darken($secondary, 2.5%);
|
|
|
|
}
|
|
|
|
tr.selected {
|
|
|
|
background-color: lighten($primary, 80%);
|
|
|
|
}
|
|
|
|
.filters input {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
.label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 970px) and (min-width: 768px) {
|
|
|
|
td,
|
|
|
|
th {
|
|
|
|
padding: 6px 4px;
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
th.sortable {
|
|
|
|
max-width: 100px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.admin-contents table.grid {
|
|
|
|
// Table switches to grid for narrow screens
|
|
|
|
@media screen and (max-width: 767px) {
|
|
|
|
thead {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.label {
|
|
|
|
display: block;
|
|
|
|
color: $primary-medium;
|
|
|
|
font-size: $font-down-1;
|
|
|
|
margin: 0.5em 0 0.15em 0;
|
|
|
|
}
|
|
|
|
tr {
|
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
|
display: grid;
|
|
|
|
line-height: $line-height-medium;
|
|
|
|
padding: 8px 0;
|
|
|
|
min-width: 0;
|
|
|
|
td {
|
|
|
|
padding: 2px;
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tr.flagged-topic {
|
|
|
|
grid-template-columns: 0.25fr 1fr 1fr;
|
|
|
|
td.topic-title {
|
|
|
|
grid-column-start: 2;
|
|
|
|
grid-column-end: -2;
|
|
|
|
min-width: 0;
|
|
|
|
align-self: start;
|
|
|
|
}
|
|
|
|
td.last-flagged {
|
|
|
|
grid-row: 1;
|
|
|
|
grid-column-end: -1;
|
|
|
|
text-align: right;
|
|
|
|
align-self: start;
|
|
|
|
}
|
|
|
|
td.flag-details {
|
|
|
|
grid-row: 2;
|
|
|
|
grid-column-end: -1;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
td.flagged-topic-users {
|
|
|
|
grid-row: 1;
|
|
|
|
grid-column-start: 1;
|
|
|
|
max-width: 60px;
|
|
|
|
align-self: start;
|
|
|
|
a {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 0.25em 0.25em 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
td.flag-counts {
|
|
|
|
grid-row: 2;
|
|
|
|
grid-column-start: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 550px) {
|
|
|
|
tr {
|
|
|
|
grid-template-columns: repeat(6, 1fr);
|
|
|
|
}
|
|
|
|
}
|
2013-10-29 01:46:59 +08:00
|
|
|
}
|
|
|
|
|
2015-11-24 05:45:05 +08:00
|
|
|
.site-texts {
|
|
|
|
.search-area {
|
|
|
|
margin-bottom: 2em;
|
|
|
|
p {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2015-12-01 04:22:58 +08:00
|
|
|
.site-text-search {
|
2015-11-24 05:45:05 +08:00
|
|
|
padding: 0.5em;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2015-11-24 05:45:05 +08:00
|
|
|
width: 50%;
|
|
|
|
}
|
2015-12-01 04:22:58 +08:00
|
|
|
.extra-options {
|
|
|
|
float: right;
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="checkbox"] {
|
2015-12-01 04:22:58 +08:00
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
2015-11-24 05:45:05 +08:00
|
|
|
}
|
|
|
|
.text-highlight {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.site-text {
|
|
|
|
cursor: pointer;
|
2017-08-24 04:16:18 +08:00
|
|
|
border-bottom: 1px solid $primary-low;
|
2015-11-24 05:45:05 +08:00
|
|
|
margin-bottom: 0.5em;
|
2015-12-01 04:22:58 +08:00
|
|
|
&.overridden {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $highlight-medium;
|
2015-12-01 04:22:58 +08:00
|
|
|
}
|
2015-11-24 05:45:05 +08:00
|
|
|
h3 {
|
|
|
|
font-weight: normal;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2015-11-24 05:45:05 +08:00
|
|
|
}
|
|
|
|
button.edit {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
.site-text-value {
|
|
|
|
margin: 0.5em 5em 0.5em 0;
|
|
|
|
max-height: 100px;
|
2017-08-24 04:16:18 +08:00
|
|
|
color: $primary-medium;
|
2015-11-24 05:45:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.edit-site-text {
|
|
|
|
textarea {
|
|
|
|
width: 80%;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.save-messages,
|
|
|
|
.title {
|
2015-11-24 05:45:05 +08:00
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
.go-back {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-15 01:26:05 +08:00
|
|
|
.content-list {
|
|
|
|
width: 27%;
|
|
|
|
float: left;
|
|
|
|
li a span.count {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
float: right;
|
|
|
|
margin-right: 10px;
|
|
|
|
background-color: $primary-low;
|
|
|
|
padding: 2px 5px;
|
|
|
|
border-radius: 5px;
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-body {
|
|
|
|
float: left;
|
|
|
|
width: 60%;
|
2013-05-08 13:20:38 +08:00
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
.admin-content {
|
|
|
|
margin-bottom: 50px;
|
|
|
|
.admin-contents {
|
2018-07-03 11:14:53 +08:00
|
|
|
padding: 0 0 8px 0;
|
2015-03-23 22:23:42 +08:00
|
|
|
@include clearfix();
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2014-11-06 03:46:27 +08:00
|
|
|
.view-options {
|
|
|
|
float: right;
|
|
|
|
}
|
2013-03-18 03:02:36 +08:00
|
|
|
table.report {
|
2014-03-27 00:03:58 +08:00
|
|
|
margin-top: 20px;
|
2013-03-18 03:02:36 +08:00
|
|
|
tr {
|
|
|
|
th:nth-of-type(1) {
|
|
|
|
width: 20%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-22 04:46:53 +08:00
|
|
|
tr.total-for-period,
|
|
|
|
tr.total {
|
2018-06-22 00:17:22 +08:00
|
|
|
td {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-16 05:10:45 +08:00
|
|
|
&.web_crawlers {
|
|
|
|
tr {
|
|
|
|
th:nth-of-type(1) {
|
|
|
|
width: 60%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
td.x-value {
|
|
|
|
max-width: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
2013-03-18 03:02:36 +08:00
|
|
|
.bar-container {
|
|
|
|
float: left;
|
|
|
|
width: 300px;
|
|
|
|
margin-right: 15px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
display: inline-block;
|
|
|
|
.bar {
|
|
|
|
margin-top: 5px;
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: $tertiary;
|
2013-03-18 03:02:36 +08:00
|
|
|
display: inline-block;
|
|
|
|
text-align: right;
|
|
|
|
padding-right: 8px;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2013-03-18 03:02:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2017-12-08 02:26:41 +08:00
|
|
|
.full-reason {
|
2017-12-08 02:20:42 +08:00
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2017-11-25 05:11:34 +08:00
|
|
|
.admin-users .users-list {
|
|
|
|
.username .fa {
|
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-08 04:18:18 +08:00
|
|
|
.ip-lookup {
|
2014-06-16 00:14:19 +08:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
.location-box {
|
|
|
|
position: absolute;
|
|
|
|
width: 460px;
|
2018-01-25 22:53:36 +08:00
|
|
|
right: 0;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("dropdown");
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("card");
|
2014-06-16 00:14:19 +08:00
|
|
|
margin-top: -2px;
|
|
|
|
background-color: $secondary;
|
|
|
|
padding: 12px 12px 5px;
|
2017-08-22 02:18:40 +08:00
|
|
|
.powered-by {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2017-08-22 02:18:40 +08:00
|
|
|
position: absolute;
|
|
|
|
bottom: -10px;
|
|
|
|
left: 10px;
|
|
|
|
}
|
2014-11-17 21:51:28 +08:00
|
|
|
.other-accounts {
|
2014-11-21 02:59:20 +08:00
|
|
|
margin: 5px 0 0;
|
2014-11-17 21:51:28 +08:00
|
|
|
max-height: 200px;
|
|
|
|
overflow: auto;
|
2014-11-21 02:59:20 +08:00
|
|
|
width: 455px;
|
2018-06-08 17:49:31 +08:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
tr td:first-of-type {
|
|
|
|
width: 130px;
|
|
|
|
}
|
2014-11-17 21:51:28 +08:00
|
|
|
}
|
2014-06-16 00:14:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-17 03:14:34 +08:00
|
|
|
.admin-container {
|
2018-07-03 11:14:53 +08:00
|
|
|
margin-top: 10px;
|
2017-10-20 03:51:08 +08:00
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
.username {
|
|
|
|
input {
|
|
|
|
min-width: 220px;
|
|
|
|
@media screen and (max-width: 500px) {
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit {
|
2017-10-20 03:51:08 +08:00
|
|
|
width: 350px;
|
|
|
|
}
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit.multi-select {
|
2017-11-10 02:57:53 +08:00
|
|
|
width: 500px;
|
2017-10-20 03:51:08 +08:00
|
|
|
}
|
2018-02-06 01:25:39 +08:00
|
|
|
.select-kit.dropdown-select-box {
|
2017-11-14 23:55:08 +08:00
|
|
|
width: auto;
|
|
|
|
}
|
2017-11-29 01:54:27 +08:00
|
|
|
.search-logs-filter {
|
2018-07-03 11:14:53 +08:00
|
|
|
margin-left: auto;
|
|
|
|
@media screen and (max-width: 700px) {
|
|
|
|
flex: 1 1 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2017-11-29 01:54:27 +08:00
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
|
2018-01-16 18:29:22 +08:00
|
|
|
.header-search-results {
|
|
|
|
clear: both;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
@media screen and (max-width: 768px) {
|
|
|
|
.select-kit.period-chooser
|
|
|
|
.period-chooser-header
|
|
|
|
h2.selected-name
|
|
|
|
.top-date-string {
|
|
|
|
font-size: $font-down-3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.controls {
|
|
|
|
@include clearfix;
|
|
|
|
.save-messages {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
2015-11-21 01:30:04 +08:00
|
|
|
}
|
2015-08-02 06:00:39 +08:00
|
|
|
}
|
|
|
|
|
2014-11-03 19:46:08 +08:00
|
|
|
.admin-title {
|
2018-07-03 11:14:53 +08:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: flex-start;
|
|
|
|
.show-emails {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2014-11-03 19:46:08 +08:00
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
.admin-controls {
|
2018-07-03 11:14:53 +08:00
|
|
|
display: flex;
|
2018-07-05 14:32:27 +08:00
|
|
|
background-color: $primary-low;
|
|
|
|
align-items: center;
|
2018-07-03 11:14:53 +08:00
|
|
|
|
|
|
|
.admin-actions {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2018-02-15 01:26:05 +08:00
|
|
|
nav {
|
2018-07-03 11:14:53 +08:00
|
|
|
background-color: $primary-low;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
nav {
|
|
|
|
display: inline-flex;
|
|
|
|
position: relative;
|
2018-07-05 14:32:27 +08:00
|
|
|
flex: 1;
|
2018-07-03 11:14:53 +08:00
|
|
|
height: auto;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
height: 100%;
|
|
|
|
@media screen and (max-width: 768px) {
|
|
|
|
width: calc(100% + 10px);
|
|
|
|
padding-left: 10px;
|
|
|
|
margin-left: -10px;
|
|
|
|
margin-right: -10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
// Fade out sides of horizontal nav
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 10px;
|
|
|
|
left: 0;
|
|
|
|
height: calc(100% - 5px);
|
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
rgba($primary-low, 1) 0%,
|
|
|
|
rgba($primary-low, 0) 100%
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
right: 0px;
|
|
|
|
width: 30px;
|
|
|
|
height: calc(100% - 5px);
|
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
rgba($primary-low, 0) 0%,
|
|
|
|
rgba($primary-low, 1) 100%
|
|
|
|
);
|
|
|
|
}
|
2018-02-15 01:26:05 +08:00
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
.nav.nav-pills {
|
2018-07-03 11:14:53 +08:00
|
|
|
width: calc(100% - 10px);
|
|
|
|
display: inline-flex;
|
|
|
|
padding: 10px;
|
|
|
|
margin: 0;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: auto;
|
|
|
|
@media screen and (max-width: 768px) {
|
|
|
|
margin-left: -10px;
|
|
|
|
overflow-x: scroll;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
> li {
|
|
|
|
margin: 0;
|
|
|
|
a.active {
|
|
|
|
background: $primary-medium;
|
|
|
|
}
|
|
|
|
&:last-of-type {
|
|
|
|
> a {
|
|
|
|
margin-right: 25px;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
h1 {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-3;
|
|
|
|
line-height: $line-height-medium;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
.controls {
|
2018-07-03 11:14:53 +08:00
|
|
|
background: $primary-low;
|
|
|
|
width: 100%;
|
|
|
|
padding: 10px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
input {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
&.search {
|
|
|
|
width: auto;
|
|
|
|
white-space: nowrap;
|
|
|
|
label {
|
|
|
|
flex: 1 1 250px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
input {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2015-08-17 01:35:23 +08:00
|
|
|
.controls .menu-toggle {
|
|
|
|
display: none;
|
|
|
|
float: left;
|
2018-07-03 11:14:53 +08:00
|
|
|
padding: 5px 10px;
|
|
|
|
margin-right: 15px;
|
2015-08-17 01:35:23 +08:00
|
|
|
border: 1px solid lighten($primary, 40%);
|
|
|
|
border-radius: 3px;
|
|
|
|
background: transparent;
|
|
|
|
color: $primary;
|
|
|
|
&:hover {
|
|
|
|
background-color: lighten($primary, 60%);
|
|
|
|
}
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
button {
|
|
|
|
margin-right: 5px;
|
2013-10-30 05:03:28 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="text"] {
|
2013-10-30 05:03:28 +08:00
|
|
|
display: inline-block;
|
|
|
|
float: left;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
.result-message {
|
|
|
|
display: inline-block;
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
.username {
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="text"] {
|
2013-02-06 03:16:51 +08:00
|
|
|
width: 240px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.search {
|
|
|
|
label {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2015-08-02 06:00:39 +08:00
|
|
|
.controls {
|
|
|
|
margin-left: 0;
|
2018-07-03 11:14:53 +08:00
|
|
|
} // Hide the search checkbox for very small screens
|
2015-08-02 06:00:39 +08:00
|
|
|
// Todo: find somewhere to display it - probably requires switching its order in the html
|
2015-08-31 01:36:54 +08:00
|
|
|
@media (max-width: 550px) {
|
2015-08-02 06:00:39 +08:00
|
|
|
display: none;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-06-04 04:12:24 +08:00
|
|
|
.toggle {
|
|
|
|
margin-top: 8px;
|
|
|
|
float: right;
|
|
|
|
span {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
label {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2016-04-22 03:00:28 +08:00
|
|
|
#last-seen input[type="text"] {
|
2015-10-31 02:05:54 +08:00
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
.ac-wrap {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2018-07-05 14:32:27 +08:00
|
|
|
.pull-right {
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2015-10-27 03:56:59 +08:00
|
|
|
.paste-users {
|
|
|
|
width: 400px;
|
|
|
|
height: 150px;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.groups,
|
|
|
|
.badges,
|
|
|
|
.web-hook-container {
|
2015-01-06 01:51:45 +08:00
|
|
|
.form-horizontal {
|
2017-12-22 06:13:06 +08:00
|
|
|
& > div {
|
|
|
|
margin-bottom: 20px;
|
2015-01-06 01:51:45 +08:00
|
|
|
}
|
2017-12-22 06:13:06 +08:00
|
|
|
.d-editor-textarea-wrapper {
|
2018-01-16 18:29:22 +08:00
|
|
|
max-width: 60%;
|
2017-12-22 06:13:06 +08:00
|
|
|
.d-editor-button-bar {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2015-01-06 01:51:45 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
input,
|
|
|
|
textarea,
|
|
|
|
select,
|
|
|
|
.select-box {
|
2015-01-06 01:51:45 +08:00
|
|
|
width: 350px;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
2015-01-06 01:51:45 +08:00
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-16 01:49:57 +08:00
|
|
|
.text-successful {
|
|
|
|
color: $success;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-danger {
|
|
|
|
color: $danger;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-muted {
|
|
|
|
color: lighten($primary, 40);
|
|
|
|
}
|
|
|
|
|
2015-02-07 06:32:59 +08:00
|
|
|
.admin-nav {
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 18.018%;
|
2018-07-03 11:14:53 +08:00
|
|
|
position: relative; // The admin-nav becomes a slide-out menu at the mobile-nav breakpoint
|
2015-08-02 06:00:39 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
2015-11-13 02:01:12 +08:00
|
|
|
position: absolute;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("base") - 1;
|
2018-07-03 11:14:53 +08:00
|
|
|
width: 250px;
|
|
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
2015-08-17 01:35:23 +08:00
|
|
|
width: 50%;
|
2015-08-02 06:00:39 +08:00
|
|
|
}
|
2013-11-15 04:26:48 +08:00
|
|
|
}
|
|
|
|
|
2015-02-07 06:32:59 +08:00
|
|
|
.admin-detail {
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 76.5765%;
|
2015-08-02 06:00:39 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("base");
|
2015-08-17 01:35:23 +08:00
|
|
|
width: 100%;
|
2015-08-02 06:00:39 +08:00
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
|
|
|
|
background-color: $secondary; // Todo: set this properly - it needs to be >= the menu height
|
2015-08-17 01:35:23 +08:00
|
|
|
min-height: 875px;
|
2013-11-17 03:14:34 +08:00
|
|
|
margin-left: 0;
|
2017-08-24 04:16:18 +08:00
|
|
|
border-left: solid 1px $primary-low;
|
2013-11-17 03:14:34 +08:00
|
|
|
padding: 30px 0 30px 30px;
|
2015-08-02 06:00:39 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
2015-08-17 01:35:23 +08:00
|
|
|
padding: 30px 0;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.admin-detail.mobile-open {
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
2018-07-03 11:14:53 +08:00
|
|
|
transition: transform 0.3s ease;
|
|
|
|
@include transform(translateX(250px));
|
|
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
2015-08-31 01:30:56 +08:00
|
|
|
transition: transform 0.3s ease;
|
2015-08-31 01:02:12 +08:00
|
|
|
@include transform(translateX(50%));
|
2015-08-17 01:35:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.admin-detail.mobile-closed {
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
2015-08-31 01:30:56 +08:00
|
|
|
transition: transform 0.3s ease;
|
2015-08-31 01:02:12 +08:00
|
|
|
@include transform(translateX(0));
|
2018-07-03 11:14:53 +08:00
|
|
|
margin-left: -10px;
|
|
|
|
padding-left: 10px;
|
2018-05-16 21:37:40 +08:00
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
section.details {
|
|
|
|
h1 {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-3;
|
2014-08-28 01:52:01 +08:00
|
|
|
color: $primary;
|
|
|
|
padding: 5px 10px;
|
|
|
|
margin: 30px 0 5px 0;
|
2017-08-24 04:16:18 +08:00
|
|
|
border-bottom: 5px solid $primary-low;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#selected-controls {
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: $tertiary-low;
|
2013-02-06 03:16:51 +08:00
|
|
|
padding: 8px;
|
|
|
|
min-height: 27px;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
width: 1075px;
|
|
|
|
}
|
|
|
|
|
2014-08-28 01:52:01 +08:00
|
|
|
.user-controls {
|
|
|
|
padding: 5px;
|
|
|
|
clear: both;
|
|
|
|
text-align: right;
|
2017-05-30 02:13:22 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
.btn {
|
|
|
|
margin: 2px;
|
|
|
|
}
|
|
|
|
}
|
2014-08-28 01:52:01 +08:00
|
|
|
}
|
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
.row.groups {
|
|
|
|
input[type="text"] {
|
|
|
|
width: 500px;
|
|
|
|
}
|
|
|
|
input#group-users {
|
|
|
|
width: 600px;
|
2017-04-21 10:18:01 +08:00
|
|
|
}
|
2014-09-25 14:38:44 +08:00
|
|
|
}
|
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
// Ember.ListView
|
|
|
|
.ember-list-view {
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ember-list-item-view {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tl3-requirements {
|
|
|
|
.d-icon-check {
|
|
|
|
color: $success;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
.d-icon-times {
|
|
|
|
color: $danger;
|
2013-11-06 03:41:04 +08:00
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 320px) and (max-width: 500px) {
|
|
|
|
.full-width {
|
|
|
|
margin: 0;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
.site-settings-nav {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.site-settings-detail {
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
.settings .setting {
|
2014-07-23 04:30:32 +08:00
|
|
|
.setting-label {
|
2018-06-08 17:49:31 +08:00
|
|
|
float: left;
|
|
|
|
width: 100%;
|
|
|
|
h3 {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-top: 25px;
|
2014-07-23 04:30:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.setting-value {
|
|
|
|
width: 100%;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2014-07-23 04:30:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.content-editor {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
div.ac-wrap {
|
|
|
|
width: 100% !important;
|
|
|
|
box-sizing: border-box;
|
2017-06-29 03:36:34 +08:00
|
|
|
}
|
2014-07-23 04:30:32 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.dashboard-left,
|
|
|
|
.dashboard-right {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.dashboard-stats {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2014-07-23 04:30:32 +08:00
|
|
|
.badges {
|
2018-06-08 17:49:31 +08:00
|
|
|
.current-badge {
|
|
|
|
margin: 70px 0 0 0;
|
|
|
|
}
|
|
|
|
.current-badge-actions {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2014-07-23 04:30:32 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.customize .content-list,
|
|
|
|
.customize .current-style {
|
2014-07-23 04:30:32 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2014-07-27 16:22:01 +08:00
|
|
|
|
2014-09-03 22:09:30 +08:00
|
|
|
tr.not-activated {
|
2018-06-08 17:49:31 +08:00
|
|
|
td,
|
|
|
|
td a,
|
|
|
|
td a:visited {
|
2014-09-03 22:09:30 +08:00
|
|
|
color: #bbb;
|
|
|
|
}
|
2014-09-03 22:41:13 +08:00
|
|
|
}
|
2018-07-03 11:14:53 +08:00
|
|
|
|
2014-09-03 22:41:13 +08:00
|
|
|
.details.not-activated {
|
2018-06-08 17:49:31 +08:00
|
|
|
.username .value,
|
|
|
|
.email .value a,
|
|
|
|
.email .value a:visited {
|
2014-09-03 22:41:13 +08:00
|
|
|
color: #bbb;
|
|
|
|
}
|
2014-09-08 10:46:04 +08:00
|
|
|
}
|
2014-09-25 23:32:08 +08:00
|
|
|
|
2015-01-29 11:53:02 +08:00
|
|
|
.preview {
|
2018-06-08 17:49:31 +08:00
|
|
|
margin-top: 5px;
|
2015-01-29 11:53:02 +08:00
|
|
|
}
|
2015-02-25 09:52:43 +08:00
|
|
|
|
|
|
|
table#user-badges {
|
|
|
|
.reason {
|
|
|
|
max-width: 200px;
|
|
|
|
}
|
|
|
|
}
|
2015-03-03 01:12:19 +08:00
|
|
|
|
2015-06-10 00:19:41 +08:00
|
|
|
.value-list {
|
|
|
|
.value {
|
2015-03-03 01:12:19 +08:00
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
padding: 3px;
|
|
|
|
margin-right: 10px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-07-29 03:58:49 +08:00
|
|
|
cursor: move;
|
2015-03-03 01:12:19 +08:00
|
|
|
}
|
2015-06-10 00:19:41 +08:00
|
|
|
.values {
|
2015-03-03 01:12:19 +08:00
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2015-07-29 03:58:49 +08:00
|
|
|
.placeholder {
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
padding: 3px;
|
|
|
|
margin-right: 10px;
|
|
|
|
height: 30px;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="text"] {
|
2015-03-03 01:12:19 +08:00
|
|
|
width: 90%;
|
|
|
|
}
|
|
|
|
}
|
2015-07-15 20:54:28 +08:00
|
|
|
|
2015-08-02 07:57:41 +08:00
|
|
|
// Mobile view text-inputs need some padding
|
2015-08-02 06:00:39 +08:00
|
|
|
.mobile-view .admin-contents {
|
|
|
|
input[type="text"] {
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobile-view .full-width {
|
|
|
|
margin: 0;
|
2015-08-19 02:13:40 +08:00
|
|
|
}
|
2015-08-21 04:30:34 +08:00
|
|
|
|
2016-03-05 01:03:47 +08:00
|
|
|
// Mobile specific style for Admin IP Lookup box
|
|
|
|
.mobile-view .admin-contents .ip-lookup .location-box {
|
|
|
|
width: 300px;
|
2017-04-21 10:18:01 +08:00
|
|
|
left: -100%;
|
2016-03-05 01:03:47 +08:00
|
|
|
}
|
|
|
|
|
2017-04-12 22:52:52 +08:00
|
|
|
.inline-edit label {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
// Styles for subtabs in admin
|
|
|
|
@import "common/admin/dashboard_next";
|
|
|
|
@import "common/admin/settings";
|
|
|
|
@import "common/admin/users";
|
|
|
|
@import "common/admin/moderation_history";
|
|
|
|
@import "common/admin/suspend";
|
|
|
|
@import "common/admin/badges";
|
|
|
|
@import "common/admin/emails";
|
|
|
|
@import "common/admin/flagging";
|
|
|
|
@import "common/admin/staff_logs";
|
|
|
|
@import "common/admin/customize";
|
|
|
|
@import "common/admin/api";
|
|
|
|
@import "common/admin/backups";
|
|
|
|
@import "common/admin/plugins";
|
|
|
|
@import "common/admin/admin_reports";
|
|
|
|
@import "common/admin/dashboard_previous";
|