Files
EdgeAdmin/web/views/@default/@layout.css

813 lines
14 KiB
CSS
Raw Normal View History

2020-09-06 16:19:34 +08:00
.left-box {
width: 8em;
position: fixed;
top: 7.5em;
2021-01-24 14:41:43 +08:00
bottom: 2.4em;
2020-09-06 16:19:34 +08:00
overflow-y: auto;
overflow-x: hidden;
border-right: 1px #ddd solid;
}
.left-box .menu {
width: 90% !important;
}
.left-box .menu .item {
line-height: 1.2;
position: relative;
padding-left: 1em !important;
}
.left-box .menu .item .icon {
position: absolute;
top: 50%;
left: 0;
margin-top: -0.4em !important;
}
.left-box .menu .item.separator {
border-bottom: 1px #eee solid !important;
padding-top: 0;
padding-bottom: 0;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
2020-09-27 18:40:55 +08:00
.left-box .menu .item.on span {
border-bottom: 1px #666 dashed;
}
.left-box .menu .item.off span var {
font-style: normal;
background: #db2828;
color: white;
font-size: 8px;
padding: 2px;
border-radius: 2px;
margin-left: 1em;
}
2020-09-06 16:19:34 +08:00
.left-box .menu .header {
border-bottom: 1px #ddd solid;
padding-left: 0 !important;
padding-bottom: 1em !important;
}
.left-box::-webkit-scrollbar {
width: 4px;
}
2020-09-21 19:51:50 +08:00
.left-box.disabled {
2020-09-26 11:21:52 +08:00
opacity: 0.1;
}
2020-09-21 19:51:50 +08:00
.left-box.tiny {
2020-09-22 11:36:51 +08:00
top: 10.5em;
2020-09-21 19:51:50 +08:00
}
2020-11-10 15:40:22 +08:00
.left-box.without-tabbar {
top: 3em;
}
2021-09-13 16:47:34 +08:00
.left-box.with-menu {
top: 10em;
}
.left-box.without-menu {
top: 6em;
}
2020-09-06 16:19:34 +08:00
.right-box {
position: fixed;
top: 7.5em;
bottom: 1.3em;
2020-09-06 16:19:34 +08:00
right: 0;
left: 18em;
padding-right: 2em;
padding-bottom: 2em;
2020-09-06 16:19:34 +08:00
overflow-y: auto;
}
@media screen and (max-width: 512px) {
.right-box {
left: 13em;
padding-right: 1em;
}
}
body.expanded .right-box {
left: 10em;
}
2020-09-22 11:36:51 +08:00
.right-box.tiny {
2020-09-28 16:25:26 +08:00
top: 10.4em;
2020-09-22 11:36:51 +08:00
left: 26.5em;
}
2020-09-06 16:19:34 +08:00
.right-box::-webkit-scrollbar {
width: 4px;
}
2020-11-10 15:40:22 +08:00
.right-box.without-tabbar {
top: 3em;
}
2021-09-13 16:47:34 +08:00
.right-box.with-menu {
top: 10em;
}
.right-box.without-menu {
top: 6em;
}
2021-01-24 14:41:43 +08:00
.main.without-footer .left-box {
bottom: 0.2em;
}
2021-12-06 08:55:47 +08:00
.narrow-scrollbar::-webkit-scrollbar {
width: 4px;
}
2022-04-07 10:21:38 +08:00
.grid.counter-chart {
margin-top: 1.5em !important;
margin-left: 0.4em !important;
}
.grid.counter-chart .column {
margin-bottom: 1em;
font-size: 0.85em;
text-align: center;
position: relative;
border: 1px rgba(0, 0, 0, 0.1) solid;
border-right: 0;
}
.grid.counter-chart .column div.value {
margin-top: 1.5em;
font-weight: normal;
}
.grid.counter-chart .column div.value span {
font-size: 1.5em;
margin-right: 0.2em;
}
.grid.counter-chart .column.with-border {
border-right: 1px rgba(0, 0, 0, 0.1) solid;
}
.grid.counter-chart h4 {
font-size: 1em;
text-align: left;
}
.grid.counter-chart h4 a {
display: none;
}
.grid.counter-chart .column:hover {
background: rgba(0, 0, 0, 0.05) !important;
}
.grid.counter-chart .column:hover a {
display: inline;
}
2020-07-22 22:19:39 +08:00
/** 通用 **/
.clear {
clear: both;
}
.hidden {
display: none;
}
pre {
white-space: pre-wrap;
}
a.disabled,
a.disabled:hover,
a.disabled:active,
span.disabled {
color: #ccc !important;
}
a.enabled,
span.enabled,
span.green {
color: #21ba45;
}
span.grey,
label.grey,
p.grey {
color: grey !important;
}
p.grey {
margin-top: 0.8em;
}
span.red,
pre.red {
color: #db2828;
}
span.blue {
color: #4183c4;
}
2021-05-25 12:14:21 +08:00
span.orange {
color: #ff851b;
}
2020-07-22 22:19:39 +08:00
pre:not(.CodeMirror-line) {
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif !important;
}
tbody {
background: transparent;
}
2021-01-19 10:21:53 +08:00
.table-box {
margin-top: 1em;
overflow-x: auto;
}
.table-box::-webkit-scrollbar {
height: 6px;
}
2020-07-22 22:19:39 +08:00
.table.width30 {
width: 30em !important;
}
.table.width35 {
width: 35em !important;
}
.table.width40 {
width: 40em !important;
}
2021-01-19 10:21:53 +08:00
.table.width1024 {
width: 1024px !important;
}
2020-07-22 22:19:39 +08:00
.table th,
.table td {
font-size: 0.9em !important;
}
2020-09-23 18:43:38 +08:00
.table tr.active td {
background: rgba(0, 0, 0, 0.01) !important;
}
2020-07-22 22:19:39 +08:00
p.comment,
div.comment {
2020-12-23 19:44:10 +08:00
color: rgba(0, 0, 0, 0.5);
2020-07-22 22:19:39 +08:00
padding-top: 0.4em;
2020-10-13 20:05:29 +08:00
font-size: 1em;
2020-07-22 22:19:39 +08:00
}
p.comment em,
div.comment em {
font-style: italic !important;
}
.truncate {
white-space: nowrap;
-ms-text-overflow: ellipsis;
overflow: hidden;
text-overflow: ellipsis;
}
div.margin,
p.margin {
margin-top: 1em;
}
.opacity-mask {
opacity: 0.3;
}
2020-07-22 22:19:39 +08:00
/** 操作按钮容器 **/
.op.one {
width: 4em;
}
.op.two {
width: 7.4em;
}
.op.three {
width: 9em;
}
.op.four {
width: 10em;
}
/** 主菜单 **/
.main-menu .ui.menu {
width: 9.5em !important;
border-radius: 0 !important;
}
@media screen and (max-width: 512px) {
.main-menu .ui.menu {
width: 3.6em !important;
}
.main-menu .ui.menu .item {
padding-top: 2em;
padding-bottom: 2.4em;
}
}
.main-menu .ui.labeled.icon.menu .item {
font-size: 0.9em;
}
.main-menu .ui.menu {
padding-bottom: 3em;
}
2021-03-28 14:47:21 +08:00
.main-menu .ui.menu .item .subtitle {
display: none;
}
.main-menu .ui.menu .item.expend .subtitle {
display: block;
font-size: 10px;
2022-04-07 10:21:38 +08:00
padding-left: 2em;
2021-03-28 14:47:21 +08:00
margin-top: 0.5em;
color: grey;
}
2021-06-23 13:12:33 +08:00
@media screen and (max-width: 512px) {
.main-menu .ui.menu .item.expend .subtitle {
display: none;
}
}
2020-11-10 15:40:22 +08:00
.main-menu .ui.menu .sub-items .item {
2021-03-28 14:47:21 +08:00
padding-left: 2.8em !important;
padding-right: 0.4em !important;
2020-11-10 15:40:22 +08:00
}
2021-06-27 21:59:06 +08:00
.main-menu .ui.menu .sub-items .item .icon {
position: absolute;
left: 1.1em;
top: 0.93em;
}
.main-menu .ui.menu .sub-items .item .label {
margin-left: 0;
margin-right: 0;
padding-left: 0.4em;
padding-right: 0.4em;
min-width: 2em;
}
2021-06-23 13:12:33 +08:00
@media screen and (max-width: 512px) {
.main-menu .ui.menu .sub-items .item {
2021-06-27 21:59:06 +08:00
padding-left: 1em !important;
2021-06-23 13:12:33 +08:00
}
}
2020-11-10 15:40:22 +08:00
.main-menu .ui.menu .sub-items .item.active {
background-color: #2185d0 !important;
}
2020-07-22 22:19:39 +08:00
/** 扩展UI **/
.field.text {
2022-04-07 10:21:38 +08:00
padding: 0.5em;
2020-07-22 22:19:39 +08:00
}
2022-01-20 15:53:46 +08:00
.form .fields:not(.inline) .field {
margin-bottom: 0.5em !important;
}
.form .fields:not(.inline) .field .button {
min-width: 5em;
}
2020-07-22 22:19:39 +08:00
/** body **/
@keyframes blink {
from {
opacity: 0.1;
}
to {
opacity: 0.8;
}
}
2021-01-27 22:59:46 +08:00
@keyframes rotation {
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
}
2020-07-22 22:19:39 +08:00
body .ui.menu .item .blink {
animation: blink 1s infinite;
}
2021-01-27 22:59:46 +08:00
body .ui.menu .item:not(:hover) span.rotate {
animation: rotation 3s infinite;
}
2020-07-22 22:19:39 +08:00
body.expanded .main-menu {
display: none;
}
body.expanded .main {
left: 1em;
}
/** 布局相关 */
.top-nav {
border-radius: 0 !important;
position: fixed;
width: 100%;
z-index: 1000;
overflow-x: auto;
border: 0 !important;
2020-07-22 22:19:39 +08:00
}
.top-nav img.avatar {
width: 1.6em !important;
height: 1.6em !important;
padding: 0.2em;
background: #fff;
border-radius: 0.9em;
margin-right: 0.5em !important;
}
.top-nav em {
font-style: normal;
font-size: 0.9em;
padding-left: 0.2em;
}
2021-01-27 22:59:46 +08:00
.top-nav .item .hover-span span {
display: none;
}
.top-nav .item:hover .hover-span span {
display: inline;
}
2020-08-21 12:32:16 +08:00
.top-nav .item.red {
color: red !important;
}
2021-07-12 10:21:17 +08:00
.top-nav.theme1 {
background: #14539A !important;
}
.top-nav.theme2 {
background: #276AC6 !important;
}
.top-nav.theme3 {
background: #007D9C !important;
}
2021-10-09 11:50:02 +08:00
.top-nav.theme4 {
background: #A12568 !important;
}
.top-nav.theme5 {
background: #1C7947 !important;
}
2021-01-27 22:59:46 +08:00
.top-nav::-webkit-scrollbar {
height: 2px;
}
2020-07-22 22:19:39 +08:00
/** 顶部菜单 **/
.top-secondary-menu {
position: fixed;
top: 2.6em;
left: 8.2em;
right: 0;
z-index: 100;
background: white;
}
.top-secondary-menu .menu {
margin-top: 0 !important;
margin-bottom: 0 !important;
border-radius: 0 !important;
}
.top-secondary-menu .menu var {
font-style: normal;
}
.top-secondary-menu .divider {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
@media screen and (max-width: 512px) {
.top-secondary-menu {
left: 4em;
}
}
/** 右侧主操作区 **/
.main {
position: absolute;
left: 22em;
top: 5.6em;
padding-bottom: 5em;
padding-right: 1em;
right: 1em;
}
@media screen and (max-width: 512px) {
.main {
left: 4em;
}
.main .main-box {
display: block;
}
2020-07-22 22:19:39 +08:00
}
.main.without-menu {
left: 9em;
}
.main.without-secondary-menu {
top: 2.9em;
}
@media screen and (max-width: 512px) {
.main.without-menu {
left: 4em;
}
}
.main table td.title {
width: 10em;
}
.main table td.middle-title {
width: 14em;
}
.main table td {
vertical-align: top;
}
.main table td.color-border {
border-left: 1px #276ac6 solid !important;
}
.main table td.vertical-top {
vertical-align: top;
}
.main table td.vertical-middle {
vertical-align: middle;
}
.main table td[colspan="2"] a {
font-weight: normal;
}
.main table td em {
font-weight: normal;
font-style: normal;
font-size: 0.9em;
}
.main table td em.grey {
color: grey;
}
2020-07-22 22:19:39 +08:00
.main h3 {
font-weight: normal;
margin-top: 1em !important;
2020-09-06 16:19:34 +08:00
position: relative;
2020-07-22 22:19:39 +08:00
}
.main h3 span {
font-size: 0.8em;
}
.main h3 span.label {
color: #6435c9;
}
.main h3 a {
margin-left: 1em;
font-size: 14px !important;
right: 1em;
}
.main h4 {
font-weight: normal;
}
.main td span.small {
font-size: 0.8em;
}
.main .button.mini {
font-size: 0.8em;
padding: 0.2em;
margin-left: 1em;
}
.main-menu {
position: fixed;
/**top: 1.05em;**/
top: 2em;
bottom: 0;
overflow-y: auto;
z-index: 10;
}
.main-menu .menu {
border: 0 !important;
box-shadow: none !important;
2020-07-22 22:19:39 +08:00
}
2021-07-12 10:21:17 +08:00
.main-menu.theme1 {
background: #14539A !important;
}
.main-menu.theme1 .menu {
background: #14539A !important;
}
.main-menu.theme2 {
background: #276AC6 !important;
}
.main-menu.theme2 .menu {
background: #276AC6 !important;
}
.main-menu.theme3 {
background: #007D9C !important;
}
.main-menu.theme3 .menu {
background: #007D9C !important;
}
2021-10-09 11:50:02 +08:00
.main-menu.theme4 {
background: #A12568 !important;
}
.main-menu.theme4 .menu {
background: #A12568 !important;
}
.main-menu.theme5 {
background: #1C7947 !important;
}
.main-menu.theme5 .menu {
background: #1C7947 !important;
}
2020-07-22 22:19:39 +08:00
.main-menu::-webkit-scrollbar {
width: 2px;
}
.main .tab-menu {
margin-top: 1em !important;
margin-bottom: 0 !important;
2020-10-11 10:51:13 +08:00
overflow-x: auto;
overflow-y: hidden;
2020-07-22 22:19:39 +08:00
}
.main .tab-menu .item {
padding: 1em !important;
}
.main .tab-menu .item var {
font-style: normal;
}
.main .tab-menu .item span {
font-size: 0.8em;
padding-left: 0.3em;
}
2020-10-11 10:51:13 +08:00
.main .tab-menu .item .icon {
margin-left: 0.6em;
}
2020-10-14 14:46:22 +08:00
.main .tab-menu .item.active {
background: #f8f8f9 !important;
}
2020-10-11 10:51:13 +08:00
.main .tab-menu::-webkit-scrollbar {
height: 4px;
2020-07-22 22:19:39 +08:00
}
.main .go-top-btn {
position: fixed;
right: 2.6em;
bottom: 2em;
font-size: 2em;
line-height: 1.4em;
border-radius: 1em;
z-index: 999999;
background: white;
}
/** 右侧文本子菜单 **/
.text.menu {
overflow-x: auto;
}
.text.menu::-webkit-scrollbar {
width: 4px;
height: 4px;
}
/** 脚部相关样式 **/
#footer {
position: fixed;
bottom: 0;
text-align: left;
color: gray;
width: 100%;
border-radius: 0 !important;
z-index: 10;
overflow-x: auto;
}
#footer::-webkit-scrollbar {
height: 2px;
}
#footer a {
font-size: 0.9em;
}
#footer a form {
display: none;
}
#footer a:hover span,
#footer a:active span {
display: none;
}
#footer a:hover form,
#footer a:active form {
display: block;
}
#footer form input {
padding: 0;
margin: 0;
}
#footer-outer-box {
z-index: 999999;
position: fixed;
left: 0;
top: 0;
right: 0;
background: rgba(0, 0, 0, 0.8);
bottom: 2.6em;
}
#footer-outer-box .qrcode {
width: 20em;
position: absolute;
top: 50%;
left: 50%;
margin-top: -14em;
margin-left: -10em;
}
#footer-outer-box .qrcode img {
width: 100%;
}
#footer-outer-box .qrcode a {
position: absolute;
right: 0.5em;
top: 0.5em;
}
@media screen and (max-width: 512px) {
#footer-outer-box .qrcode {
margin-left: 0;
left: 3.5em;
}
}
/** Vue **/
[v-cloak] {
display: none !important;
}
/** auto complete **/
.autocomplete-box .menu {
background: #eee !important;
}
.autocomplete-box .menu::-webkit-scrollbar {
width: 4px;
}
.autocomplete-box .menu .item {
border-top: none !important;
}
2020-08-21 12:32:16 +08:00
select.auto-width {
width: auto !important;
}
2020-07-22 22:19:39 +08:00
/** column **/
@media screen and (max-width: 512px) {
.column:not(.one) {
width: 100% !important;
}
}
label[for] {
cursor: pointer !important;
}
label.blue {
color: #2185d0 !important;
}
/** Menu **/
.first-menu .menu.text {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.first-menu .divider {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.second-menu .menu.text {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.second-menu .menu.text em {
font-style: normal;
}
.second-menu .divider {
margin-top: 0 !important;
}
.menu a {
outline: none;
}
/** var **/
span.olive,
var.olive {
color: #b5cc18 !important;
}
var.dash {
border-bottom: 1px dashed grey;
}
/** checkbox **/
.checkbox label a,
.checkbox label {
2020-11-18 15:41:29 +08:00
font-size: 0.9em !important;
2020-07-22 22:19:39 +08:00
}
/** page **/
.page {
margin-top: 1em;
border-left: 1px solid #ddd;
}
.page a {
display: inline-block;
background: #fafafa;
color: #666;
padding: 6px 12px;
margin: 0;
font-size: 0.9em;
border: 1px solid #ddd;
border-left: 0;
}
.page a.active {
background: #2185d0 !important;
color: white;
}
.page a:hover {
background: #eee;
}
/** popup **/
.swal2-html-container {
overflow-x: hidden;
}
.swal2-close,
.swal2-close:focus {
border: 0;
}
.swal2-confirm:focus,
.swal2-cancel:focus {
border: 3px #ddd solid !important;
}
.swal2-confirm,
.swal2-cancel {
border: 3px #fff solid !important;
}
.swal2-cancel {
margin-left: 2em !important;
}
2020-09-28 16:25:26 +08:00
/** 排序 **/
.sortable-ghost {
background: #ddd !important;
opacity: 0.1;
}
.sortable-drag {
2022-04-07 10:21:38 +08:00
opacity: 1;
2020-09-28 16:25:26 +08:00
}
.icon.handle {
cursor: pointer;
}
.label.port-label {
margin-top: 0.4em !important;
margin-bottom: 0.4em !important;
display: block;
line-height: 1.5;
}
.label {
word-break: break-all;
}
td .label.small {
margin-bottom: 0.2em !important;
}
td {
word-break: break-all;
}
.source-code-box .CodeMirror {
border: 1px solid #eee;
height: auto !important;
}
.source-code-box .CodeMirror-vscrollbar {
width: 6px;
border-radius: 3px !important;
}
.source-code-box .CodeMirror-vscrollbar::-webkit-scrollbar-thumb {
border-radius: 2px;
}
.scroll-box {
overflow-y: auto;
}
2021-07-03 15:44:49 +08:00
.scroll-box::-webkit-scrollbar {
width: 4px;
}
input.error {
border: 1px #e0b4b4 solid !important;
}
2021-10-10 20:17:40 +08:00
textarea.wide-code {
font-family: Menlo, Monaco, "Courier New", monospace !important;
line-height: 1.6 !important;
}
2020-07-22 22:19:39 +08:00
/*# sourceMappingURL=@layout.css.map */