ant-design/site/common/styles/common.less

264 lines
4.9 KiB
Plaintext
Raw Normal View History

2016-03-15 17:40:31 +08:00
html {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html,
body {
height: 100%;
}
2016-03-08 16:12:04 +08:00
body {
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
2016-03-15 17:40:31 +08:00
line-height: 1.5;
color: #666;
font-size: 14px;
2016-03-08 16:12:04 +08:00
background: #ECECEC;
2016-03-15 17:40:31 +08:00
transition: background 1s cubic-bezier(0.075, 0.82, 0.165, 1);
overflow-x: hidden;
2016-03-08 16:12:04 +08:00
}
2016-03-22 19:19:37 +08:00
a {
transition: color .3s ease;
}
2016-02-29 14:08:40 +08:00
.main-wrapper {
background: #fff;
width: 92%;
margin: 0 auto;
border-radius: 6px;
overflow: hidden;
padding: 24px 0 0;
margin-bottom: 24px;
position: relative;
}
.main-container {
2016-05-05 16:12:51 +08:00
padding: 0 8% 120px 4%;
2016-03-07 14:22:30 +08:00
margin-left: -1px;
2016-02-29 14:08:40 +08:00
background: #fff;
min-height: 500px;
overflow: hidden;
2016-03-07 14:22:30 +08:00
border-left: 1px solid #e9e9e9;
2016-04-18 13:43:33 +08:00
position: relative;
2016-03-01 16:20:32 +08:00
}
2016-03-24 17:13:19 +08:00
.aside-container {
2016-03-01 17:42:23 +08:00
padding-bottom: 50px;
2016-03-02 12:10:18 +08:00
2016-03-22 19:19:37 +08:00
&.ant-menu-inline .ant-menu-submenu-title h4,
&.ant-menu-inline > .ant-menu-item,
&.ant-menu-inline .ant-menu-item a {
2016-03-18 11:24:01 +08:00
font-size: 14px;
}
2016-03-02 12:10:18 +08:00
a[disabled] {
color: #ccc;
}
2016-03-01 17:42:23 +08:00
}
2016-03-24 17:13:19 +08:00
.aside-container .chinese {
2016-03-01 16:20:32 +08:00
font-size: 12px;
margin-left: 6px;
font-weight: normal;
opacity: .67;
2016-03-07 11:35:23 +08:00
}
.outside-link:after {
content: '\E669';
font-family: 'anticon';
margin-left: 5px;
font-size: 12px;
}
.outside-link.internal {
display: none;
2016-03-22 19:19:37 +08:00
}
2016-05-11 19:18:54 +08:00
.ant-site-loading {
height: 100vh;
width: 100vw;
background: #fff;
text-align: center;
display: table-cell;
vertical-align: middle;
img {
transform-style: preserve-3d;
display: block;
width: 70px;
margin: -50px auto 10px;
animation: loadTween 2S cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
2016-05-11 19:18:54 +08:00
}
}
#loading-text {
font-family: lato;
color: #777;
font-size: 16px;
letter-spacing: 2px;
> span {
display: inline-block;
&:first-child {
animation: xLeftMatrixR 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite alternate;
}
&:last-child {
animation: xRightMatrixR 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite alternate;
}
&.blank {
width: 0.4em;
}
}
}
.page-wrapper {
animation: pageEnter .3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.loop-yoyo-load(@index) when (@index >= 0) {
.yoyo-x-@{index} {
animation: ~"Load@{index}" 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite alternate;
2016-05-11 19:18:54 +08:00
}
.loop-yoyo-load(@index - 1);
2016-05-11 19:18:54 +08:00
}
.loop-yoyo-load(5);
@keyframes loadTween {
2016-05-11 19:18:54 +08:00
0% {
transform: rotateY(0deg);
2016-05-11 19:18:54 +08:00
}
50% {
transform: rotateY(180deg);
2016-05-11 19:18:54 +08:00
}
100% {
transform: rotateX(-180deg);
}
}
@keyframes xLeftMatrixR {
0% {
opacity: 0;
transform: translateX(-50px) rotate(-30deg) scale(1.5, 1.5);
}
20% {
opacity: 0;
transform: translateX(-50px) rotate(-30deg) scale(1.5, 1.5);
}
80% {
opacity: 1;
transform: translateX(0px) rotate(0deg) scale(1, 1);
}
}
@keyframes xRightMatrixR {
0% {
opacity: 0;
transform: translateX(50px) rotate(30deg) scale(1.5, 1.5);
}
20% {
opacity: 0;
transform: translateX(50px) rotate(30deg) scale(1.5, 1.5);
}
80% {
opacity: 1;
transform: translateX(0px) rotate(0deg) scale(1, 1);
}
}
@keyframes Load5 {
0% {
opacity: 0;
transform: translate(-30px, 30px) rotate(-30deg) scale(1.5, 1.5);
}
20% {
opacity: 0;
transform: translate(-30px, 30px) rotate(-30deg) scale(1.5, 1.5);
}
80% {
opacity: 1;
transform: translate(0, 0) rotate(0deg) scale(1, 1);
}
}
@keyframes Load4 {
0% {
opacity: 0;
transform: translate(30px, -30px) rotate(-30deg) scale(1.5, 1.5);
}
20% {
opacity: 0;
transform: translate(30px, -30px) rotate(-30deg) scale(1.5, 1.5);
}
80% {
opacity: 1;
transform: translate(0, 0) rotate(0deg) scale(1, 1);
}
}
@keyframes Load3 {
0% {
opacity: 0;
transform: translate(-30px, -30px) rotate(30deg) scale(1.5, 1.5);
}
20% {
opacity: 0;
transform: translate(-30px, -30px) rotate(30deg) scale(1.5, 1.5);
}
80% {
opacity: 1;
transform: translate(0, 0) rotate(0deg) scale(1, 1);
}
}
@keyframes Load2 {
0% {
opacity: 0;
transform: translate(-30px, 30px) rotate(-30deg) scale(1.5, 1.5);
}
20% {
opacity: 0;
transform: translate(-30px, 30px) rotate(-30deg) scale(1.5, 1.5);
}
80% {
opacity: 1;
transform: translate(0, 0) rotate(0deg) scale(1, 1);
}
}
@keyframes Load1 {
0% {
opacity: 0;
transform: translate(30px, 30px) rotate(30deg) scale(1.5, 1.5);
}
20% {
opacity: 0;
transform: translate(30px, 30px) rotate(30deg) scale(1.5, 1.5);
}
80% {
opacity: 1;
transform: translate(0, 0) rotate(0deg) scale(1, 1);
}
}
@keyframes Load0 {
0% {
opacity: 0;
transform: translate(30px, -30px) rotate(-30deg) scale(1.5, 1.5);
}
20% {
opacity: 0;
transform: translate(30px, -30px) rotate(-30deg) scale(1.5, 1.5);
}
80% {
opacity: 1;
transform: translate(0, 0) rotate(0deg) scale(1, 1);
}
}
@keyframes pageEnter {
from {
opacity: 0;
2016-05-11 19:18:54 +08:00
}
}