2018-07-12 16:43:17 +00:00
|
|
|
@import (reference) "/customize/src/less2/include/colortheme-all.less";
|
|
|
|
@import (reference) "/customize/src/less2/include/leftside-menu.less";
|
2017-10-31 09:27:41 +00:00
|
|
|
|
2017-11-09 13:23:40 +00:00
|
|
|
@sidebar_button-width: 400px;
|
2017-10-31 09:27:41 +00:00
|
|
|
|
|
|
|
.sidebar-layout_main() {
|
2018-07-14 13:15:23 +00:00
|
|
|
--LessLoader_require: LessLoader_currentFile();
|
|
|
|
|
|
|
|
// This is way too broad to put in the global scope
|
2018-06-20 08:02:56 +00:00
|
|
|
input[type="text"], input[type="password"] {
|
2017-10-31 09:27:41 +00:00
|
|
|
padding-left: 10px;
|
|
|
|
}
|
2018-07-14 13:15:23 +00:00
|
|
|
}
|
|
|
|
& {
|
|
|
|
@leftside-bg: @colortheme_sidebar-left-bg;
|
|
|
|
@leftside-color: @colortheme_sidebar-left-fg;
|
|
|
|
@rightside-color: @colortheme_sidebar-right-fg;
|
|
|
|
@description-color: @colortheme_sidebar-description;
|
|
|
|
|
2017-10-31 10:11:29 +00:00
|
|
|
#cp-sidebarlayout-container {
|
2017-10-31 09:27:41 +00:00
|
|
|
font-size: 16px;
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
min-height: 0;
|
2017-10-31 10:11:29 +00:00
|
|
|
#cp-sidebarlayout-leftside {
|
2017-10-31 09:27:41 +00:00
|
|
|
color: @leftside-color;
|
|
|
|
width: 250px;
|
|
|
|
background: @leftside-bg;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
2017-10-31 10:11:29 +00:00
|
|
|
.cp-sidebarlayout-categories {
|
2017-10-31 09:27:41 +00:00
|
|
|
flex: 1;
|
2017-10-31 10:11:29 +00:00
|
|
|
.cp-sidebarlayout-category {
|
2019-10-01 12:10:44 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2017-10-31 09:27:41 +00:00
|
|
|
.leftside-menu-category_main();
|
|
|
|
}
|
|
|
|
}
|
2019-10-01 12:10:44 +00:00
|
|
|
&.cp-leftside-narrow {
|
|
|
|
transition: width 0.2s;
|
2019-10-04 15:31:12 +00:00
|
|
|
width: 55px;
|
2019-10-01 12:10:44 +00:00
|
|
|
.cp-sidebarlayout-category {
|
|
|
|
display: flex;
|
|
|
|
max-width: 100%;
|
|
|
|
align-items: center;
|
2019-10-04 15:31:12 +00:00
|
|
|
.fa, .cptools {
|
|
|
|
margin-right: 0;
|
|
|
|
flex: 0;
|
|
|
|
}
|
2019-10-01 12:10:44 +00:00
|
|
|
span.cp-sidebarlayout-category-name {
|
2019-10-04 15:31:12 +00:00
|
|
|
padding-left: 5px;
|
2019-10-01 12:10:44 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
min-width: 0;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
transition: width 0.5s;
|
|
|
|
width: 250px;
|
|
|
|
.cp-sidebarlayout-category {
|
|
|
|
span.cp-sidebarlayout-category-name {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-10-31 09:27:41 +00:00
|
|
|
}
|
2017-10-31 10:11:29 +00:00
|
|
|
#cp-sidebarlayout-rightside {
|
2017-10-31 09:27:41 +00:00
|
|
|
flex: 1;
|
|
|
|
padding: 5px 20px;
|
|
|
|
color: @rightside-color;
|
|
|
|
overflow: auto;
|
2017-10-31 10:11:29 +00:00
|
|
|
|
|
|
|
// Following rules are only in settings
|
2017-11-09 13:23:40 +00:00
|
|
|
.cp-sidebarlayout-element {
|
2017-10-31 09:27:41 +00:00
|
|
|
label:not(.noTitle), .label {
|
|
|
|
display: block;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2017-11-09 13:23:40 +00:00
|
|
|
.cp-sidebarlayout-description {
|
2017-10-31 09:27:41 +00:00
|
|
|
display: block;
|
|
|
|
color: @description-color;
|
|
|
|
margin-bottom: 5px;
|
2018-01-11 15:02:05 +00:00
|
|
|
p {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2017-10-31 09:27:41 +00:00
|
|
|
}
|
2018-04-17 16:48:06 +00:00
|
|
|
label.noTitle {
|
|
|
|
display: inline-flex;
|
2018-04-18 12:19:45 +00:00
|
|
|
.fa {
|
2018-04-17 16:48:06 +00:00
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
2017-10-31 09:27:41 +00:00
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
2018-06-20 08:02:56 +00:00
|
|
|
[type="text"], [type="password"], button {
|
2017-10-31 09:27:41 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
height: 40px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2017-11-09 13:23:40 +00:00
|
|
|
.cp-sidebarlayout-input-block {
|
2017-10-31 09:27:41 +00:00
|
|
|
display: inline-flex;
|
2017-11-09 13:23:40 +00:00
|
|
|
width: @sidebar_button-width;
|
2017-10-31 09:27:41 +00:00
|
|
|
input {
|
|
|
|
flex: 1;
|
|
|
|
border-radius: 0.25em 0 0 0.25em;
|
|
|
|
border: 1px solid #adadad;
|
|
|
|
border-right: 0px;
|
|
|
|
}
|
|
|
|
button {
|
|
|
|
border-radius: 0 0.25em 0.25em 0;
|
|
|
|
//border: 1px solid #adadad;
|
|
|
|
border-left: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&>div {
|
|
|
|
margin: 10px 0;
|
|
|
|
}
|
|
|
|
button.btn {
|
2017-10-31 10:11:29 +00:00
|
|
|
@button-bg: @colortheme_sidebar-button-bg;
|
|
|
|
@button-red-bg: @colortheme_sidebar-button-red-bg;
|
2019-06-27 15:08:12 +00:00
|
|
|
@button-alt-bg: @colortheme_sidebar-button-alt-bg;
|
2017-10-31 09:27:41 +00:00
|
|
|
background-color: @button-bg;
|
|
|
|
border-color: darken(@button-bg, 10%);
|
|
|
|
color: white;
|
|
|
|
&:hover {
|
|
|
|
background-color: darken(@button-bg, 10%);
|
|
|
|
}
|
2019-06-27 15:08:12 +00:00
|
|
|
&.btn-secondary {
|
|
|
|
background-color: @button-alt-bg;
|
|
|
|
border-color: darken(@button-alt-bg, 10%);
|
|
|
|
color: black;
|
|
|
|
&:hover {
|
|
|
|
background-color: darken(@button-alt-bg, 10%);
|
|
|
|
}
|
|
|
|
}
|
2017-10-31 09:27:41 +00:00
|
|
|
&.btn-danger {
|
|
|
|
background-color: @button-red-bg;
|
|
|
|
border-color: darken(@button-red-bg, 10%);
|
|
|
|
color: white;
|
|
|
|
&:hover {
|
|
|
|
background-color: darken(@button-red-bg, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|