commento/frontend/sass/dashboard-main.scss

770 lines
12 KiB
SCSS
Raw Normal View History

2018-06-04 00:06:17 +08:00
@import "colors-main.scss";
@import "common-main.scss";
@import "checkbox.scss";
@import "button.scss";
2018-06-04 00:06:17 +08:00
.global-error, .global-ok {
position: absolute;
bottom: 0px;
left: 0px;
margin: 30px;
padding: 5px;
border: 1px solid $red-6;
background: $red-6;
color: white;
display: none;
z-index: 80000;
}
.global-ok {
border: 1px solid $green-7;
background: $green-7;
}
body {
height: 100%;
}
.tabs-container {
ul.tabs {
margin: 0px;
padding: 0px;
list-style: none;
border-bottom: 1px solid $gray-1;
2018-06-04 00:06:17 +08:00
li {
font-weight: bold;
color: $gray-7;
font-size: 14px;
2018-06-04 00:06:17 +08:00
background: none;
display: inline-block;
padding: 10px 15px;
cursor: pointer;
transition: all 0.1s;
border-bottom: 1px solid transparent;
}
li.current {
transition: all 0.1s;
background: $gray-1;
color: $blue-7;
}
li.current:hover {
background: $gray-1;
color: $blue-7;
2018-06-04 00:06:17 +08:00
}
}
.content{
display: none;
2019-01-31 12:47:29 +08:00
padding: 12px;
2018-06-04 00:06:17 +08:00
.pitch {
color: $gray-6;
margin-bottom: 24px;
line-height: 22px;
a { color: $blue-6; }
a:hover { color: $blue-6; }
}
}
.content.current{
display: inherit;
}
}
.action-buttons-container {
.action-buttons {
.action-button {
padding: 8px 16px 8px 16px;
display: flex;
border: 1px solid $gray-2;
margin: 8px;
.left {
padding: 8px;
.title {
font-weight: bold;
color: $gray-7;
font-size: 14px;
}
.subtitle {
color: $gray-6;
font-size: 14px;
}
}
.right {
float: right;
height: 100%;
margin: auto;
}
}
}
}
@import "email-main.scss";
2018-06-04 00:06:17 +08:00
.mod-emails-container {
display: flex;
justify-content: center;
border-radius: 3px;
margin-top: 24px;
.content {
display: block;
padding: 0px;
border: 1px solid $gray-2;
border-top: 0px solid transparent;
min-width: 550px;
.mod-email {
display: block;
height: 42px;
border-top: 1px solid $gray-2;
.date,
.delete,
.email {
display: flex;
align-items: center;
margin: 0px 12px;
height: 100%;
}
.email {
float: left;
}
.date {
float: right;
color: $gray-4;
}
.delete {
float: right;
color: $red-6;
cursor: pointer;
}
.delete:hover {
color: $red-7;
}
}
}
}
.dashboard-container {
position: relative;
top: 72px;
width: 100%;
height: calc(100% - 94px);
.pane-left {
padding-top: 20px;
position: absolute;
left: 0px;
border-right: 1px solid $gray-1;
width: 240px;
height: 100%;
.tree {
opacity: 0.4;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
.tree-svg {
margin-bottom: 20px;
width: 100px;
}
}
}
.pane-middle {
padding-top: 20px;
position: absolute;
left: 240px;
border-right: 1px solid $gray-1;
width: 280px;
height: 100%;
padding-left: 1px;
}
.pane-right {
position: absolute;
left: 520px;
width: calc(100% - 520px);
height: 100%;
overflow-y: auto;
.hidden {
display: none;
}
.view {
padding: 25px;
padding-top: 35px;
}
.view-inside {
display: flex;
justify-content: center;
}
.tiny-view {
font-size: 15px;
width: 35%;
min-width: 400px;
max-width: 450px;
}
.small-view {
font-size: 15px;
width: 50%;
min-width: 400px;
max-width: 500px;
}
.small-mid-view {
font-size: 15px;
width: 70%;
2019-01-31 12:47:29 +08:00
max-width: 600px;
2018-06-04 00:06:17 +08:00
}
.mid-view {
font-size: 15px;
width: 100%;
max-width: 700px;
}
.large-view {
font-size: 15px;
width: 100%;
max-width: 750px;
}
.center {
text-align: center;
}
}
.select-a-domain {
padding: 20px;
text-align: center;
color: $gray-5;
}
.pane-setting {
width: 100%;
height: 54px;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.2s;
color: $gray-7;
.setting-title, .setting-subtitle {
display: block;
}
.setting-title {
font-weight: bold;
}
.setting-subtitle {
color: $gray-6;
2018-06-04 00:06:17 +08:00
}
.super-setting {
display: flex;
.super-setting-title {
display: inline;
display: flex;
align-items: center;
font-size: 24px;
}
.super-setting-text {
padding-left: 5px;
display: flex;
align-items: center;
line-height: 32px;
height: 45px;
}
}
}
.pane-setting:hover {
color: $gray-6;
background: $gray-1;
2018-06-04 00:06:17 +08:00
}
.selected {
color: $blue-7;
background: $gray-2;
2018-06-04 00:06:17 +08:00
}
.selected:hover {
color: $blue-7;
background: $gray-2;
2018-06-04 00:06:17 +08:00
}
}
2019-01-31 15:06:11 +08:00
.normal-text {
font-size: 15px;
color: $gray-7;
2019-01-31 15:06:11 +08:00
line-height: 22px;
margin-bottom: 8px;
2018-06-04 00:06:17 +08:00
a {
color: $blue-6;
border-bottom: 1px solid $blue-6;
}
ul {
list-style: none;
}
li {
position: relative;
2019-01-31 15:06:11 +08:00
margin-bottom: 5px;
2018-06-04 00:06:17 +08:00
}
li::before {
content: '';
display: inline-block;
width: 4px;
height: 4px;
border: solid $gray-7;
border-width: 0 2px 2px 0;
transform: rotate(-45deg);
margin-left: 12px;
margin-right: 12px;
margin-bottom: 2px;
position: absolute;
left: -35px;
top: 10px;
}
.subtext-container {
display: flex;
justify-content: center;
margin: 8px;
padding-bottom: 16px;
.subtext {
max-width: 500px;
font-size: 13px;
line-height: 17px;
text-align: center;
a {
border: none;
}
2018-06-04 00:06:17 +08:00
}
}
}
.question {
padding: 8px 0px 8px 0px;
margin: 8px 0px 8px 0px;
display: flex;
width: 100%;
.title {
font-weight: bold;
color: $gray-7;
font-size: 14px;
width: 35%;
padding-top: 12px;
}
.answer {
font-size: 14px;
width: 100%;
}
}
.warning {
color: $orange-8;
font-weight: bold;
}
2018-06-04 00:06:17 +08:00
.float-right {
position: absolute;
right: 10px;
}
.modal-window {
position: fixed;
background-color: rgba(82, 95, 127, 0.4);
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 999;
opacity: 0;
pointer-events: none;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
transition: all 0.2s;
.inside {
border: 1px solid white;
border-radius: 6px;
width: 500px;
position: relative;
margin: 10% auto;
background: $gray-0;
color: #444;
}
.modal-error-box {
width: 100%;
color: $red-6;
text-align: center;
margin-bottom: 30px;
font-weight: bold;
}
.modal-title {
padding-top: 15px;
width: 100%;
text-align: center;
font-size: 20px;
}
.modal-subtitle {
text-align: center;
color: $gray-6;
padding: 16px;
}
.modal-contents {
padding: 12px;
min-height: 48px;
}
}
.modal-window:target {
opacity: 1;
pointer-events: auto;
}
.modal-close {
position: absolute;
width: 22px;
height: 22px;
top: 10px;
right: 10px;
background-image: url('data:image/svg+xml;utf8,<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="22px" height="22px"><g id="Home-(v2)" fill="none" fill-rule="evenodd"><g id="Artboard-3" fill="%23cfd7df"><path d="M11 9.55L7.75 6.3A1.02 1.02 0 0 0 6.3 7.75L9.55 11 6.3 14.25a1.02 1.02 0 0 0 1.45 1.45L11 12.45l3.25 3.25a1.02 1.02 0 0 0 1.45-1.45L12.45 11l3.25-3.25a1.02 1.02 0 0 0-1.45-1.45L11 9.55zM11 22a11 11 0 1 1 0-22 11 11 0 0 1 0 22z"/></g></g></svg>');
2018-06-04 00:06:17 +08:00
cursor: pointer;
}
.modal-close:hover {
color: #000;
}
.box {
padding: 6px;
margin-bottom: 25px;
.box-title {
padding: 6px;
padding-top: 0px;
font-size: 19px;
}
.box-subtitle {
font-size: 14px;
padding: 6px;
color: $gray-6;
margin-bottom: 20px;
}
.gray {
position: absolute;
bottom: 0px;
color: $gray-6;
opacity: 0.8;
a { color: $gray-6; border: none; }
a:hover { color: $gray-6; border: none; }
}
.gray:hover {
opacity: 1;
}
.row {
.gray-input {
background: $gray-0;
}
}
}
.row {
padding-left: 8px;
padding-right: 8px;
2019-01-31 12:47:29 +08:00
margin-top: 12px;
margin-bottom: 12px;
2018-06-04 00:06:17 +08:00
border-bottom: 1px solid $gray-2;
.label {
display: inline-block;
color: $gray-5;
width: 100%;
font-size: 12px;
text-transform: uppercase;
}
.input {
font-size: 15px;
display: inline-block;
margin: 0;
padding: 0;
width: 100%;
color: #32325d;
border: none;
outline: none;
line-height: 28px;
background: $gray-0;
}
.input::placeholder {
color: $gray-4;
}
.monospace {
font-family: "Source Code Pro", monospace;
font-size: 11px;
}
2018-06-04 00:06:17 +08:00
}
.no-border {
border: none;
}
.indent {
2019-01-31 12:47:29 +08:00
margin-top: 0px;
padding-left: 35px;
}
2018-06-04 00:06:17 +08:00
.stat {
-webkit-box-shadow: 0 7px 14px 0 rgba(50,50,93,.1), 0 3px 6px 0 rgba(0,0,0,.07);
-moz-box-shadow: 0 7px 14px 0 rgba(50,50,93,.1), 0 3px 6px 0 rgba(0,0,0,.07);
box-shadow: 0 7px 14px 0 rgba(50,50,93,.1), 0 3px 6px 0 rgba(0,0,0,.07);
margin: 20px;
padding: 20px;
display: block;
text-align: center;
width: calc(100% - 80px);
background: white;
border-radius: 3px;
.number {
display: flex;
justify-content: center;
line-height: 42px;
.digits {
display: table-cell;
font-size: 48px;
font-weight: 200;
}
.gray-digits {
color: $gray-3;
}
.gray-7-digits {
color: $gray-7;
}
}
.text {
text-transform: uppercase;
2019-01-31 12:47:29 +08:00
color: $gray-6;
2018-06-04 00:06:17 +08:00
}
}
.center {
text-align: center;
}
.center-title {
font-size: 32px;
font-weight: 300;
margin-bottom: 32px;
}
.text {
color: $gray-6;
line-height: 25px;
}
foreignObject {
white-space: nowrap;
}
.all-done {
margin-top: 40px;
color: $gray-5;
font-size :15px;
font-weight: 400;
}
.mod-button {
width: fit-content;
line-height: 24px;
color: $gray-6;
background: white;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.mod-button:hover {
background: white;
}
.red-button {
color: $red-8;
2018-06-04 00:06:17 +08:00
}
.red-button:hover {
color: $red-7;
2018-06-04 00:06:17 +08:00
}
.green-button {
color: $green-7;
}
.green-button:hover {
color: $green-7;
}
.green-button:disabled {
color: $gray-6;
}
.orange-button {
color: $orange-8;
2018-06-04 00:06:17 +08:00
}
.orange-button:hover {
color: $orange-7;
}
.big-red-button {
background: $red-6;
color: white;
}
.big-red-button:hover {
background: $red-5;
color: white;
}
.comment {
-webkit-box-shadow: 0 7px 14px 0 rgba(50,50,93,.1), 0 3px 6px 0 rgba(0,0,0,.07);
-moz-box-shadow: 0 7px 14px 0 rgba(50,50,93,.1), 0 3px 6px 0 rgba(0,0,0,.07);
box-shadow: 0 7px 14px 0 rgba(50,50,93,.1), 0 3px 6px 0 rgba(0,0,0,.07);
width: calc(100% - 40px);
background: white;
border: 1px solid white;
border-radius: 3px;
padding: 20px;
margin-top: 20px;
margin-bottom: 20px;
transition: all 1s;
.comment-inside {
.actions {
float: right;
}
.title {
font-weight: 300;
font-size: 18px;
color: $gray-5;
margin-bottom: 18px;
line-height: 28px;
.postlink {
color: $gray-5;
}
}
.profile {
.avatar {
width: 38px;
height: 38px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 22px;
float: left;
margin-right: 12px;
}
.names {
margin-left: 50px;
.name {
a {
color: $gray-7;
font-weight: bold;
}
}
.time {
color: $gray-4;
}
}
}
.content {
margin-top: 20px;
}
}
}
.move-left {
transform: translateX(10000px);
}
.move-right {
transform: translateX(10000px);
}
.graph {
margin-top: 16px;
height: 300px;
.ct-series-a .ct-line {
stroke: $gray-7;
stroke-width: 1px;
}
.ct-series-a .ct-area {
fill: $gray-7;
}
}
code {
font-family: 'Source Code Pro', monospace;
font-size: 13px;
}