mirror of
https://github.com/jeessy2/ddns-go.git
synced 2026-10-18 06:20:37 +08:00
413 lines
8.3 KiB
CSS
413 lines
8.3 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg-color: #f2f3f8;
|
|
--text-color: black;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--bg-color: #22272e;
|
|
--text-color: #adbac7;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-color) !important;
|
|
}
|
|
|
|
#mask {
|
|
background-color: #00000088;
|
|
height: 100%;
|
|
width: 100%;
|
|
position: absolute;
|
|
z-index: 1;
|
|
}
|
|
|
|
[data-theme='dark'] .form-control {
|
|
background-color: #1c2128 !important;
|
|
border-color: #444c56 !important;
|
|
color: var(--text-color) !important;
|
|
}
|
|
|
|
[data-theme='dark'] .row {
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.portlet {
|
|
display: -webkit-box;
|
|
display: flex;
|
|
-webkit-box-flex: 1;
|
|
flex-grow: 1;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-direction: normal;
|
|
flex-direction: column;
|
|
box-shadow: 0px 0px 13px 3px rgba(82, 63, 105, 0.05);
|
|
background-color: #ffffff;
|
|
margin-bottom: 20px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
[data-theme='dark'] .portlet {
|
|
background-color: #32353b;
|
|
color: #adbac7;
|
|
border: 2px solid #444c56;
|
|
border-radius: 5px;
|
|
box-shadow: unset;
|
|
}
|
|
|
|
.portlet .portlet__head {
|
|
display: flex;
|
|
-webkit-box-align: stretch;
|
|
-webkit-box-pack: justify;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
padding: 0 20px;
|
|
margin: 0;
|
|
border-bottom: 1px solid #ebedf2;
|
|
min-height: 60px;
|
|
border-top-left-radius: 4px;
|
|
border-top-right-radius: 4px;
|
|
align-items: center;
|
|
font-size: 1.2rem;
|
|
font-weight: 540;
|
|
color: #48465b;
|
|
}
|
|
|
|
[data-theme='dark'] .portlet .portlet__head {
|
|
border-bottom: 1px solid #444c56;
|
|
background-color: #2d333b !important;
|
|
color: #adbac7;
|
|
}
|
|
|
|
.portlet .portlet__body {
|
|
display: -webkit-box;
|
|
display: -ms-flexbox;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-direction: normal;
|
|
-ms-flex-direction: column;
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
[data-theme='dark'] .portlet__body {
|
|
background-color: #22272e !important;
|
|
}
|
|
|
|
.navbar {
|
|
color: #adbac7;
|
|
position: fixed !important;
|
|
width: 100vw;
|
|
z-index: 2;
|
|
min-height: 3.5rem;
|
|
}
|
|
|
|
main {
|
|
position: relative;
|
|
padding-top: 4.5rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
[data-theme='dark'] .navbar {
|
|
background-image: linear-gradient(#2d333b, #22272e) !important;
|
|
}
|
|
|
|
|
|
[data-theme='dark'] .form {
|
|
background-color: #1c2128 !important;
|
|
color: #adbac7 !important;
|
|
border-radius: 5px !important;
|
|
border-color: #444c56 !important;
|
|
}
|
|
|
|
[data-theme='dark'] .form-group {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
#logsBtn {
|
|
position: relative;
|
|
margin-right: 25px;
|
|
}
|
|
|
|
.unread:after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background-color: #ff0000;
|
|
}
|
|
|
|
.theme-button {
|
|
background-color: transparent;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
margin-right: 25px;
|
|
}
|
|
|
|
.theme-button:hover {
|
|
box-shadow: 0px 0px 15px #0d0d0dab;
|
|
}
|
|
|
|
.theme-button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
#logs {
|
|
max-height: 50vh !important;
|
|
height: 600px !important;
|
|
margin-bottom: 10px;
|
|
overflow-y: auto;
|
|
font-size: 13px !important;
|
|
background-color: #f6f6f6;
|
|
}
|
|
|
|
.logs-panel {
|
|
z-index: 2;
|
|
background-color: rgb(255, 255, 255);
|
|
color: var(--text-color);
|
|
border-radius: 10px;
|
|
padding: 15px !important;
|
|
padding-bottom: 10px !important;
|
|
border: 1px solid #cbcbcb;
|
|
box-shadow: 0px 0px 13px 3px rgba(52, 52, 52, 0.226);
|
|
}
|
|
|
|
[data-theme='dark'] .logs-panel {
|
|
background-color: #22272e;
|
|
color: #adbac7;
|
|
border: 1px solid #444c56;
|
|
box-shadow: unset;
|
|
}
|
|
|
|
.col-md-6.logs-panel {
|
|
position: fixed;
|
|
left: 0;
|
|
}
|
|
|
|
#msg-container {
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
position: fixed;
|
|
width: 100vw;
|
|
padding: 0 5vw;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
top: 0;
|
|
}
|
|
|
|
#msg-container .msg {
|
|
pointer-events: all;
|
|
padding: 9px 12px;
|
|
text-align: center;
|
|
line-height: 1.5714285714285714;
|
|
border-radius: 8px;
|
|
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
font-size: 14px;
|
|
background-color: #ffffff;
|
|
margin: 8px 0;
|
|
color: var(--text-color);
|
|
transition: all 0.2s ease-in;
|
|
}
|
|
|
|
[data-theme='dark'] #msg-container .msg {
|
|
background-color: #1f1f1f;
|
|
}
|
|
|
|
#msg-container .msg-fade {
|
|
opacity: 0;
|
|
transform: translateY(-1rem) scale(0.6);
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
#msg-container .msg-icon {
|
|
margin-right: 8px;
|
|
line-height: 0;
|
|
text-align: center;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.badge {
|
|
margin-right: 20px;
|
|
/* 给版本号添加右侧间距 */
|
|
}
|
|
|
|
.button-container {
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.top-actions {
|
|
gap: 12px;
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.navbar {
|
|
height: auto;
|
|
}
|
|
|
|
main {
|
|
padding-top: 7rem;
|
|
}
|
|
|
|
.button-container {
|
|
padding: 0.5rem 0.75rem !important;
|
|
align-items: flex-start !important;
|
|
}
|
|
|
|
.top-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
margin-top: 0.5rem;
|
|
gap: 8px;
|
|
}
|
|
|
|
#logsBtn,
|
|
.theme-button,
|
|
.badge,
|
|
.action-button {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.action-button-text {
|
|
padding: 4px 8px;
|
|
}
|
|
}
|
|
|
|
.action-button-text {
|
|
min-height: 30px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 4px 10px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.action-button-text:hover,
|
|
.action-button-text:focus,
|
|
.action-button-text:active,
|
|
.action-button-text:visited {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.action-button.lang-select {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
height: 30px;
|
|
width: 90px;
|
|
box-sizing: border-box;
|
|
padding: 4px 24px 4px 8px;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23adbac7' d='M1 0l4 4 4-4 1 1-5 5-5-5z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 8px center;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lang-select:disabled {
|
|
cursor: wait;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.lang-select option {
|
|
color: #212529;
|
|
background-color: #fff;
|
|
}
|
|
|
|
[data-theme='dark'] .lang-select option {
|
|
color: #adbac7;
|
|
background-color: #2d333b;
|
|
}
|
|
|
|
.action-button {
|
|
flex: none;
|
|
padding: 4px 6px;
|
|
font-size: 14px;
|
|
color: #adbac7;
|
|
border: 1px solid #adbac7;
|
|
border-radius: 8px;
|
|
background-color: rgba(255, 255, 255, 0.06);
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
|
|
transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.action-button:hover,
|
|
.action-button:visited,
|
|
.action-button:active,
|
|
.action-button:focus {
|
|
color: #adbac7;
|
|
border-color: #adbac7;
|
|
background-color: rgba(255, 255, 255, 0.06);
|
|
text-decoration: none;
|
|
outline: none;
|
|
}
|
|
|
|
.lang-select:hover,
|
|
.lang-select:focus,
|
|
.logout-button:hover,
|
|
.logout-button:focus {
|
|
border-color: #fff;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
|
|
}
|
|
|
|
.tooltip[x-placement^="top"] .arrow,
|
|
.tooltip[x-placement^="bottom"] .arrow {
|
|
left: 50%;
|
|
}
|
|
|
|
.tooltip[x-placement^="left"] .arrow,
|
|
.tooltip[x-placement^="right"] .arrow {
|
|
top: 50%;
|
|
}
|
|
|
|
.tooltip[x-placement^="top"] .arrow::before,
|
|
.tooltip[x-placement^="bottom"] .arrow::before {
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.tooltip[x-placement^="left"] .arrow::before,
|
|
.tooltip[x-placement^="right"] .arrow::before {
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
/* Tooltip theme support */
|
|
.tooltip .tooltip-inner {
|
|
background-color: #fff;
|
|
color: #000;
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.tooltip .arrow::before {
|
|
border-top-color: #fff;
|
|
border-bottom-color: #fff;
|
|
border-left-color: #fff;
|
|
border-right-color: #fff;
|
|
}
|
|
|
|
[data-theme="dark"] .tooltip .tooltip-inner {
|
|
background-color: #2d333b;
|
|
color: #adbac7;
|
|
border: 1px solid #444c56;
|
|
}
|
|
|
|
[data-theme="dark"] .tooltip.bs-tooltip-top .arrow::before {
|
|
border-top-color: #2d333b;
|
|
}
|
|
|
|
[data-theme="dark"] .tooltip.bs-tooltip-bottom .arrow::before {
|
|
border-bottom-color: #2d333b;
|
|
}
|
|
|
|
[data-theme="dark"] .tooltip.bs-tooltip-left .arrow::before {
|
|
border-left-color: #2d333b;
|
|
}
|
|
|
|
[data-theme="dark"] .tooltip.bs-tooltip-right .arrow::before {
|
|
border-right-color: #2d333b;
|
|
}
|