acklen-keystone
Version:
Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose
316 lines (268 loc) • 5.76 kB
text/less
/* * * * * * * * * * * * * * * * * *
Common Style
* * * * * * * * * * * * * * * * * */
::selection {
background: @primary-color;
color: #fff;
}
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
li,
input,
textarea,
span,
div {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
}
html,
html a {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
}
body {
font-family: 'Roboto', sans-serif;
}
.trigger {
font-size: 18px;
line-height: 64px;
padding: 0 16px;
cursor: pointer;
transition: color .3s;
}
.isomorphicLayout {
width: calc(~"100% - 240px");
flex-shrink: 0;
overflow-x: hidden ;
@media only screen and (max-width: 767px) {
width: 100%;
}
@media only screen and (min-width: 768px) and (max-width: 1220px) {
width: calc(~"100% - 64px");
}
}
// 767 - 1220
.trigger:hover {
color: #4482ff;
}
.ant-layout-sider-collapsed .anticon {
font-size: 16px;
}
.ant-layout-sider-collapsed .nav-text {
display: none;
}
.ant-layout {
background: #f1f3f6;
overflow: auto;
}
.ant-checkbox-checked .ant-checkbox-inner,
.ant-checkbox-indeterminate .ant-checkbox-inner {
background-color: #4482ff;
border-color: #4482ff;
}
.ant-checkbox-wrapper:hover .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-inner,
.ant-checkbox-input:focus + .ant-checkbox-inner {
border-color: #4482ff;
}
.ant-menu-vertical {
border-right: 1px solid #e9e9e9;
}
.ant-menu-vertical .ant-menu-item {
border-right: 1px solid #e9e9e9;
}
.ant-popover .ant-popover-inner .ant-popover-inner-content a {
text-decoration: none;
}
.isoLayoutContentWrapper {
padding: 50px 15px;
display: flex;
flex-flow: row wrap;
overflow: hidden;
@media only screen and (max-width: 767px) {
padding: 50px 20px;
}
.isoComponentTitle {
font-size: @isoFontSize + 5;
font-weight: 500;
color: @isoColor--DarkBlue;
width: 100%;
margin: 0 17px;
margin-bottom: 30px;
display: flex;
align-items: center;
white-space: nowrap;
@media only screen and (max-width: 767px) {
margin: 0 10px;
margin-bottom: 30px;
}
&:before {
content: '';
width: 5px;
height: 40px;
background-color: darken(@isoColor--LightBluish, 5%);
display: flex;
margin-right: 15px;
}
&:after {
content: '';
width: 100%;
height: 1px;
background-color: darken(@isoColor--LightBluish, 5%);
display: flex;
margin-left: 15px;
}
}
.isoBoxWrapper {
width: 100%;
height: 100%;
// padding: 25px 30px;
padding: 20px;
background-color: #ffffff;
border: 1px solid @isoColor--Border;
margin: 0 17px 30px;
&:last-child {
margin-bottom: 0;
}
@media only screen and (max-width: 767px) {
padding: 20px;
margin: 0 10px 30px;
}
&.half {
width: calc(~"50% - 34px");
@media (max-width: 767px) {
width: 100%;
}
}
.isoBoxTitle {
font-size: @isoFontSize;
font-weight: 500;
color: @isoColor--Heading;
margin: 0;
margin-bottom: 5px;
}
.isoBoxSubTitle {
font-size: @isoFontSize - 1;
font-weight: 400;
color: @isoColor--TextDark;
line-height: 24px;
}
code {
font-size: @isoFontSize - 1;
font-weight: 400;
color: @isoColor--HeadingLight;
padding: 2px 7px;
background-color: @isoColor--DarkerWhite;
border: 1px solid @isoColor--Border;
.isoBorderRadius(3px);
}
.isoExampleWrapper {
margin-top: 30px;
-webkit-overflow-scrolling: touch;
.demoBtn {
margin-right: 10px;
}
.demoPosBtn {
width: 70px;
margin-right: 8px;
margin-bottom: 8px;
padding: 0;
@media only screen and (max-width: 480px) {
width: 65px;
}
}
.demoBtnsWrapper {
@media only screen and (max-width: 480px) {
margin-left: 0 ;
white-space: nowrap;
margin-right: 8px;
float: none ;
}
}
.ant-btn {
// margin-right: 8px;
&:last-child {
margin-right: 0;
}
}
.tooltipBtn {
display: inline-block;
line-height: 32px;
height: 32px;
width: 70px;
font-size: 14px;
text-align: center;
background: @isoColor--LightBluish;
margin-right: 6px;
margin-bottom: 6px;
border-radius: 6px;
}
.ant-progress {
&.ant-progress-circle {
margin-right: 15px;
&:last-child {
margin-right: 0;
}
}
}
strong {
font-weight: 700;
font-size: @isoFontSize;
}
}
}
}
@media (max-width: 580px) {
.isoLayoutContentWrapper {
padding: 15px;
}
}
.isoFormFieldTitle {
font-size: @isoFontSize;
font-weight: 700;
color: @isoColor--HeadingLight;
margin: 0 0 10px;
display: block;
}
.isoLeftRightComponent {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.isoCenterComponent {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.ant-row > div {
padding: 0;
}
.ant-layout-footer {
font-size: @isoFontSize - 1;
@media (max-width: 767px) {
padding: 10px 20px;
}
}
.isoEmptyComponent {
min-height: 74vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
span {
font-size: @isoFontSize * 2 + 8;
font-weight: 300;
color: @isoColor--GreyDark;
line-height: 1.5;
}
}