Files
VRCX/html/src/app.scss
2020-07-12 19:31:20 +09:00

524 lines
9.3 KiB
SCSS

@charset "utf-8";
//
// Copyright(c) 2019-2020 pypy and individual contributors.
// All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
@import "~normalize.css/normalize.css";
@import "~animate.css/animate.min.css";
@import "~noty/lib/noty.css";
@import "~element-ui/lib/theme-chalk/index.css";
@import "~famfamfam-flags/dist/sprite/famfamfam-flags.min.css";
.color-palettes {
background: #409eff;
background: #67c23a;
background: #e6a23c;
background: #f56c6c;
background: #909399;
background: #fd9200;
background: #e6e6e6;
background: #c0c4cc;
}
.noty_layout {
word-break: break-all;
}
.noty_theme__mint.noty_bar {
position: relative;
margin: 4px 0;
overflow: hidden;
border-radius: 2px;
}
.noty_theme__mint.noty_bar .noty_body {
padding: 10px;
font-size: 14px;
}
.noty_theme__mint.noty_bar .noty_buttons {
padding: 10px;
}
.noty_theme__mint.noty_type__alert,
.noty_theme__mint.noty_type__notification {
color: #2f2f2f;
background-color: #fff;
border-bottom: 1px solid #d1d1d1;
}
.noty_theme__mint.noty_type__warning {
color: #fff;
background-color: #ffae42;
border-bottom: 1px solid #e89f3c;
}
.noty_theme__mint.noty_type__error {
color: #fff;
background-color: #de636f;
border-bottom: 1px solid #ca5a65;
}
.noty_theme__mint.noty_type__info,
.noty_theme__mint.noty_type__information {
color: #fff;
background-color: #7f7eff;
border-bottom: 1px solid #7473e8;
}
.noty_theme__mint.noty_type__success {
color: #fff;
background-color: #afc765;
border-bottom: 1px solid #a0b55c;
}
.el-table + .pagination-bar {
margin-top: 15px;
}
.el-dialog__body {
padding: 20px;
}
.el-dialog__footer > .el-button + .el-button {
margin-left: 5px;
}
.el-message-box__message p {
word-break: break-all;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
border-radius: 16px;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 16px;
}
body,
input,
textarea,
select,
button {
font-family: "Noto Sans JP", "Noto Sans KR", "Meiryo UI", "Malgun Gothic", "Segoe UI", sans-serif;
line-height: normal;
}
a {
color: #409eff;
}
.x-link {
cursor: pointer;
}
.x-link:hover {
text-decoration: underline;
}
.x-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.x-app {
position: absolute;
display: flex;
width: 100%;
height: 100%;
overflow: hidden auto;
}
.x-container {
position: relative;
flex: 1;
padding: 10px;
overflow: hidden auto;
background: #fff;
}
.x-login-container {
position: absolute;
// modal 시작이 2000이라서
z-index: 1999;
display: flex;
width: 100%;
height: 100%;
background: #fff;
}
.x-menu-container {
flex: none;
overflow: hidden auto;
background: #383838;
}
.x-menu-container > .el-menu {
background: 0;
border: 0;
}
.el-menu-item.is-active::before {
position: absolute;
top: 4px;
left: 1px;
width: 2px;
height: 48px;
content: "";
background: #dcdfe6;
}
.el-menu-item.notify::after {
position: absolute;
top: 4px;
right: 4px;
width: 4px;
height: 4px;
content: "";
background: #ebeef5;
border-radius: 50%;
}
.x-aside-container {
display: flex;
flex: none;
flex-direction: column;
width: 236px;
background: #f8f8f8;
}
.el-popper.x-quick-search {
width: 225px;
min-width: 0 !important;
}
.el-popper.x-quick-search .el-select-dropdown__item {
width: 100%;
height: auto;
padding: 0 10px;
font-size: 12px;
line-height: normal;
}
.x-friend-list {
padding: 0 10px;
overflow: hidden auto;
}
.x-friend-group > .el-icon-arrow-right {
transition: transform 0.3s;
}
.x-friend-group > .el-icon-arrow-right.rotate {
transform: rotate(90deg);
}
.x-aside-container > .x-friend-list {
flex: 1;
}
.x-dialog .x-friend-list {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
max-height: 150px;
}
.x-friend-list > .x-friend-group {
padding: 20px 0 5px;
font-size: 12px;
font-weight: bold;
}
.x-friend-item {
box-sizing: border-box;
display: flex;
align-items: center;
padding: 5px;
font-size: 12px;
cursor: pointer;
}
.x-friend-item:hover {
background: #f0f0f0;
border-radius: 2px;
}
.x-aside-container > .x-friend-list > .x-friend-item:hover {
background: #fff;
border-radius: 2px;
}
.el-select-dropdown__item .x-friend-item:hover {
background: none;
border-radius: 0;
}
.x-dialog .x-friend-item {
width: 175px;
}
.x-friend-item > .avatar {
position: relative;
display: inline-block;
flex: none;
width: 40px;
height: 40px;
margin-right: 8px;
}
.x-friend-item > img.avatar {
width: 50px;
height: 37.5px;
margin-right: 0;
margin-left: 5px;
border-radius: 2px;
}
.x-friend-item > .avatar > img {
width: 100%;
height: 100%;
border-radius: 40%;
object-fit: cover;
}
.x-friend-item > .avatar.offline > img {
filter: grayscale(1);
}
.x-friend-item:hover > .avatar.offline > img {
filter: none;
}
.x-friend-item > .avatar.active::after,
.x-friend-item > .avatar.joinme::after,
.x-friend-item > .avatar.askme::after,
.x-friend-item > .avatar.busy::after {
position: absolute;
right: 0;
bottom: 0;
width: 8px;
height: 8px;
content: "";
background: #909399;
border: 2px solid #fff;
border-radius: 50%;
}
.x-friend-item > .avatar.active::after {
background: #67c23a;
}
.x-friend-item > .avatar.joinme::after {
background: #409eff;
}
.x-friend-item > .avatar.askme::after {
background: #fd9200;
}
.x-friend-item > .avatar.busy::after {
background: #f56c6c;
}
.x-friend-item.offline > .avatar::after {
display: none;
}
.x-friend-item > .detail {
flex: 1;
overflow: hidden;
}
.x-friend-item > .detail > .name,
.x-friend-item > .detail > .extra {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.x-friend-item > .detail > .name {
font-weight: bold;
color: #303133;
}
.x-friend-item > .detail > .extra {
font-weight: normal;
color: #606266;
}
.x-dialog > .el-dialog {
max-width: 100%;
margin-bottom: 10px;
}
.x-user-dialog > .el-dialog > .el-dialog__header,
.x-world-dialog > .el-dialog > .el-dialog__header,
.x-avatar-dialog > .el-dialog > .el-dialog__header {
display: none;
padding: 0;
}
.x-user-dialog > .el-dialog > .el-dialog__body,
.x-world-dialog > .el-dialog > .el-dialog__body,
.x-avatar-dialog > .el-dialog > .el-dialog__body {
padding: 20px;
}
.el-popper.hex {
min-width: auto;
padding: 10px;
font-family: monospace;
text-align: center;
}
i.x-user-status {
display: inline-block;
width: 10px;
height: 10px;
background: #808080;
border-radius: 50%;
}
i.x-user-status.active {
background: #67c23a;
}
i.x-user-status.joinme {
background: #409eff;
}
i.x-user-status.askme {
background: #fd9200;
}
i.x-user-status.busy {
background: #f56c6c;
}
.x-friend-item > .detail > .name.x-tag-untrusted {
color: rgb(204, 204, 204);
}
.el-tag.x-tag-untrusted {
color: rgb(204, 204, 204);
border-color: rgb(204, 204, 204);
}
.x-friend-item > .detail > .name.x-tag-basic {
color: rgb(23, 120, 255);
}
.el-tag.x-tag-basic {
color: rgb(23, 120, 255);
border-color: rgb(23, 120, 255);
}
.x-friend-item > .detail > .name.x-tag-known {
color: rgb(43, 207, 92);
}
.el-tag.x-tag-known {
color: rgb(43, 207, 92);
border-color: rgb(43, 207, 92);
}
.x-friend-item > .detail > .name.x-tag-trusted {
color: rgb(255, 123, 66);
}
.el-tag.x-tag-trusted {
color: rgb(255, 123, 66);
border-color: rgb(255, 123, 66);
}
.x-friend-item > .detail > .name.x-tag-veteran {
color: rgb(129, 67, 230);
}
.el-tag.x-tag-veteran {
color: rgb(129, 67, 230);
border-color: rgb(129, 67, 230);
}
.x-friend-item > .detail > .name.x-tag-legend {
// color: rgb(255, 255, 0);
color: rgb(255, 208, 0);
}
.el-tag.x-tag-legend {
// border-color: rgb(255, 255, 0);
// color: rgb(255, 255, 0);
color: rgb(255, 208, 0);
border-color: rgb(255, 208, 0);
}
.x-friend-item > .detail > .name.x-tag-legendary {
color: rgb(0, 0, 0);
}
.el-tag.x-tag-legendary {
color: rgb(0, 0, 0);
border-color: rgb(0, 0, 0);
}
.x-friend-item > .detail > .name.x-tag-vip {
color: rgb(181, 38, 38);
}
.el-tag.x-tag-vip {
color: rgb(181, 38, 38);
border-color: rgb(181, 38, 38);
}
.x-friend-item > .detail > .name.x-tag-troll {
color: rgb(120, 47, 47);
}
.el-tag.x-tag-troll {
color: rgb(120, 47, 47);
border-color: rgb(120, 47, 47);
}
.x-friend-item > .detail > .name.x-tag-friend {
// color: rgb(255, 255, 0);
color: rgb(255, 208, 0);
}
.el-tag.x-tag-friend {
// border-color: rgb(255, 255, 0);
// color: rgb(255, 255, 0);
color: rgb(255, 208, 0);
border-color: rgb(255, 208, 0);
}
.el-tree-node {
white-space: normal;
}
.el-tree-node__content {
height: auto;
}
.x-user-dialog .el-textarea__inner {
padding: 0;
background: none;
border: 0;
border-radius: 2px;
}