项目初始化
This commit is contained in:
139
src/styles/fix/_chat.less
Normal file
139
src/styles/fix/_chat.less
Normal file
@ -0,0 +1,139 @@
|
||||
@chat-prefix: ~'.chat';
|
||||
|
||||
@{chat-prefix} {
|
||||
&__container {
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
background: @chat-background;
|
||||
border: 1px solid @border-color-split;
|
||||
}
|
||||
&__scroll {
|
||||
&-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
&__sidebox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: @chat-sidebox-width;
|
||||
box-shadow: @shadow-1-right;
|
||||
transition: 0.2s all;
|
||||
}
|
||||
&__contact {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8px 16px;
|
||||
color: #4e5155;
|
||||
cursor: pointer;
|
||||
&:hover:not(.chat__contact-active) {
|
||||
background-color: rgba(24, 28, 33, 0.03);
|
||||
}
|
||||
.ant-badge-status-text {
|
||||
color: #52c41a;
|
||||
font-size: 12px;
|
||||
}
|
||||
&-offline {
|
||||
opacity: 0.7;
|
||||
.ant-badge-status-text {
|
||||
color: #f5222d;
|
||||
}
|
||||
}
|
||||
&-active {
|
||||
background-color: #e84c64;
|
||||
&,
|
||||
.ant-badge-status-text {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
&__user {
|
||||
&-avatar {
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
&__message {
|
||||
&-container {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
margin-bottom: 8px;
|
||||
&-left {
|
||||
margin-right: @chat-avatar-box-width + 8px;
|
||||
.chat__message-avatar {
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
&-right {
|
||||
flex-direction: row-reverse;
|
||||
margin-left: @chat-avatar-box-width + 8px;
|
||||
.chat__message-avatar {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
&-send {
|
||||
text-align: center;
|
||||
}
|
||||
&-avatar {
|
||||
width: @chat-avatar-box-width;
|
||||
text-align: center;
|
||||
}
|
||||
&-text {
|
||||
width: 100%;
|
||||
color: @grey-6;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
&-time {
|
||||
padding-top: 2px;
|
||||
color: @grey-6;
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
&-msg {
|
||||
padding: 4px 8px;
|
||||
background: @chat-message-item-bg;
|
||||
border-radius: 4px;
|
||||
&--name {
|
||||
display: block;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.chat-rtl-mixin(@enabled) when(@enabled=true) {
|
||||
[dir='rtl'] {
|
||||
@{chat-prefix} {
|
||||
&__message {
|
||||
&-left {
|
||||
margin-right: inherit;
|
||||
margin-left: @chat-avatar-box-width + 8px;
|
||||
.chat__message-avatar {
|
||||
margin-right: inherit;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
&-right {
|
||||
margin-right: inherit;
|
||||
margin-left: @chat-avatar-box-width + 8px;
|
||||
.chat__message-avatar {
|
||||
margin-right: inherit;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.chat-rtl-mixin(@rtl-enabled);
|
||||
135
src/styles/fix/_file-manager.less
Normal file
135
src/styles/fix/_file-manager.less
Normal file
@ -0,0 +1,135 @@
|
||||
app-file-manager file-manager {
|
||||
display: block;
|
||||
padding: 24px;
|
||||
background: @popover-background;
|
||||
}
|
||||
|
||||
.file {
|
||||
&-manager {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 16px;
|
||||
&__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 16px;
|
||||
padding: 0 32px 4px 12px;
|
||||
font-weight: 700;
|
||||
border-bottom: 2px solid rgba(0, 0, 0, 0.05);
|
||||
&-name {
|
||||
flex: 1;
|
||||
}
|
||||
&-pixel {
|
||||
width: 150px;
|
||||
}
|
||||
&-time {
|
||||
width: 130px;
|
||||
}
|
||||
}
|
||||
&__small {
|
||||
.file-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
margin: 0 0 2px;
|
||||
padding: 4px 32px 4px 0;
|
||||
text-align: left;
|
||||
&__icon,
|
||||
&__img {
|
||||
display: block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin: 0 8px;
|
||||
font-size: 20px;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
&__name {
|
||||
flex: 1;
|
||||
}
|
||||
&__pixel {
|
||||
position: inherit;
|
||||
width: 150px;
|
||||
> span {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
&__time {
|
||||
display: block;
|
||||
width: 130px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-item {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
flex: 0 0 auto;
|
||||
flex-shrink: 0;
|
||||
width: 9rem;
|
||||
margin: 0 8px 8px 0;
|
||||
padding: 16px 0 24px;
|
||||
text-align: center;
|
||||
border: 1px solid transparent;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
border-color: rgba(0, 0, 0, 0.05);
|
||||
.file-item__actions {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
&__selected {
|
||||
background-color: @file-item-selected-bg !important;
|
||||
border-color: @file-item-selected-border-color !important;
|
||||
.file-item__actions {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
&__icon {
|
||||
display: block;
|
||||
margin: 16px 0;
|
||||
font-size: 40px;
|
||||
}
|
||||
&__img {
|
||||
display: block;
|
||||
width: 4rem;
|
||||
height: 4rem;
|
||||
margin: 0 auto 0.75rem;
|
||||
font-size: 2.5rem;
|
||||
line-height: 4rem;
|
||||
background-color: transparent;
|
||||
background-position: center center;
|
||||
background-size: cover;
|
||||
}
|
||||
&__name {
|
||||
height: 28px;
|
||||
padding: 0 8px;
|
||||
overflow: hidden;
|
||||
color: @file-item-name-color;
|
||||
line-height: 28px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
&__pixel {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
> span {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 2px 0;
|
||||
background: rgba(0, 0, 0, 0.01);
|
||||
}
|
||||
}
|
||||
&__time {
|
||||
display: none;
|
||||
}
|
||||
&__actions {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
58
src/styles/fix/_passport.less
Normal file
58
src/styles/fix/_passport.less
Normal file
@ -0,0 +1,58 @@
|
||||
@pro-passport-prefix: ~'.pro-passport';
|
||||
|
||||
@{pro-passport-prefix} {
|
||||
display: flex;
|
||||
flex-basis: 100%;
|
||||
align-items: stretch;
|
||||
justify-content: stretch;
|
||||
min-height: 100vh;
|
||||
overflow: hidden;
|
||||
&__langs {
|
||||
position: fixed;
|
||||
top: 16px;
|
||||
left: 16px;
|
||||
z-index: 9999;
|
||||
.alain-pro__header-item {
|
||||
height: auto;
|
||||
padding: 0;
|
||||
}
|
||||
.anticon {
|
||||
color: #fff !important;
|
||||
}
|
||||
}
|
||||
&__bg {
|
||||
padding: 0 24px;
|
||||
background-color: transparent;
|
||||
background-position: center center;
|
||||
background-size: cover;
|
||||
&-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: #000;
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
&__form {
|
||||
padding: 32px;
|
||||
&-logo {
|
||||
height: 32px;
|
||||
text-align: center;
|
||||
img {
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
&-title {
|
||||
margin: 16px 0;
|
||||
color: @grey-6;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
@media (max-width: @screen-md-max) {
|
||||
&__form {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
119
src/styles/fix/_quick-chat.less
Normal file
119
src/styles/fix/_quick-chat.less
Normal file
@ -0,0 +1,119 @@
|
||||
@quick-chat-prefix: ~'.quick-chat';
|
||||
|
||||
@{quick-chat-prefix} {
|
||||
position: fixed;
|
||||
top: auto;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: auto;
|
||||
z-index: 98;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
width: 320px;
|
||||
margin-right: 30px;
|
||||
line-height: initial;
|
||||
background-color: @quick-chat-bg;
|
||||
border: 1px solid @quick-chat-border-color;
|
||||
border-bottom: none;
|
||||
border-radius: 4px 4px 0 0;
|
||||
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14);
|
||||
&__bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
height: @quick-chat-bar-height;
|
||||
border-bottom: 1px solid @quick-chat-border-color;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
&--title {
|
||||
flex: 1;
|
||||
height: @quick-chat-bar-height;
|
||||
padding-left: 16px;
|
||||
font-size: 14px;
|
||||
line-height: @quick-chat-bar-height;
|
||||
&:hover {
|
||||
background-color: lighten(@quick-chat-bg, 2%);
|
||||
}
|
||||
&-has-message {
|
||||
animation: antSwingIn 1500ms infinite;
|
||||
}
|
||||
}
|
||||
&--menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: @quick-chat-bar-height;
|
||||
// padding: 0 8px 0 16px;
|
||||
.anticon {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
&--close {
|
||||
padding: 0 16px 0 8px;
|
||||
}
|
||||
}
|
||||
&__body {
|
||||
max-height: @quick-chat-content-height + @quick-chat-reply-height;
|
||||
transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
|
||||
}
|
||||
&__content {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: @quick-chat-content-height;
|
||||
.chat__scroll-container {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
&__reply {
|
||||
height: @quick-chat-reply-height;
|
||||
padding: 8px;
|
||||
border-top: 1px solid @quick-chat-border-color;
|
||||
&--ipt {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.chat__message {
|
||||
align-items: center;
|
||||
&-avatar {
|
||||
width: 28px;
|
||||
}
|
||||
}
|
||||
.chat__user-avatar {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
// When collapsed
|
||||
&__collapsed {
|
||||
@{quick-chat-prefix}__body {
|
||||
max-height: 0;
|
||||
.chat__scroll-container {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.quick-chat-rtl-mixin(@enabled) when(@enabled=true) {
|
||||
[dir='rtl'] {
|
||||
@{quick-chat-prefix} {
|
||||
right: inherit;
|
||||
left: 0;
|
||||
margin-right: inherit;
|
||||
margin-left: 30px;
|
||||
&__bar {
|
||||
&--title {
|
||||
padding-right: 16px;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.quick-chat-rtl-mixin(@rtl-enabled);
|
||||
22
src/styles/fix/_quill.less
Normal file
22
src/styles/fix/_quill.less
Normal file
@ -0,0 +1,22 @@
|
||||
.quill-editor {
|
||||
line-height: initial;
|
||||
&.ng-dirty.ng-invalid {
|
||||
.ql-toolbar,
|
||||
.ql-container {
|
||||
border-color: @error-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ql-sizes: '10px', '12px', '14px', '16px', '18px', '20px', '24px';
|
||||
|
||||
.ql-snow {
|
||||
.for(@ql-sizes, {
|
||||
.ql-size .ql-picker-label,
|
||||
.ql-size .ql-picker-item {
|
||||
&[data-value="@{adItem}"]::before {
|
||||
content: '@{adItem}';
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
99
src/styles/fix/_utils.less
Normal file
99
src/styles/fix/_utils.less
Normal file
@ -0,0 +1,99 @@
|
||||
.attachment {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
padding: 4px;
|
||||
border: 1px solid @grey-4;
|
||||
&-icon {
|
||||
padding: 2px;
|
||||
font-size: 40px;
|
||||
}
|
||||
&-img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
background-color: transparent;
|
||||
background-position: center center;
|
||||
background-size: cover;
|
||||
}
|
||||
}
|
||||
|
||||
.feed {
|
||||
&__icon {
|
||||
position: relative;
|
||||
&-tag {
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: -2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.img {
|
||||
&-thm {
|
||||
position: relative;
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
background-color: transparent;
|
||||
|
||||
&:hover {
|
||||
.img-thm__icon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&__mask {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
display: block;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
z-index: 3;
|
||||
display: block;
|
||||
color: #fff;
|
||||
font-size: 32px;
|
||||
opacity: 0;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
&__img {
|
||||
z-index: 1;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
&__zoom-in {
|
||||
overflow: hidden;
|
||||
.img-thm__icon {
|
||||
transform: translate(-50%, -50%) scale(0.6);
|
||||
}
|
||||
.img-thm__img {
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
&:hover {
|
||||
.img-thm__icon {
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
.img-thm__img {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:hover):not(:focus) {
|
||||
.img-thm__mask {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
18
src/styles/fix/antd.less
Normal file
18
src/styles/fix/antd.less
Normal file
@ -0,0 +1,18 @@
|
||||
// 下拉菜单
|
||||
.dd {
|
||||
// 按钮
|
||||
&-btn {
|
||||
display: block;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
color: @grey-6;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
background: @antd-dd-hover-background;
|
||||
border: 1px solid @border-color-split;
|
||||
}
|
||||
}
|
||||
}
|
||||
10
src/styles/fix/index.less
Normal file
10
src/styles/fix/index.less
Normal file
@ -0,0 +1,10 @@
|
||||
@import './theme-default.less';
|
||||
@import './antd.less';
|
||||
// tools
|
||||
@import './_utils.less';
|
||||
@import './_quill.less';
|
||||
@import './_file-manager.less';
|
||||
// pages
|
||||
@import './_chat.less';
|
||||
@import './_passport.less';
|
||||
@import './_quick-chat.less';
|
||||
1
src/styles/fix/theme-compact.less
Normal file
1
src/styles/fix/theme-compact.less
Normal file
@ -0,0 +1 @@
|
||||
@import './theme-default.less';
|
||||
10
src/styles/fix/theme-dark.less
Normal file
10
src/styles/fix/theme-dark.less
Normal file
@ -0,0 +1,10 @@
|
||||
@import './theme-default.less';
|
||||
|
||||
@chat-background: @popover-background;
|
||||
@chat-message-item-bg: darken(@popover-background, 10%);
|
||||
|
||||
@message-sidebox-bg: rgba(255, 255, 255, 0.03);
|
||||
|
||||
@calendar_fc-event_background: @popover-background;
|
||||
|
||||
@antd-dd-hover-background: @popover-background;
|
||||
33
src/styles/fix/theme-default.less
Normal file
33
src/styles/fix/theme-default.less
Normal file
@ -0,0 +1,33 @@
|
||||
// chat
|
||||
// --
|
||||
@chat-background: #fff;
|
||||
@chat-sidebox-width: 250px;
|
||||
@chat-avatar-box-width: 50px;
|
||||
@chat-message-item-bg: @grey-3;
|
||||
|
||||
// file-manager
|
||||
// --
|
||||
@file-item-name-color: #4e5155;
|
||||
@file-item-selected-border-color: @primary-color;
|
||||
@file-item-selected-bg: @blue-1;
|
||||
|
||||
// message
|
||||
// --
|
||||
@message-sidebox-width: 250px;
|
||||
@message-sidebox-bg: @grey-3;
|
||||
|
||||
// quick-chat
|
||||
// --
|
||||
@quick-chat-bg: @popover-background;
|
||||
@quick-chat-border-color: @border-color-split;
|
||||
@quick-chat-bar-height: 32px;
|
||||
@quick-chat-content-height: 320px;
|
||||
@quick-chat-reply-height: 50px;
|
||||
|
||||
// calendar
|
||||
// --
|
||||
@calendar_fc-event_background: #fff;
|
||||
|
||||
// antd
|
||||
// --
|
||||
@antd-dd-hover-background: @grey-3;
|
||||
Reference in New Issue
Block a user