2013-02-06 03:16:51 +08:00
|
|
|
// these are the styles associated with the Discourse 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
|
|
|
|
2017-04-12 22:52:52 +08:00
|
|
|
@import "common/admin/customize";
|
2017-09-12 02:01:59 +08:00
|
|
|
@import "common/admin/flagging";
|
2018-04-16 16:42:06 +08:00
|
|
|
@import "common/admin/dashboard_next";
|
2018-05-18 04:44:33 +08:00
|
|
|
@import "common/admin/admin_reports";
|
2017-12-05 01:14:43 +08:00
|
|
|
@import "common/admin/moderation_history";
|
2017-09-14 01:06:41 +08:00
|
|
|
@import "common/admin/suspend";
|
2017-04-12 22:52:52 +08:00
|
|
|
|
2015-08-31 03:09:28 +08:00
|
|
|
$mobile-breakpoint: 700px;
|
2015-08-02 06:00:39 +08:00
|
|
|
|
|
|
|
// Change the box model for .admin-content
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
.admin-content {
|
|
|
|
box-sizing: border-box;
|
2018-06-08 17:49:31 +08:00
|
|
|
*,
|
|
|
|
*:before,
|
|
|
|
*:after {
|
2015-08-02 06:00:39 +08:00
|
|
|
box-sizing: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"] {
|
|
|
|
// Desktop/_discourse.scss sets a height on text-input elements. Using `box-sizing: border-box`
|
|
|
|
// this value either needs to be increased or set to auto. `mobile.css` seems to not set a height on text-inputs.
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-17 01:35:23 +08:00
|
|
|
.admin-contents {
|
|
|
|
position: relative;
|
|
|
|
margin-left: -10px;
|
|
|
|
margin-right: -10px;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2018-05-01 08:45:49 +08:00
|
|
|
|
2017-03-20 22:23:00 +08:00
|
|
|
th {
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
&.sortable {
|
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&: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;
|
|
|
|
}
|
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 {
|
2015-08-02 06:00:39 +08:00
|
|
|
padding: 8px 0;
|
2015-03-23 22:23:42 +08:00
|
|
|
@include clearfix();
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-03-18 03:02:36 +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;
|
2014-11-17 21:51:28 +08:00
|
|
|
|
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 {
|
|
|
|
margin-top: 20px;
|
2017-10-20 03:51:08 +08:00
|
|
|
|
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 {
|
|
|
|
width: 200px;
|
|
|
|
float: right;
|
|
|
|
}
|
2018-01-16 18:29:22 +08:00
|
|
|
.header-search-results {
|
|
|
|
clear: both;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
2013-11-17 03:14:34 +08:00
|
|
|
}
|
|
|
|
|
2015-08-02 06:00:39 +08:00
|
|
|
.admin-container .controls {
|
|
|
|
@include clearfix;
|
2015-11-21 01:30:04 +08:00
|
|
|
|
|
|
|
.save-messages {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
2015-08-02 06:00:39 +08:00
|
|
|
}
|
|
|
|
|
2014-11-03 19:46:08 +08:00
|
|
|
.admin-title {
|
2017-10-24 04:08:43 +08:00
|
|
|
margin-bottom: 0.5em;
|
2014-11-03 19:46:08 +08:00
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
.admin-controls {
|
2017-08-24 04:16:18 +08:00
|
|
|
background-color: $primary-low;
|
2014-03-06 14:14:51 +08:00
|
|
|
padding: 10px 10px 3px 0;
|
2015-08-02 06:00:39 +08:00
|
|
|
@include clearfix;
|
2018-02-15 01:26:05 +08:00
|
|
|
nav {
|
|
|
|
float: left;
|
2018-02-26 18:42:57 +08:00
|
|
|
margin-left: 12px;
|
2018-02-15 01:26:05 +08:00
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
.nav.nav-pills {
|
|
|
|
li.active {
|
|
|
|
a {
|
2017-08-24 04:16:18 +08:00
|
|
|
border-color: $primary-low;
|
|
|
|
background-color: $primary-medium;
|
2013-02-06 03:16:51 +08:00
|
|
|
&:hover {
|
2017-08-24 04:16:18 +08:00
|
|
|
background-color: $primary-medium;
|
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 {
|
2013-10-30 05:03:28 +08:00
|
|
|
margin-left: 10px;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2015-08-17 01:35:23 +08:00
|
|
|
|
|
|
|
.controls .menu-toggle {
|
|
|
|
display: none;
|
|
|
|
float: left;
|
|
|
|
padding: 3px 6px;
|
|
|
|
margin-right: 32px;
|
|
|
|
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 {
|
2013-03-07 01:07:09 +08:00
|
|
|
float: right;
|
|
|
|
margin-left: 10px;
|
2013-02-06 03:16:51 +08:00
|
|
|
label {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2015-08-02 06:00:39 +08:00
|
|
|
.controls {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2015-08-02 07:57:41 +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;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
|
2017-06-29 03:36:34 +08:00
|
|
|
.email-preview {
|
|
|
|
.ac-wrap {
|
|
|
|
.item {
|
|
|
|
margin: 0.2em 0 0 0.4em;
|
|
|
|
}
|
|
|
|
// input[type=text] {
|
|
|
|
// margin-left: 0.4em;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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%;
|
2015-08-17 01:35:23 +08:00
|
|
|
position: relative;
|
2017-08-24 04:16:18 +08:00
|
|
|
|
2015-08-17 01:35:23 +08:00
|
|
|
// 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;
|
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
|
|
|
}
|
2015-08-17 01:35:23 +08:00
|
|
|
background-color: $secondary;
|
|
|
|
// Todo: set this properly - it needs to be >= the menu height
|
|
|
|
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) {
|
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));
|
2015-08-02 06:00:39 +08:00
|
|
|
}
|
2013-11-16 04:22:42 +08:00
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
.settings {
|
2015-08-17 01:35:23 +08:00
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 10px;
|
2013-02-06 03:16:51 +08:00
|
|
|
.setting {
|
|
|
|
padding-bottom: 20px;
|
2013-11-16 04:22:42 +08:00
|
|
|
|
|
|
|
.setting-label {
|
|
|
|
float: left;
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 17.6576%;
|
2013-11-16 04:22:42 +08:00
|
|
|
margin-right: 12px;
|
2015-08-02 06:00:39 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
float: none;
|
|
|
|
margin-right: 0;
|
|
|
|
width: 100%;
|
|
|
|
h3 {
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
|
|
|
}
|
2013-11-16 04:22:42 +08:00
|
|
|
}
|
|
|
|
.setting-value {
|
|
|
|
float: left;
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 53%;
|
2016-05-09 14:37:51 +08:00
|
|
|
padding-right: 20px;
|
2016-06-16 01:49:57 +08:00
|
|
|
.category-selector {
|
2015-08-22 02:39:21 +08:00
|
|
|
width: 95%;
|
|
|
|
}
|
2015-08-02 06:00:39 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
2014-06-21 05:46:25 +08:00
|
|
|
width: 100%;
|
2016-05-09 14:37:51 +08:00
|
|
|
padding-right: 0;
|
2014-06-21 05:46:25 +08:00
|
|
|
}
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit {
|
2015-08-02 06:00:39 +08:00
|
|
|
width: 100% !important; // Needs !important to override hard-coded value
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
width: 100% !important; // !important overrides hard-coded mobile width of 68px
|
|
|
|
}
|
|
|
|
}
|
2013-11-16 04:22:42 +08:00
|
|
|
}
|
|
|
|
.setting-controls {
|
|
|
|
float: left;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.input-setting-string,
|
|
|
|
.input-setting-textarea {
|
2016-05-09 14:37:51 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
height: 30px;
|
|
|
|
width: 100%;
|
2015-08-02 06:00:39 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2013-11-17 03:14:34 +08:00
|
|
|
}
|
2017-07-18 04:38:26 +08:00
|
|
|
.input-setting-textarea {
|
|
|
|
height: 150px;
|
|
|
|
}
|
2014-03-30 13:32:33 +08:00
|
|
|
.input-setting-list {
|
2015-08-02 06:00:39 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2014-03-30 13:32:33 +08:00
|
|
|
padding: 1px;
|
2014-05-07 11:53:04 +08:00
|
|
|
background-color: $secondary;
|
2017-08-24 04:16:18 +08:00
|
|
|
border: 1px solid $primary-low;
|
2014-03-30 13:32:33 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
transition: border linear 0.2s, box-shadow linear 0.2s;
|
|
|
|
|
2014-06-01 22:36:26 +08:00
|
|
|
li.sortable-placeholder {
|
|
|
|
padding: 3px 5px 3px 18px;
|
2018-01-25 22:53:36 +08:00
|
|
|
margin: 3px 0 3px 5px;
|
2014-06-01 22:36:26 +08:00
|
|
|
position: relative;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-small;
|
2014-06-01 22:36:26 +08:00
|
|
|
cursor: default;
|
2018-06-08 17:49:31 +08:00
|
|
|
border: 1px dashed #aaa;
|
2014-06-01 22:36:26 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
background-clip: padding-box;
|
|
|
|
-moz-user-select: none;
|
2015-08-02 06:00:39 +08:00
|
|
|
background-color: transparent;
|
2014-06-01 22:36:26 +08:00
|
|
|
width: 3em;
|
|
|
|
height: 1em;
|
2014-03-30 13:32:33 +08:00
|
|
|
}
|
2014-06-01 22:36:26 +08:00
|
|
|
}
|
2013-11-16 04:22:42 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.desc,
|
|
|
|
.validation-error {
|
2013-02-06 03:16:51 +08:00
|
|
|
padding-top: 3px;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
line-height: $line-height-large;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-03-02 01:45:25 +08:00
|
|
|
|
2014-06-10 03:17:36 +08:00
|
|
|
.validation-error {
|
|
|
|
color: $danger;
|
|
|
|
}
|
|
|
|
|
|
|
|
.desc {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2014-06-10 03:17:36 +08:00
|
|
|
}
|
|
|
|
|
2013-03-02 01:45:25 +08:00
|
|
|
h3 {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2013-03-02 01:45:25 +08:00
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.setting.overridden {
|
|
|
|
h3 {
|
2017-11-30 23:13:09 +08:00
|
|
|
color: $highlight-high;
|
2013-03-02 01:45:25 +08:00
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2015-03-03 01:12:19 +08:00
|
|
|
|
|
|
|
.setting.overridden.string {
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="text"],
|
|
|
|
input[type="password"],
|
|
|
|
textarea {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $highlight-medium;
|
2015-03-03 01:12:19 +08:00
|
|
|
}
|
|
|
|
}
|
2018-05-16 21:37:40 +08:00
|
|
|
|
|
|
|
.warning {
|
|
|
|
color: $danger;
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
2014-09-25 14:38:44 +08:00
|
|
|
.display-row.associations .value {
|
2014-09-30 04:31:05 +08:00
|
|
|
width: 750px;
|
2017-04-21 10:18:01 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
2017-05-30 02:13:22 +08:00
|
|
|
width: 75%;
|
|
|
|
float: right;
|
|
|
|
text-align: left;
|
|
|
|
margin-left: 0;
|
2017-04-21 10:18:01 +08:00
|
|
|
}
|
2014-09-25 14:38:44 +08:00
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
.display-row {
|
2018-01-13 06:27:38 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 10px 5px;
|
2013-02-06 03:16:51 +08:00
|
|
|
&:nth-of-type(1) {
|
|
|
|
border-top: 0;
|
|
|
|
}
|
2013-11-06 03:41:04 +08:00
|
|
|
&.highlight-danger {
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: $danger-low;
|
2013-11-06 03:41:04 +08:00
|
|
|
}
|
2017-08-24 04:16:18 +08:00
|
|
|
border-top: 1px solid $primary-low;
|
2018-06-08 17:49:31 +08:00
|
|
|
&:before,
|
|
|
|
&:after {
|
2013-02-06 03:16:51 +08:00
|
|
|
display: table;
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
.field {
|
|
|
|
font-weight: bold;
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 17.65765%;
|
2013-02-06 03:16:51 +08:00
|
|
|
float: left;
|
|
|
|
margin-left: 12px;
|
2017-05-30 02:13:22 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
margin-left: 0;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-large;
|
2017-05-30 02:13:22 +08:00
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
.value {
|
|
|
|
width: 250px;
|
|
|
|
float: left;
|
|
|
|
margin-left: 12px;
|
2017-05-30 02:13:22 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
|
width: 75%;
|
|
|
|
float: right;
|
|
|
|
text-align: left;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2017-11-21 18:53:09 +08:00
|
|
|
.select-kit {
|
2017-11-10 02:57:53 +08:00
|
|
|
width: inherit;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-10-23 03:53:08 +08:00
|
|
|
.long-value {
|
|
|
|
width: 800px;
|
|
|
|
float: left;
|
|
|
|
margin-left: 12px;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2013-10-23 03:53:08 +08:00
|
|
|
|
|
|
|
button {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
.controls {
|
2014-03-15 17:16:29 +08:00
|
|
|
width: 480px;
|
2013-11-12 04:03:17 +08:00
|
|
|
float: left;
|
|
|
|
margin-left: 12px;
|
2017-04-21 10:18:01 +08:00
|
|
|
@media (max-width: $mobile-breakpoint) {
|
2017-05-30 02:13:22 +08:00
|
|
|
width: 75%;
|
|
|
|
float: right;
|
|
|
|
text-align: left;
|
|
|
|
margin-left: 0;
|
2017-04-21 10:18:01 +08:00
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
.btn {
|
2017-05-30 02:13:22 +08:00
|
|
|
margin: 2px 5px 2px 0;
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-05 20:52:20 +08:00
|
|
|
// Badges area
|
|
|
|
.badges {
|
|
|
|
.content-list ul {
|
|
|
|
margin-bottom: 10px;
|
2014-05-19 13:20:57 +08:00
|
|
|
|
|
|
|
.list-badge {
|
|
|
|
float: right;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2014-05-19 13:20:57 +08:00
|
|
|
font-weight: normal;
|
|
|
|
padding: 0 6px;
|
|
|
|
color: $secondary;
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: $tertiary-medium;
|
2014-05-19 13:20:57 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
}
|
2014-03-05 20:52:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.current-badge {
|
|
|
|
margin: 20px;
|
2014-10-17 04:43:10 +08:00
|
|
|
|
|
|
|
p.help {
|
|
|
|
margin: 0;
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2014-10-17 04:43:10 +08:00
|
|
|
}
|
2014-03-05 20:52:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.form-horizontal {
|
2017-10-30 15:07:49 +08:00
|
|
|
.ace-wrapper {
|
|
|
|
position: relative;
|
|
|
|
height: 270px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
.ace_editor {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
border: 1px solid #e9e9e9;
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
.ace_gutter {
|
|
|
|
border-right: 1px solid #e9e9e9;
|
|
|
|
background: #f4f4f4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-disabled="true"] {
|
|
|
|
cursor: not-allowed;
|
|
|
|
opacity: 0.5;
|
|
|
|
|
|
|
|
.ace_editor {
|
2018-06-08 17:49:31 +08:00
|
|
|
pointer-events: none;
|
2017-11-10 02:57:53 +08:00
|
|
|
|
2017-10-30 15:07:49 +08:00
|
|
|
.ace_cursor {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-03-05 20:52:20 +08:00
|
|
|
.delete-link {
|
|
|
|
margin-left: 15px;
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2014-03-19 13:13:38 +08:00
|
|
|
textarea {
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-28 03:51:41 +08:00
|
|
|
.current-badge-actions {
|
|
|
|
margin: 10px;
|
|
|
|
padding: 10px;
|
2017-10-11 04:07:46 +08:00
|
|
|
border-top: 1px solid dark-light-choose($primary-low, $secondary-high);
|
2014-06-28 03:51:41 +08:00
|
|
|
}
|
|
|
|
|
2014-03-19 13:13:38 +08:00
|
|
|
.buttons {
|
|
|
|
float: left;
|
|
|
|
width: 200px;
|
|
|
|
.saving {
|
|
|
|
padding: 5px 0 0 0;
|
|
|
|
margin-left: 10px;
|
|
|
|
width: 80px;
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2014-03-19 13:13:38 +08:00
|
|
|
}
|
2014-03-05 20:52:20 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
FEATURE: Badge query validation, preview results, and EXPLAIN
Upon saving a badge or requesting a badge result preview,
BadgeGranter.contract_checks! will examine the provided badge SQL for
some contractual obligations - namely, the returned columns and use of
trigger parameters.
Saving the badge is wrapped in a transaction to make this easier, by
raising ActiveRecord::Rollback on a detected violation.
On the client, a modal view is added for the badge query sample run
results, named admin-badge-preview.
The preview action is moved up to the route.
The save action, on failure, triggers a 'saveError' action (also in the
route).
The preview action gains a new parameter, 'explain', which will give the
output of an EXPLAIN query for the badge sql, which can be used by forum
admins to estimate the cost of their badge queries.
The preview link is replaced by two links, one which omits (false) and
includes (true) the EXPLAIN query.
The Badge.save() method is amended to propogate errors.
Badge::Trigger gets some utility methods for use in the
BadgeGranter.contract_checks! method.
Additionally, extra checks outside of BadgeGranter.contract_checks! are
added in the preview() method, to cover cases of null granted_at
columns.
An uninitialized variable path is removed in the backfill() method.
TODO - it would be nice to be able to get the actual names of all
columns the provided query returns, so we could give more errors
2014-08-26 06:17:29 +08:00
|
|
|
.badge-query-preview {
|
2018-06-08 17:49:31 +08:00
|
|
|
.grant-count,
|
|
|
|
.sample,
|
|
|
|
.error-header {
|
FEATURE: Badge query validation, preview results, and EXPLAIN
Upon saving a badge or requesting a badge result preview,
BadgeGranter.contract_checks! will examine the provided badge SQL for
some contractual obligations - namely, the returned columns and use of
trigger parameters.
Saving the badge is wrapped in a transaction to make this easier, by
raising ActiveRecord::Rollback on a detected violation.
On the client, a modal view is added for the badge query sample run
results, named admin-badge-preview.
The preview action is moved up to the route.
The save action, on failure, triggers a 'saveError' action (also in the
route).
The preview action gains a new parameter, 'explain', which will give the
output of an EXPLAIN query for the badge sql, which can be used by forum
admins to estimate the cost of their badge queries.
The preview link is replaced by two links, one which omits (false) and
includes (true) the EXPLAIN query.
The Badge.save() method is amended to propogate errors.
Badge::Trigger gets some utility methods for use in the
BadgeGranter.contract_checks! method.
Additionally, extra checks outside of BadgeGranter.contract_checks! are
added in the preview() method, to cover cases of null granted_at
columns.
An uninitialized variable path is removed in the backfill() method.
TODO - it would be nice to be able to get the actual names of all
columns the provided query returns, so we could give more errors
2014-08-26 06:17:29 +08:00
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
2014-09-03 04:29:28 +08:00
|
|
|
.badge-errors {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
|
|
|
line-height: $line-height-medium;
|
FEATURE: Badge query validation, preview results, and EXPLAIN
Upon saving a badge or requesting a badge result preview,
BadgeGranter.contract_checks! will examine the provided badge SQL for
some contractual obligations - namely, the returned columns and use of
trigger parameters.
Saving the badge is wrapped in a transaction to make this easier, by
raising ActiveRecord::Rollback on a detected violation.
On the client, a modal view is added for the badge query sample run
results, named admin-badge-preview.
The preview action is moved up to the route.
The save action, on failure, triggers a 'saveError' action (also in the
route).
The preview action gains a new parameter, 'explain', which will give the
output of an EXPLAIN query for the badge sql, which can be used by forum
admins to estimate the cost of their badge queries.
The preview link is replaced by two links, one which omits (false) and
includes (true) the EXPLAIN query.
The Badge.save() method is amended to propogate errors.
Badge::Trigger gets some utility methods for use in the
BadgeGranter.contract_checks! method.
Additionally, extra checks outside of BadgeGranter.contract_checks! are
added in the preview() method, to cover cases of null granted_at
columns.
An uninitialized variable path is removed in the backfill() method.
TODO - it would be nice to be able to get the actual names of all
columns the provided query returns, so we could give more errors
2014-08-26 06:17:29 +08:00
|
|
|
padding: 4px;
|
2017-08-24 04:16:18 +08:00
|
|
|
background-color: $primary-low;
|
FEATURE: Badge query validation, preview results, and EXPLAIN
Upon saving a badge or requesting a badge result preview,
BadgeGranter.contract_checks! will examine the provided badge SQL for
some contractual obligations - namely, the returned columns and use of
trigger parameters.
Saving the badge is wrapped in a transaction to make this easier, by
raising ActiveRecord::Rollback on a detected violation.
On the client, a modal view is added for the badge query sample run
results, named admin-badge-preview.
The preview action is moved up to the route.
The save action, on failure, triggers a 'saveError' action (also in the
route).
The preview action gains a new parameter, 'explain', which will give the
output of an EXPLAIN query for the badge sql, which can be used by forum
admins to estimate the cost of their badge queries.
The preview link is replaced by two links, one which omits (false) and
includes (true) the EXPLAIN query.
The Badge.save() method is amended to propogate errors.
Badge::Trigger gets some utility methods for use in the
BadgeGranter.contract_checks! method.
Additionally, extra checks outside of BadgeGranter.contract_checks! are
added in the preview() method, to cover cases of null granted_at
columns.
An uninitialized variable path is removed in the backfill() method.
TODO - it would be nice to be able to get the actual names of all
columns the provided query returns, so we could give more errors
2014-08-26 06:17:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-query-plan {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
line-height: $line-height-medium;
|
2014-09-03 04:29:28 +08:00
|
|
|
padding: 4px;
|
2017-08-24 04:16:18 +08:00
|
|
|
background-color: $primary-low;
|
FEATURE: Badge query validation, preview results, and EXPLAIN
Upon saving a badge or requesting a badge result preview,
BadgeGranter.contract_checks! will examine the provided badge SQL for
some contractual obligations - namely, the returned columns and use of
trigger parameters.
Saving the badge is wrapped in a transaction to make this easier, by
raising ActiveRecord::Rollback on a detected violation.
On the client, a modal view is added for the badge query sample run
results, named admin-badge-preview.
The preview action is moved up to the route.
The save action, on failure, triggers a 'saveError' action (also in the
route).
The preview action gains a new parameter, 'explain', which will give the
output of an EXPLAIN query for the badge sql, which can be used by forum
admins to estimate the cost of their badge queries.
The preview link is replaced by two links, one which omits (false) and
includes (true) the EXPLAIN query.
The Badge.save() method is amended to propogate errors.
Badge::Trigger gets some utility methods for use in the
BadgeGranter.contract_checks! method.
Additionally, extra checks outside of BadgeGranter.contract_checks! are
added in the preview() method, to cover cases of null granted_at
columns.
An uninitialized variable path is removed in the backfill() method.
TODO - it would be nice to be able to get the actual names of all
columns the provided query returns, so we could give more errors
2014-08-26 06:17:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.count-warning {
|
2018-06-08 17:49:31 +08:00
|
|
|
background-color: dark-light-diff(
|
|
|
|
rgba($danger, 0.7),
|
|
|
|
$secondary,
|
|
|
|
50%,
|
|
|
|
-60%
|
|
|
|
);
|
FEATURE: Badge query validation, preview results, and EXPLAIN
Upon saving a badge or requesting a badge result preview,
BadgeGranter.contract_checks! will examine the provided badge SQL for
some contractual obligations - namely, the returned columns and use of
trigger parameters.
Saving the badge is wrapped in a transaction to make this easier, by
raising ActiveRecord::Rollback on a detected violation.
On the client, a modal view is added for the badge query sample run
results, named admin-badge-preview.
The preview action is moved up to the route.
The save action, on failure, triggers a 'saveError' action (also in the
route).
The preview action gains a new parameter, 'explain', which will give the
output of an EXPLAIN query for the badge sql, which can be used by forum
admins to estimate the cost of their badge queries.
The preview link is replaced by two links, one which omits (false) and
includes (true) the EXPLAIN query.
The Badge.save() method is amended to propogate errors.
Badge::Trigger gets some utility methods for use in the
BadgeGranter.contract_checks! method.
Additionally, extra checks outside of BadgeGranter.contract_checks! are
added in the preview() method, to cover cases of null granted_at
columns.
An uninitialized variable path is removed in the backfill() method.
TODO - it would be nice to be able to get the actual names of all
columns the provided query returns, so we could give more errors
2014-08-26 06:17:29 +08:00
|
|
|
margin: 0 0 7px 0;
|
|
|
|
padding: 10px 20px;
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.heading {
|
|
|
|
color: $danger;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-06 01:51:45 +08:00
|
|
|
// Groups area
|
|
|
|
.groups {
|
|
|
|
.ac-wrap {
|
|
|
|
width: 100% !important;
|
2017-10-11 04:07:46 +08:00
|
|
|
border-color: dark-light-choose($primary-low-mid, $secondary-high);
|
2015-01-06 01:51:45 +08:00
|
|
|
.item {
|
2015-12-28 11:20:00 +08:00
|
|
|
margin-right: 10px;
|
2015-01-06 01:51:45 +08:00
|
|
|
}
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.next,
|
|
|
|
.previous {
|
2015-01-06 01:51:45 +08:00
|
|
|
color: #333 !important;
|
|
|
|
&.disabled {
|
|
|
|
color: #aaa !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btn.add {
|
|
|
|
margin-top: 7px;
|
|
|
|
}
|
2015-01-22 03:52:48 +08:00
|
|
|
.controls {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
2017-03-10 17:15:49 +08:00
|
|
|
.content-list {
|
|
|
|
margin-right: 20px;
|
|
|
|
}
|
2015-01-06 01:51:45 +08:00
|
|
|
}
|
|
|
|
|
2013-03-15 00:28:35 +08:00
|
|
|
/* Dashboard */
|
|
|
|
|
|
|
|
.dashboard-left {
|
|
|
|
float: left;
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 60%;
|
2013-03-15 00:28:35 +08:00
|
|
|
}
|
2015-06-18 03:46:55 +08:00
|
|
|
|
2013-03-15 00:28:35 +08:00
|
|
|
.dashboard-right {
|
|
|
|
float: right;
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 40%;
|
2013-05-02 06:12:02 +08:00
|
|
|
.dashboard-stats {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2013-03-15 00:28:35 +08:00
|
|
|
}
|
|
|
|
|
2018-05-16 08:18:21 +08:00
|
|
|
.version-checks {
|
|
|
|
display: flex;
|
2018-05-16 21:37:40 +08:00
|
|
|
flex-wrap: wrap;
|
2018-05-16 08:18:21 +08:00
|
|
|
|
2018-05-17 03:06:23 +08:00
|
|
|
.section-title {
|
2018-05-16 08:18:21 +08:00
|
|
|
flex: 1 1 100%;
|
|
|
|
border-bottom: 1px solid $primary-low;
|
2018-06-08 17:49:31 +08:00
|
|
|
margin-bottom: 0.5em;
|
2018-05-16 08:18:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-03-15 00:28:35 +08:00
|
|
|
.version-check {
|
2018-05-16 08:18:21 +08:00
|
|
|
display: flex;
|
|
|
|
flex: 1 1 50%;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: flex-start;
|
|
|
|
align-self: flex-start;
|
|
|
|
justify-content: space-between;
|
2018-05-16 10:32:19 +08:00
|
|
|
padding: 10px 0 10px 0;
|
2018-05-16 08:18:21 +08:00
|
|
|
|
|
|
|
.upgrade-header {
|
|
|
|
flex: 1 1 100%;
|
|
|
|
@media screen and (max-width: 650px) {
|
2018-06-08 17:49:31 +08:00
|
|
|
margin: 0;
|
2018-05-16 21:37:40 +08:00
|
|
|
}
|
2018-05-16 08:18:21 +08:00
|
|
|
tr {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
background: transparent;
|
|
|
|
text-align: left;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
2014-09-12 02:45:35 +08:00
|
|
|
|
2018-05-16 08:18:21 +08:00
|
|
|
h2 {
|
|
|
|
flex: 1 1 100%;
|
2015-07-31 18:34:39 +08:00
|
|
|
}
|
|
|
|
|
2013-03-15 00:28:35 +08:00
|
|
|
.version-number {
|
2018-05-16 08:18:21 +08:00
|
|
|
font-size: $font-up-2;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-medium;
|
2018-05-16 12:23:02 +08:00
|
|
|
box-sizing: border-box;
|
2018-05-16 08:18:21 +08:00
|
|
|
font-weight: bold;
|
2018-05-16 12:23:02 +08:00
|
|
|
margin: 0 0 1em 0;
|
|
|
|
padding-right: 20px;
|
2018-05-17 05:18:13 +08:00
|
|
|
flex: 1 1 27%;
|
2018-05-16 08:18:21 +08:00
|
|
|
h3 {
|
|
|
|
flex: 1 0 auto;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
h4 {
|
2018-05-16 21:37:40 +08:00
|
|
|
font-size: $font-down-2;
|
2018-05-16 08:18:21 +08:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2013-03-20 01:51:09 +08:00
|
|
|
}
|
|
|
|
|
2018-05-16 08:18:21 +08:00
|
|
|
.version-status {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0 0 1em 0;
|
2018-05-17 05:18:13 +08:00
|
|
|
flex: 1 1 24%;
|
2018-05-16 21:37:40 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding-right: 20px;
|
2018-05-16 12:23:02 +08:00
|
|
|
min-width: 250px;
|
2018-05-16 08:18:21 +08:00
|
|
|
@include small-width {
|
|
|
|
max-width: unset;
|
|
|
|
}
|
|
|
|
.face {
|
2018-06-08 17:49:31 +08:00
|
|
|
margin: 0 0.75em 0 0;
|
2018-05-16 08:18:21 +08:00
|
|
|
font-size: $font-up-3;
|
|
|
|
}
|
2013-03-15 00:28:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.critical .version-notes .normal-note {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&.normal .version-notes .critical-note {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-4;
|
2013-03-15 00:28:35 +08:00
|
|
|
}
|
|
|
|
|
2013-11-05 01:51:01 +08:00
|
|
|
.up-to-date {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $success;
|
2013-03-15 00:28:35 +08:00
|
|
|
}
|
|
|
|
.updates-available {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $danger;
|
2013-03-15 00:28:35 +08:00
|
|
|
}
|
|
|
|
.critical-updates-available {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $danger;
|
2013-03-15 00:28:35 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.update-nag {
|
2017-07-28 03:03:41 +08:00
|
|
|
.d-icon {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-3;
|
2013-03-15 00:28:35 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-23 03:53:08 +08:00
|
|
|
table.api-keys {
|
|
|
|
margin-top: 10px;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
th {
|
|
|
|
text-align: left;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
td.key {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2013-10-23 03:53:08 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-03-08 00:07:59 +08:00
|
|
|
.dashboard-stats {
|
2018-05-16 08:18:21 +08:00
|
|
|
box-sizing: border-box;
|
2013-04-17 22:25:28 +08:00
|
|
|
margin-bottom: 30px;
|
2018-05-16 08:18:21 +08:00
|
|
|
flex: 1 1 50%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
&.version-check {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
&.detected-problems {
|
|
|
|
border-left: 1px solid $primary-low;
|
2018-05-16 10:32:19 +08:00
|
|
|
margin: 10px 0 0 0;
|
2018-05-16 08:18:21 +08:00
|
|
|
padding-left: 20px;
|
|
|
|
}
|
2013-04-17 06:37:35 +08:00
|
|
|
h4 {
|
|
|
|
font-weight: normal;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2018-05-16 08:18:21 +08:00
|
|
|
@media screen and (max-width: 650px) {
|
|
|
|
flex: 1 1 100%;
|
|
|
|
}
|
|
|
|
|
2013-03-08 00:07:59 +08:00
|
|
|
table {
|
2013-03-12 23:57:33 +08:00
|
|
|
width: 100%;
|
2013-03-08 00:07:59 +08:00
|
|
|
|
2013-04-17 22:46:27 +08:00
|
|
|
.title {
|
2017-07-28 03:03:41 +08:00
|
|
|
.d-icon {
|
2014-05-07 11:53:04 +08:00
|
|
|
color: $primary;
|
2013-04-17 22:46:27 +08:00
|
|
|
}
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-heart {
|
2015-07-22 19:19:15 +08:00
|
|
|
color: $love;
|
|
|
|
}
|
2013-04-17 22:46:27 +08:00
|
|
|
}
|
|
|
|
|
2013-03-08 00:07:59 +08:00
|
|
|
th {
|
|
|
|
font-weight: normal;
|
|
|
|
text-align: center;
|
2017-08-24 04:16:18 +08:00
|
|
|
background: $primary-low;
|
2013-03-08 00:07:59 +08:00
|
|
|
}
|
2013-04-17 06:37:35 +08:00
|
|
|
th.title {
|
|
|
|
text-align: left;
|
|
|
|
}
|
2013-03-20 02:17:32 +08:00
|
|
|
thead {
|
2013-04-23 23:48:26 +08:00
|
|
|
tr:hover > td {
|
2014-05-06 13:50:51 +08:00
|
|
|
background-color: $secondary;
|
2013-03-20 02:17:32 +08:00
|
|
|
}
|
|
|
|
}
|
2013-03-08 00:07:59 +08:00
|
|
|
|
|
|
|
td.value {
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
2013-03-31 02:07:25 +08:00
|
|
|
|
|
|
|
i {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&.high-trending-up,
|
|
|
|
&.trending-up {
|
2013-03-31 02:07:25 +08:00
|
|
|
i.up {
|
2015-04-03 06:42:02 +08:00
|
|
|
color: $success;
|
2013-03-31 02:07:25 +08:00
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
&.high-trending-down,
|
|
|
|
&.trending-down {
|
2013-03-31 02:07:25 +08:00
|
|
|
i.down {
|
2015-04-03 06:42:02 +08:00
|
|
|
color: $danger;
|
2013-03-31 02:07:25 +08:00
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.no-change {
|
|
|
|
i.down {
|
|
|
|
display: inline;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
2013-03-08 00:07:59 +08:00
|
|
|
}
|
2015-07-23 02:15:58 +08:00
|
|
|
|
|
|
|
tr.reverse-colors {
|
2018-06-08 17:49:31 +08:00
|
|
|
td.value.high-trending-down i.down,
|
|
|
|
td.value.trending-down i.down {
|
2015-07-23 02:15:58 +08:00
|
|
|
color: $success;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
td.value.high-trending-up i.up,
|
|
|
|
td.value.trending-up i.up {
|
2015-07-23 02:15:58 +08:00
|
|
|
color: $danger;
|
|
|
|
}
|
|
|
|
}
|
2013-03-08 00:07:59 +08:00
|
|
|
}
|
2013-03-16 04:17:19 +08:00
|
|
|
|
2013-03-20 11:18:00 +08:00
|
|
|
&.detected-problems {
|
2018-05-16 21:37:40 +08:00
|
|
|
display: flex;
|
2018-05-16 08:18:21 +08:00
|
|
|
margin-bottom: 30px;
|
2013-03-20 11:18:00 +08:00
|
|
|
|
|
|
|
.look-here {
|
2018-05-16 08:18:21 +08:00
|
|
|
margin: 10px 20px;
|
2013-03-20 11:18:00 +08:00
|
|
|
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-5;
|
2018-06-08 17:49:31 +08:00
|
|
|
color: $danger;
|
2013-03-20 11:18:00 +08:00
|
|
|
}
|
|
|
|
}
|
2018-05-16 08:18:21 +08:00
|
|
|
@media screen and (max-width: 650px) {
|
2018-06-08 17:49:31 +08:00
|
|
|
border-left: none;
|
|
|
|
border-top: 1px solid $primary-low;
|
|
|
|
padding: 20px 0 0 0;
|
|
|
|
.look-here {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2018-05-16 08:18:21 +08:00
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2013-03-20 11:18:00 +08:00
|
|
|
.problem-messages {
|
2018-05-16 08:18:21 +08:00
|
|
|
display: flex;
|
|
|
|
|
2013-04-05 04:16:58 +08:00
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2018-05-16 08:18:21 +08:00
|
|
|
|
2013-11-19 02:44:55 +08:00
|
|
|
.btn {
|
2017-08-24 04:16:18 +08:00
|
|
|
background: $primary-low;
|
2014-03-22 15:37:18 +08:00
|
|
|
}
|
|
|
|
ul {
|
|
|
|
margin-left: 0;
|
2018-05-16 08:18:21 +08:00
|
|
|
padding-left: 90px;
|
2018-06-08 17:49:31 +08:00
|
|
|
@media screen and (max-width: 650px) {
|
2018-05-16 08:18:21 +08:00
|
|
|
padding-left: 20px;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
li {
|
|
|
|
margin-bottom: 10px;
|
2014-09-08 10:46:04 +08:00
|
|
|
}
|
2014-03-22 15:37:18 +08:00
|
|
|
}
|
2018-05-16 08:18:21 +08:00
|
|
|
p.actions {
|
|
|
|
padding-left: 75px;
|
2018-06-08 17:49:31 +08:00
|
|
|
@media screen and (max-width: 650px) {
|
2018-05-16 08:18:21 +08:00
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2013-03-20 11:18:00 +08:00
|
|
|
}
|
|
|
|
|
2013-03-16 04:17:19 +08:00
|
|
|
&.totals {
|
2013-07-09 00:21:08 +08:00
|
|
|
table {
|
|
|
|
width: auto;
|
|
|
|
}
|
2013-04-23 23:48:26 +08:00
|
|
|
margin-top: 12px;
|
|
|
|
padding-left: 5px;
|
|
|
|
.value {
|
2013-07-09 00:21:08 +08:00
|
|
|
text-align: left;
|
2013-04-23 23:48:26 +08:00
|
|
|
font-weight: bold;
|
2013-07-09 00:21:08 +08:00
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 30px;
|
2013-03-16 04:17:19 +08:00
|
|
|
}
|
|
|
|
}
|
2013-03-16 06:08:46 +08:00
|
|
|
|
|
|
|
&.trust-levels {
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-bottom: 0;
|
2013-03-23 05:50:22 +08:00
|
|
|
table {
|
2014-03-06 14:14:51 +08:00
|
|
|
margin-bottom: 0;
|
2013-03-19 01:25:40 +08:00
|
|
|
}
|
2013-03-23 05:50:22 +08:00
|
|
|
td.value {
|
|
|
|
width: 45px;
|
|
|
|
}
|
2013-03-20 01:51:09 +08:00
|
|
|
}
|
2013-07-31 02:45:03 +08:00
|
|
|
|
|
|
|
.referred-topic-title {
|
2014-09-12 02:45:35 +08:00
|
|
|
width: 355px;
|
2018-06-08 17:49:31 +08:00
|
|
|
@include medium-width {
|
|
|
|
width: 305px;
|
|
|
|
}
|
|
|
|
@include small-width {
|
|
|
|
width: 265px;
|
|
|
|
}
|
2013-07-31 02:45:03 +08:00
|
|
|
}
|
2013-03-12 03:26:14 +08:00
|
|
|
}
|
|
|
|
|
2015-10-27 03:56:59 +08:00
|
|
|
.groups-bulk {
|
|
|
|
.control {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
}
|
2013-03-12 03:26:14 +08:00
|
|
|
|
2013-04-05 00:59:44 +08:00
|
|
|
.content-editor {
|
|
|
|
min-height: 500px;
|
|
|
|
|
2013-04-09 23:28:28 +08:00
|
|
|
float: left;
|
2018-06-08 17:49:31 +08:00
|
|
|
width: 54.054%;
|
2014-07-10 07:56:35 +08:00
|
|
|
margin-left: 1.8018%;
|
2013-04-09 23:28:28 +08:00
|
|
|
|
2013-04-05 00:59:44 +08:00
|
|
|
p.description {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $primary;
|
2013-04-05 00:59:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.controls {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea.plain {
|
|
|
|
width: 98%;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
|
2015-11-04 05:25:37 +08:00
|
|
|
.d-editor-input {
|
2013-04-05 00:59:44 +08:00
|
|
|
width: 98%;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ace-wrapper {
|
|
|
|
position: relative;
|
|
|
|
height: 600px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.ace_editor {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2013-05-09 15:37:34 +08:00
|
|
|
|
2016-06-16 01:49:57 +08:00
|
|
|
.hook-event {
|
|
|
|
display: inline-block;
|
|
|
|
width: 40%;
|
|
|
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
|
|
|
label {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0 0 5px 25px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-13 05:08:19 +08:00
|
|
|
.email-template {
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-05-09 15:37:34 +08:00
|
|
|
.row.groups {
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="text"] {
|
2013-05-09 15:37:34 +08:00
|
|
|
width: 500px;
|
|
|
|
}
|
|
|
|
input#group-users {
|
|
|
|
width: 600px;
|
|
|
|
}
|
|
|
|
}
|
2013-08-02 09:30:13 +08:00
|
|
|
|
2013-08-09 05:16:07 +08:00
|
|
|
// Logs
|
2013-08-02 09:30:13 +08:00
|
|
|
|
2013-10-23 04:30:30 +08:00
|
|
|
.admin-logs-table {
|
|
|
|
input.ember-text-field {
|
|
|
|
padding: 1px 4px;
|
|
|
|
}
|
2013-10-24 00:55:06 +08:00
|
|
|
.btn {
|
|
|
|
padding: 2px 8px;
|
2013-12-10 05:27:49 +08:00
|
|
|
.fa {
|
2013-10-24 00:55:06 +08:00
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
}
|
2013-10-23 04:30:30 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.screened-emails,
|
|
|
|
.screened-urls,
|
|
|
|
.screened-ip-addresses {
|
|
|
|
.email,
|
|
|
|
.url,
|
|
|
|
.domain {
|
2013-08-23 07:04:17 +08:00
|
|
|
width: 300px;
|
2013-08-09 05:16:07 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.action,
|
|
|
|
.match_count,
|
|
|
|
.last_match_at,
|
|
|
|
.created_at {
|
2013-10-23 04:30:30 +08:00
|
|
|
text-align: center;
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 9.9099%;
|
2013-10-23 04:30:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-25 05:18:10 +08:00
|
|
|
.screened-ip-address-form {
|
|
|
|
margin-left: 6px;
|
|
|
|
.combobox {
|
|
|
|
width: 130px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.screened-emails,
|
|
|
|
.screened-urls {
|
2013-10-23 04:30:30 +08:00
|
|
|
.ip_address {
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 9.9099%;
|
2013-08-02 09:30:13 +08:00
|
|
|
text-align: center;
|
|
|
|
}
|
2013-08-08 04:04:12 +08:00
|
|
|
}
|
2013-10-23 04:30:30 +08:00
|
|
|
.screened-ip-addresses {
|
|
|
|
.ip_address {
|
|
|
|
width: 150px;
|
|
|
|
text-align: left;
|
|
|
|
input {
|
|
|
|
width: 130px;
|
|
|
|
}
|
|
|
|
}
|
2013-10-24 00:55:06 +08:00
|
|
|
.col.actions {
|
2013-10-23 04:30:30 +08:00
|
|
|
width: 275px;
|
2013-10-24 00:55:06 +08:00
|
|
|
padding-top: 4px;
|
2013-10-23 04:30:30 +08:00
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-08-08 04:04:12 +08:00
|
|
|
|
|
|
|
.staff-actions {
|
2013-08-09 06:35:14 +08:00
|
|
|
width: 100%;
|
2015-08-02 06:00:39 +08:00
|
|
|
min-width: 990px;
|
2013-08-08 04:04:12 +08:00
|
|
|
.action {
|
2018-06-08 17:49:31 +08:00
|
|
|
width: 10.81%;
|
2013-08-08 04:04:12 +08:00
|
|
|
}
|
2013-08-20 04:58:38 +08:00
|
|
|
.staff_user {
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 9.009%;
|
2013-08-09 06:35:14 +08:00
|
|
|
}
|
2013-08-20 04:58:38 +08:00
|
|
|
.subject {
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 18.018%;
|
2013-08-20 04:58:38 +08:00
|
|
|
}
|
2013-08-09 06:35:14 +08:00
|
|
|
.created_at {
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 4.5045%;
|
2013-08-09 06:35:14 +08:00
|
|
|
}
|
|
|
|
.context {
|
2014-07-10 07:56:35 +08:00
|
|
|
width: 18.018%;
|
2013-08-08 04:04:12 +08:00
|
|
|
}
|
|
|
|
.created_at {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.details {
|
2013-08-20 04:58:38 +08:00
|
|
|
width: 300px;
|
2013-08-08 04:04:12 +08:00
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2013-08-09 06:35:14 +08:00
|
|
|
&.value {
|
|
|
|
height: 70px;
|
|
|
|
}
|
2013-08-08 04:04:12 +08:00
|
|
|
}
|
|
|
|
}
|
2013-08-09 05:16:07 +08:00
|
|
|
|
2013-08-10 04:58:57 +08:00
|
|
|
.staff-action-logs-controls {
|
|
|
|
margin: 0 0 20px 6px;
|
|
|
|
a.filter {
|
|
|
|
display: inline-block;
|
2017-10-11 04:07:46 +08:00
|
|
|
background-color: dark-light-choose($primary-low-mid, $secondary-high);
|
2013-08-10 04:58:57 +08:00
|
|
|
padding: 3px 10px;
|
|
|
|
border-radius: 3px;
|
2014-03-03 14:16:30 +08:00
|
|
|
|
2014-05-07 11:53:04 +08:00
|
|
|
color: $primary;
|
2013-08-10 04:58:57 +08:00
|
|
|
&:hover {
|
2014-05-07 11:53:04 +08:00
|
|
|
color: $primary;
|
2017-08-24 04:16:18 +08:00
|
|
|
background-color: $primary-low;
|
2013-08-10 04:58:57 +08:00
|
|
|
}
|
|
|
|
.label {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
i {
|
|
|
|
margin-left: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-09 05:16:07 +08:00
|
|
|
// Ember.ListView
|
|
|
|
|
|
|
|
.ember-list-view {
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.ember-list-item-view {
|
|
|
|
position: absolute;
|
|
|
|
}
|
2013-08-09 06:35:14 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.staff-actions,
|
|
|
|
.screened-emails,
|
|
|
|
.screened-urls,
|
|
|
|
.screened-ip-addresses,
|
|
|
|
.permalinks,
|
|
|
|
.search-logs-list,
|
|
|
|
.web-hook-events {
|
2017-10-11 04:07:46 +08:00
|
|
|
border-bottom: dotted 1px dark-light-choose($primary-low-mid, $secondary);
|
2013-08-09 06:35:14 +08:00
|
|
|
|
|
|
|
.heading-container {
|
|
|
|
width: 100%;
|
2017-08-24 04:16:18 +08:00
|
|
|
background-color: $primary-low;
|
2013-08-09 06:35:14 +08:00
|
|
|
}
|
|
|
|
.col.heading {
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 4px 0;
|
|
|
|
}
|
|
|
|
.col {
|
|
|
|
display: inline-block;
|
|
|
|
padding-top: 6px;
|
|
|
|
vertical-align: top;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ember-list-item-view {
|
|
|
|
width: 100%;
|
2017-08-24 04:16:18 +08:00
|
|
|
border-top: solid 1px $primary-low;
|
2013-08-09 06:35:14 +08:00
|
|
|
}
|
|
|
|
}
|
2013-08-21 22:49:35 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.search-logs-list {
|
2017-11-15 08:13:50 +08:00
|
|
|
.col {
|
|
|
|
text-align: center;
|
2017-11-29 01:54:27 +08:00
|
|
|
width: 15%;
|
2017-11-15 08:13:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.col.term {
|
2017-11-29 01:54:27 +08:00
|
|
|
width: 45%;
|
2017-11-15 15:28:40 +08:00
|
|
|
text-align: left;
|
2017-11-15 08:13:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-21 22:49:35 +08:00
|
|
|
.log-details-modal {
|
2017-11-21 01:33:02 +08:00
|
|
|
pre {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
max-height: 250px;
|
|
|
|
}
|
|
|
|
|
2013-08-21 22:49:35 +08:00
|
|
|
.modal-tab {
|
|
|
|
width: 95%;
|
|
|
|
}
|
2014-01-02 23:22:04 +08:00
|
|
|
}
|
2014-01-24 05:40:10 +08:00
|
|
|
|
2014-09-25 08:19:26 +08:00
|
|
|
.tl3-requirements {
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-check {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $success;
|
2014-01-24 05:40:10 +08:00
|
|
|
}
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-times {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $danger;
|
2014-01-24 05:40:10 +08:00
|
|
|
}
|
2014-02-13 12:36:10 +08:00
|
|
|
}
|
|
|
|
|
2015-07-03 00:45:17 +08:00
|
|
|
.admin-plugins .col-enabled {
|
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
|
2018-04-06 10:54:58 +08:00
|
|
|
.admin-plugins-official-badge {
|
|
|
|
color: $success;
|
|
|
|
}
|
|
|
|
|
2014-02-13 12:36:10 +08:00
|
|
|
// Backups
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
$rollback: #3d9970;
|
2014-02-13 12:36:10 +08:00
|
|
|
$rollback-dark: darken($rollback, 10%) !default;
|
|
|
|
$rollback-darker: darken($rollback, 20%) !default;
|
|
|
|
|
|
|
|
.btn-rollback {
|
2014-05-06 13:50:51 +08:00
|
|
|
color: $secondary;
|
2014-02-13 12:36:10 +08:00
|
|
|
background: $rollback;
|
|
|
|
&:hover {
|
|
|
|
background: $rollback-dark;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
@include linear-gradient($rollback-darker, $rollback-dark);
|
|
|
|
}
|
|
|
|
&[disabled] {
|
|
|
|
background: $rollback;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.admin-backups-logs {
|
|
|
|
max-height: 500px;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
2014-02-22 08:41:01 +08:00
|
|
|
|
|
|
|
button.ru {
|
|
|
|
position: relative;
|
|
|
|
min-width: 110px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ru-progress {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 100%;
|
|
|
|
background: rgba(0, 175, 0, 0.3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-uploading:hover .ru-progress {
|
|
|
|
background: rgba(200, 0, 0, 0.3);
|
|
|
|
}
|
2014-03-19 07:36:02 +08:00
|
|
|
|
|
|
|
.invisible {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2014-07-10 07:56:35 +08:00
|
|
|
|
2014-08-21 00:48:56 +08:00
|
|
|
.start-backup-modal {
|
|
|
|
.btn {
|
|
|
|
margin: 10px 0 10px 5px;
|
|
|
|
}
|
|
|
|
.btn:first-of-type {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
@media all and (min-width: 320px) and (max-width: 500px) {
|
|
|
|
.full-width {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.site-settings-nav {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.site-settings-detail {
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
2014-07-23 04:30:32 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.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
|
|
|
|
|
|
|
.admin-container {
|
|
|
|
h2 {
|
|
|
|
float: left;
|
2018-06-08 17:49:31 +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
|
|
|
|
|
|
|
.badge-groupings {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 10px 3px;
|
|
|
|
li {
|
|
|
|
padding: 6px 0;
|
|
|
|
width: 600px;
|
|
|
|
border-bottom: 1px solid #dfdfdf;
|
|
|
|
}
|
|
|
|
.actions {
|
|
|
|
float: right;
|
2015-12-27 06:58:54 +08:00
|
|
|
.btn {
|
|
|
|
padding: 3px 6px;
|
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
|
|
|
}
|
|
|
|
.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
|
|
|
|
|
|
|
.user-fields {
|
|
|
|
h2 {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-field {
|
|
|
|
padding: 10px;
|
|
|
|
margin-bottom: 10px;
|
2017-08-24 04:16:18 +08:00
|
|
|
border-bottom: 1px solid $primary-low;
|
2014-09-25 23:32:08 +08:00
|
|
|
|
|
|
|
.form-display {
|
2014-09-27 02:48:34 +08:00
|
|
|
width: 25%;
|
2014-09-25 23:32:08 +08:00
|
|
|
display: inline-block;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.form-element,
|
|
|
|
.form-element-desc {
|
2014-09-25 23:32:08 +08:00
|
|
|
float: left;
|
2015-07-29 00:29:40 +08:00
|
|
|
min-height: 30px;
|
2015-07-28 02:22:12 +08:00
|
|
|
padding: 0.25em 0;
|
|
|
|
|
2015-07-29 00:29:40 +08:00
|
|
|
&.input-area {
|
|
|
|
width: 75%;
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="text"] {
|
2015-07-29 00:29:40 +08:00
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.label-area {
|
|
|
|
width: 25%;
|
|
|
|
label {
|
|
|
|
margin: 0.5em 1em 0 0;
|
|
|
|
text-align: right;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
2014-09-25 23:32:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.controls {
|
|
|
|
float: right;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clearfix {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
|
|
|
|
// Permalinks
|
|
|
|
|
|
|
|
.permalinks {
|
2018-06-08 17:49:31 +08:00
|
|
|
.url,
|
|
|
|
.topic,
|
|
|
|
.category,
|
|
|
|
.external_url,
|
|
|
|
.post {
|
2015-07-17 18:23:48 +08:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
.url {
|
|
|
|
width: 200px;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.topic,
|
|
|
|
.post,
|
|
|
|
.external_url {
|
2015-07-20 20:10:22 +08:00
|
|
|
width: 180px;
|
2015-07-15 20:54:28 +08:00
|
|
|
}
|
2015-07-20 20:10:22 +08:00
|
|
|
.category {
|
|
|
|
width: 140px;
|
2015-07-17 18:23:48 +08:00
|
|
|
}
|
2015-07-20 20:10:22 +08:00
|
|
|
.action {
|
2015-07-15 20:54:28 +08:00
|
|
|
text-align: center;
|
2015-07-17 18:23:48 +08:00
|
|
|
width: 8%;
|
2015-07-15 20:54:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.permalink-title {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2015-08-02 06:00:39 +08:00
|
|
|
|
2015-08-21 01:43:12 +08:00
|
|
|
// embedding
|
|
|
|
|
|
|
|
.embeddable-hosts {
|
|
|
|
table {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
margin-bottom: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.embedding-secondary {
|
|
|
|
h3 {
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
|
|
|
margin-bottom: 2em;
|
|
|
|
|
|
|
|
.embed-setting {
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="text"] {
|
2015-08-21 01:43:12 +08:00
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
margin: 0.75em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
p.description {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-08-21 01:43:12 +08:00
|
|
|
margin-bottom: 1em;
|
|
|
|
max-width: 700px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-30 23:04:17 +08:00
|
|
|
.embedding td input {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2016-01-19 07:57:55 +08:00
|
|
|
// Emails
|
|
|
|
|
|
|
|
.email-list {
|
|
|
|
.filters input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.time {
|
|
|
|
width: 50px;
|
|
|
|
}
|
2016-04-15 08:38:02 +08:00
|
|
|
.reply-key {
|
|
|
|
display: block;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-high);
|
2016-04-15 08:38:02 +08:00
|
|
|
}
|
2016-01-19 07:57:55 +08:00
|
|
|
.username div {
|
|
|
|
max-width: 180px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
.addresses p {
|
|
|
|
margin: 2px 0;
|
|
|
|
max-width: 200px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-11 05:00:27 +08:00
|
|
|
.incoming-emails {
|
|
|
|
.control-group {
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
|
|
|
.controls {
|
|
|
|
margin-left: 110px;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
margin: 5px 10px;
|
|
|
|
}
|
|
|
|
.error-description {
|
|
|
|
color: #919191;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2016-02-11 05:00:27 +08:00
|
|
|
}
|
|
|
|
hr {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
label {
|
|
|
|
font-weight: bold;
|
|
|
|
float: left;
|
|
|
|
width: 100px;
|
|
|
|
text-align: right;
|
|
|
|
margin: 0 10px;
|
|
|
|
}
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0 10px;
|
|
|
|
}
|
|
|
|
textarea {
|
|
|
|
width: 95%;
|
|
|
|
height: 150px;
|
2016-02-11 05:43:00 +08:00
|
|
|
font-family: monospace;
|
|
|
|
box-shadow: none;
|
2016-02-11 05:00:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-25 01:58:06 +08:00
|
|
|
.admin-list-item {
|
|
|
|
width: 100%;
|
|
|
|
border-top: 1px solid #e9e9e9;
|
|
|
|
padding: 0.25em 0;
|
|
|
|
}
|
|
|
|
|
2016-06-16 01:49:57 +08:00
|
|
|
// Webhook
|
|
|
|
|
|
|
|
.web-hook-container {
|
|
|
|
> p {
|
|
|
|
padding-bottom: 10px;
|
|
|
|
border-bottom: darken($secondary, 10%) 1px solid;
|
|
|
|
}
|
|
|
|
.filters {
|
|
|
|
margin: 5px 0;
|
|
|
|
padding-bottom: 5px;
|
|
|
|
border-bottom: darken($secondary, 5%) 1px solid;
|
|
|
|
}
|
|
|
|
.instructions {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
.subscription-choice {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.web-hook-direction {
|
|
|
|
button {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.web-hook-events {
|
|
|
|
li {
|
|
|
|
padding: 2px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.col {
|
|
|
|
display: inline-block;
|
|
|
|
padding-top: 6px;
|
|
|
|
vertical-align: top;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.col.first {
|
2016-09-15 12:57:04 +08:00
|
|
|
width: 90px;
|
2016-06-16 01:49:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.col.event-id {
|
|
|
|
width: 300px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.col.timestamp {
|
|
|
|
width: 150px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.col.completion {
|
|
|
|
width: 220px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.col.actions {
|
|
|
|
width: 305px;
|
|
|
|
padding-top: 0;
|
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-15 12:57:04 +08:00
|
|
|
.col.heading.actions {
|
|
|
|
padding: 4px 0;
|
|
|
|
}
|
|
|
|
|
2016-06-16 01:49:57 +08:00
|
|
|
.details {
|
|
|
|
display: block;
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
label {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2016-06-16 01:49:57 +08:00
|
|
|
}
|
2018-02-27 10:34:46 +08:00
|
|
|
|
|
|
|
&.content-list {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2016-06-16 01:49:57 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 07:54:53 +08:00
|
|
|
.web-hook-events-listing {
|
|
|
|
margin-top: 15px;
|
|
|
|
.alert {
|
|
|
|
margin: 15px 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-25 04:38:22 +08:00
|
|
|
.email-preview-digest {
|
|
|
|
.controls {
|
|
|
|
margin-left: 20px;
|
|
|
|
label {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.preview-output iframe {
|
|
|
|
width: 100%;
|
|
|
|
height: 600px;
|
|
|
|
border-width: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-29 04:56:44 +08:00
|
|
|
.watched-word-box {
|
|
|
|
display: inline-block;
|
|
|
|
width: 250px;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.watched-words-list {
|
2018-02-27 05:35:43 +08:00
|
|
|
margin-top: 20px;
|
2017-06-29 04:56:44 +08:00
|
|
|
}
|
|
|
|
.watched-word {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2017-07-28 03:03:41 +08:00
|
|
|
.d-icon {
|
2017-06-29 04:56:44 +08:00
|
|
|
margin-right: 0.25em;
|
|
|
|
color: dark-light-diff($primary, $secondary, 50%, -50%);
|
|
|
|
}
|
2017-07-28 03:03:41 +08:00
|
|
|
&:hover .d-icon {
|
2017-06-29 04:56:44 +08:00
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.watched-word-form {
|
|
|
|
display: inline-block;
|
|
|
|
.success-message {
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.watched-words-uploader {
|
|
|
|
float: right;
|
|
|
|
text-align: right;
|
|
|
|
.instructions {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2017-06-29 04:56:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.watched-words-detail {
|
|
|
|
.about {
|
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 40px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-02 06:00:39 +08:00
|
|
|
// Mobile specific styles
|
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 .admin-controls {
|
|
|
|
padding: 10px 10px 9px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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
|
|
|
}
|
|
|
|
|
2015-08-21 04:30:34 +08:00
|
|
|
.cboxcontainer {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 8px;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
|
|
|
* {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
display: inline-block;
|
|
|
|
border: 1px solid $tertiary;
|
|
|
|
}
|
|
|
|
&.primary {
|
|
|
|
background: $primary;
|
|
|
|
}
|
|
|
|
&.secondary {
|
|
|
|
background: $secondary;
|
|
|
|
}
|
|
|
|
}
|
2017-04-12 22:52:52 +08:00
|
|
|
|
|
|
|
.inline-edit label {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.admin-reports,
|
|
|
|
.dashboard-next {
|
2018-05-18 04:44:33 +08:00
|
|
|
&.admin-contents {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.cbox0 {
|
|
|
|
background: blend-primary-secondary(0%);
|
|
|
|
}
|
|
|
|
.cbox10 {
|
|
|
|
background: blend-primary-secondary(10%);
|
|
|
|
}
|
|
|
|
.cbox20 {
|
|
|
|
background: blend-primary-secondary(20%);
|
|
|
|
}
|
|
|
|
.cbox30 {
|
|
|
|
background: blend-primary-secondary(30%);
|
|
|
|
}
|
|
|
|
.cbox40 {
|
|
|
|
background: blend-primary-secondary(40%);
|
|
|
|
}
|
|
|
|
.cbox50 {
|
|
|
|
background: blend-primary-secondary(50%);
|
|
|
|
}
|
|
|
|
.cbox60 {
|
|
|
|
background: blend-primary-secondary(60%);
|
|
|
|
}
|
|
|
|
.cbox70 {
|
|
|
|
background: blend-primary-secondary(70%);
|
|
|
|
}
|
|
|
|
.cbox80 {
|
|
|
|
background: blend-primary-secondary(80%);
|
|
|
|
}
|
|
|
|
.cbox90 {
|
|
|
|
background: blend-primary-secondary(90%);
|
|
|
|
}
|
|
|
|
.cbox100 {
|
|
|
|
background: blend-primary-secondary(100%);
|
|
|
|
}
|
|
|
|
.cbox5 {
|
|
|
|
background: blend-primary-secondary(5%);
|
|
|
|
}
|
|
|
|
.cbox7 {
|
|
|
|
background: blend-primary-secondary(7%);
|
|
|
|
}
|
|
|
|
.cbox15 {
|
|
|
|
background: blend-primary-secondary(15%);
|
|
|
|
}
|
|
|
|
.cbox17 {
|
|
|
|
background: blend-primary-secondary(17%);
|
|
|
|
}
|
|
|
|
.cbox25 {
|
|
|
|
background: blend-primary-secondary(25%);
|
|
|
|
}
|
|
|
|
.cbox95 {
|
|
|
|
background: blend-primary-secondary(95%);
|
|
|
|
}
|
|
|
|
.cbox85 {
|
|
|
|
background: blend-primary-secondary(85%);
|
|
|
|
}
|
|
|
|
.cbox75 {
|
|
|
|
background: blend-primary-secondary(75%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dbox0 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 0%, -0%);
|
|
|
|
}
|
|
|
|
.dbox10 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 10%, -10%);
|
|
|
|
}
|
|
|
|
.dbox20 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 20%, -20%);
|
|
|
|
}
|
|
|
|
.dbox30 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 30%, -30%);
|
|
|
|
}
|
|
|
|
.dbox40 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 40%, -40%);
|
|
|
|
}
|
|
|
|
.dbox50 {
|
|
|
|
background: blend-primary-secondary(50%);
|
|
|
|
}
|
|
|
|
.dbox60 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 60%, -60%);
|
|
|
|
}
|
|
|
|
.dbox70 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 70%, -70%);
|
|
|
|
}
|
|
|
|
.dbox80 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 80%, -80%);
|
|
|
|
}
|
|
|
|
.dbox90 {
|
|
|
|
background: $primary-low;
|
|
|
|
}
|
|
|
|
.dbox100 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 100%, -100%);
|
|
|
|
}
|
|
|
|
.dbox5 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 5%, -5%);
|
|
|
|
}
|
|
|
|
.dbox15 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 15%, -15%);
|
|
|
|
}
|
|
|
|
.dbox25 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 25%, -25%);
|
|
|
|
}
|
|
|
|
.dbox95 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 95%, -95%);
|
|
|
|
}
|
|
|
|
.dbox85 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 85%, -85%);
|
|
|
|
}
|
|
|
|
.dbox75 {
|
|
|
|
background: dark-light-diff($primary, $secondary, 75%, -75%);
|
|
|
|
}
|