feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
1
modules/backend/assets/less/.gitignore
vendored
Normal file
1
modules/backend/assets/less/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.css
|
||||
37
modules/backend/assets/less/controls/alert.less
Normal file
37
modules/backend/assets/less/controls/alert.less
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// Custom alerts (Based on Sweet Alert)
|
||||
// --------------------------------------------------
|
||||
|
||||
.sweet-overlay {
|
||||
background-color: @overlay-background;
|
||||
z-index: @zindex-alert - 1;
|
||||
}
|
||||
|
||||
.sweet-alert {
|
||||
text-align: right;
|
||||
border-radius: @border-radius-base;
|
||||
.box-shadow(@popup-box-shadow);
|
||||
z-index: @zindex-alert;
|
||||
|
||||
h2 {
|
||||
word-break: break-word;
|
||||
word-wrap: break-word;
|
||||
max-height: 350px;
|
||||
overflow-y: auto;
|
||||
|
||||
margin: 10px 0 17px 0;
|
||||
color: #2b3e50;
|
||||
text-align: left;
|
||||
font-size: 15px;
|
||||
line-height: 23px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p.text-muted {
|
||||
margin-bottom: 20px;
|
||||
color: #555555;
|
||||
}
|
||||
}
|
||||
66
modules/backend/assets/less/controls/common.less
Normal file
66
modules/backend/assets/less/controls/common.less
Normal file
@@ -0,0 +1,66 @@
|
||||
//
|
||||
// Common control styles
|
||||
// --------------------------------------------------
|
||||
|
||||
//
|
||||
// The scroll panel can host a scrollbar control. It has a right border that covers
|
||||
// the scrollbar to satisfy the design requirements.
|
||||
//
|
||||
.control-scrollpanel {
|
||||
position: relative;
|
||||
background: @color-panel-light;
|
||||
|
||||
.control-scrollbar {
|
||||
&.vertical > .scrollbar-scrollbar {right: 0;}
|
||||
}
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
.tooltip-inner {
|
||||
text-align: left;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
|
||||
&.in {
|
||||
.opacity(1);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Logos
|
||||
//
|
||||
|
||||
.wn-logo-white, .oc-logo-white {
|
||||
background-image: url(../images/winter-logo-white.svg);
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.wn-logo, .oc-logo {
|
||||
background-image: url(../images/winter-logo.svg);
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.layout.control-tabs.wn-logo-transparent:not(.has-tabs), .layout.control-tabs.oc-logo-transparent:not(.has-tabs),
|
||||
.flex-layout-column.wn-logo-transparent:not(.has-tabs), .flex-layout-column.oc-logo-transparent:not(.has-tabs),
|
||||
.layout-cell.wn-logo-transparent, .layout-cell.oc-logo-transparent {
|
||||
background-size: 50% auto;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url(../images/winter-logo.svg);
|
||||
background-position: 50% 50%;
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
display: table-cell;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: rgba(249,249,249,0.7);
|
||||
}
|
||||
}
|
||||
427
modules/backend/assets/less/controls/filelist.less
Normal file
427
modules/backend/assets/less/controls/filelist.less
Normal file
@@ -0,0 +1,427 @@
|
||||
//
|
||||
// File list control
|
||||
// --------------------------------------------------
|
||||
|
||||
.control-filelist {
|
||||
.listPaddings (@level, @offset-base) when (@level > 0) {
|
||||
> li.group {
|
||||
> ul {
|
||||
> li > a {
|
||||
padding-left: (@level+2)*@offset-base;
|
||||
margin-left: -1*@level*@offset-base;
|
||||
}
|
||||
|
||||
.listPaddings(@level - 1, @offset-base);
|
||||
}
|
||||
}
|
||||
}
|
||||
.listPaddings (0, 27px) {}
|
||||
|
||||
p.no-data {
|
||||
padding: 22px 0;
|
||||
margin: 0;
|
||||
color: @color-filelist-norecords-text;
|
||||
font-size: @font-size-base;
|
||||
text-align: center;
|
||||
font-weight: normal;
|
||||
.border-radius(@border-radius-base);
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
font-weight: normal;
|
||||
line-height: 150%;
|
||||
position: relative;
|
||||
list-style: none;
|
||||
|
||||
a:hover {
|
||||
background: @color-list-hover;
|
||||
}
|
||||
|
||||
&.active > a {
|
||||
background: @color-list-active;
|
||||
position: relative;
|
||||
&:after {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 4px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background: @color-list-active-border;
|
||||
display: block;
|
||||
content: ' ';
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 10px 45px 10px 20px;
|
||||
outline: none;
|
||||
|
||||
&:hover, &:focus, &:active {text-decoration: none;}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
|
||||
&.title {
|
||||
font-weight: normal;
|
||||
color: @color-text-title;
|
||||
font-size: @font-size-base;
|
||||
}
|
||||
|
||||
&.description {
|
||||
color: @color-text-description;
|
||||
font-size: @font-size-base - 2;
|
||||
white-space: nowrap;
|
||||
font-weight: normal;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
strong {
|
||||
color: @color-text-title;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.group {
|
||||
> h4, > div.group > h4 {
|
||||
font-weight: normal;
|
||||
font-size: @font-size-base;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
padding: 10px 20px 10px 53px;
|
||||
color: @color-text-title;
|
||||
position: relative;
|
||||
outline: none;
|
||||
|
||||
&:hover { background: transparent; }
|
||||
|
||||
&:before, &:after {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
left: 33px;
|
||||
top: 9px;
|
||||
.icon(@folder);
|
||||
color: @color-list-icon;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: 20px;
|
||||
top: 9px;
|
||||
color: @color-list-arrow;
|
||||
.icon(@caret-right);
|
||||
.transform( ~'rotate(90deg) translate(5px, 0)' );
|
||||
.transition(all 0.1s ease);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> ul {
|
||||
> li > a {
|
||||
padding-left: 52px;
|
||||
}
|
||||
|
||||
> li.group {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.listPaddings(10, 27px);
|
||||
}
|
||||
|
||||
&[data-status=collapsed] {
|
||||
> h4 a:before, > div.group > h4 a:before {
|
||||
.transform(~'rotate(0deg) translate(3px, 0)');
|
||||
}
|
||||
|
||||
& > ul, & > div.subitems {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> div.controls {
|
||||
position: absolute;
|
||||
right: 19px;
|
||||
top: 6px;
|
||||
|
||||
.dropdown {
|
||||
width: 14px;
|
||||
height: 21px;
|
||||
|
||||
&.open a.control {
|
||||
display: block!important;
|
||||
&:before {
|
||||
visibility: visible;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a.control {
|
||||
color: @color-text-title;
|
||||
font-size: @font-size-base;
|
||||
visibility: hidden;
|
||||
overflow: hidden;
|
||||
width: 14px;
|
||||
height: 21px;
|
||||
display: none;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
.opacity(0.5);
|
||||
&:before {
|
||||
visibility: visible;
|
||||
display: block;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.opacity(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
> div.controls, > a.control {
|
||||
display: block!important;
|
||||
|
||||
> a.control {
|
||||
display: block!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: 0;
|
||||
|
||||
label {
|
||||
margin-right: 0;
|
||||
|
||||
&:before {
|
||||
border-color: @color-filelist-cb-border;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.single-line {
|
||||
ul {
|
||||
li a span.title {
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Templates have emphasis
|
||||
//
|
||||
|
||||
&.filelist-hero {
|
||||
.a-hover() {
|
||||
background: @color-filelist-hero-hover-bg;
|
||||
border-bottom: 1px solid @color-filelist-hero-hover-bg !important;
|
||||
span.title, span.description {
|
||||
color: @color-filelist-hero-hover-text !important;
|
||||
}
|
||||
|
||||
.list-icon {
|
||||
color: @color-filelist-hero-hover-text !important;
|
||||
}
|
||||
}
|
||||
|
||||
.a-active() {
|
||||
background: @color-filelist-hero-active-bg;
|
||||
border-bottom: 1px solid @color-filelist-hero-active-bg !important;
|
||||
span.title, span.description {
|
||||
color: @color-filelist-hero-active-text !important;
|
||||
}
|
||||
|
||||
.list-icon {
|
||||
color: @color-filelist-hero-active-text !important;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
li {
|
||||
background: @color-filelist-hero-item-bg;
|
||||
border-bottom: none;
|
||||
|
||||
> a {
|
||||
padding: 11px 45px 10px 50px;
|
||||
font-size: @font-size-base - 1;
|
||||
border-bottom: 1px solid @color-panel-light;
|
||||
|
||||
span.title {
|
||||
font-size: @font-size-base;
|
||||
font-weight: normal;
|
||||
color: @color-filelist-title-hero;
|
||||
}
|
||||
|
||||
span.description {
|
||||
font-size: @font-size-base - 1;
|
||||
}
|
||||
|
||||
.list-icon {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 22px;
|
||||
color: #b7c0c2;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.a-hover();
|
||||
}
|
||||
|
||||
&:active {
|
||||
.a-active();
|
||||
}
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
top: -2px;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
&.active {
|
||||
> a {
|
||||
border-bottom: 1px solid @color-list-active;
|
||||
|
||||
&:after {
|
||||
top: -1px;
|
||||
bottom: -1px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
> span.borders {
|
||||
&:before {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
display: block;
|
||||
left: 0;
|
||||
background-color: @color-list-active;
|
||||
}
|
||||
|
||||
&:before {top: -1px;}
|
||||
}
|
||||
|
||||
&:hover > span.borders:before {
|
||||
background-color: @color-filelist-hero-hover-bg;
|
||||
}
|
||||
|
||||
&:active > span.borders:before {
|
||||
background-color: @color-filelist-hero-active-bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> h4 {
|
||||
padding-top: 7px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid @color-panel-light;
|
||||
}
|
||||
|
||||
> div.controls {
|
||||
display: none;
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
top: 15px;
|
||||
|
||||
> a.control {
|
||||
width: 16px;
|
||||
height: 23px;
|
||||
background: transparent;
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
color: @color-filelist-hero-hover-text!important;
|
||||
padding: 0;
|
||||
|
||||
&:before {
|
||||
font-size: 17px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover > div.controls {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.separator {
|
||||
position: relative;
|
||||
border-bottom: 1px solid #95a5a6;
|
||||
padding: 12px 15px 13px 15px;
|
||||
|
||||
&:before {
|
||||
z-index: 31;
|
||||
.triangle(down, 19px, 11px, white);
|
||||
position: absolute;
|
||||
left: 13px;
|
||||
bottom: -8px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
z-index: 30;
|
||||
.triangle(down, 17px, 9px, #95a5a6);
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
bottom: -9px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
color: #2b3e50;
|
||||
font-size: @font-size-base;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> li.group {
|
||||
> ul > li > a {
|
||||
padding-left: 66px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.single-level {
|
||||
ul li:hover {
|
||||
background: @color-filelist-hero-hover-bg;
|
||||
|
||||
> a {
|
||||
.a-hover();
|
||||
}
|
||||
}
|
||||
ul li:active {
|
||||
background: @color-filelist-hero-active-bg;
|
||||
|
||||
> a {
|
||||
.a-active();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
25
modules/backend/assets/less/controls/global-notice.less
Normal file
25
modules/backend/assets/less/controls/global-notice.less
Normal file
@@ -0,0 +1,25 @@
|
||||
.global-notice {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5em;
|
||||
justify-content: space-between;
|
||||
z-index: 10500;
|
||||
background: #ab2a1c;
|
||||
color: #FFF;
|
||||
padding: 0.5em 0.75em;
|
||||
|
||||
.notice-icon {
|
||||
font-size: 1.5em;
|
||||
vertical-align: bottom;
|
||||
display: inline-block;
|
||||
margin-right: .25em;
|
||||
}
|
||||
|
||||
.notice-text {
|
||||
display: inline-block;
|
||||
vertical-align:middle;
|
||||
}
|
||||
}
|
||||
27
modules/backend/assets/less/controls/namevaluelist.less
Normal file
27
modules/backend/assets/less/controls/namevaluelist.less
Normal file
@@ -0,0 +1,27 @@
|
||||
table.name-value-list {
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
|
||||
th, td {
|
||||
padding: 4px 0 4px 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
tr:first-child {
|
||||
th, td {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 600;
|
||||
color: #95a5a6;
|
||||
padding-right: 15px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
td {
|
||||
color: #2b3e50;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
77
modules/backend/assets/less/controls/panels.less
Normal file
77
modules/backend/assets/less/controls/panels.less
Normal file
@@ -0,0 +1,77 @@
|
||||
div.panel {
|
||||
@panel-border-color: #e8eaeb;
|
||||
|
||||
padding: 20px;
|
||||
|
||||
&.no-padding {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&.no-padding-bottom {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
&.padding-top {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
&.padding-less {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
&.transparent {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&.border-left {
|
||||
border-left: 1px solid @panel-border-color;
|
||||
}
|
||||
|
||||
&.border-right {
|
||||
border-right: 1px solid @panel-border-color;
|
||||
}
|
||||
|
||||
&.border-bottom {
|
||||
border-bottom: 1px solid @panel-border-color;
|
||||
}
|
||||
|
||||
&.border-top {
|
||||
border-top: 1px solid @panel-border-color;
|
||||
}
|
||||
|
||||
&.triangle-down {
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
.triangle(down, 15px, 8px, white);
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
bottom: -8px;
|
||||
z-index: 101;
|
||||
}
|
||||
|
||||
&:before {
|
||||
.triangle(down, 17px, 9px, #e8eaeb);
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
bottom: -9px;
|
||||
z-index: 100;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Panel sections
|
||||
*/
|
||||
|
||||
h3.section, > label {
|
||||
text-transform: uppercase;
|
||||
color: #95a5a6;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 15px 0;
|
||||
}
|
||||
|
||||
> label {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
69
modules/backend/assets/less/controls/record-navigation.less
Normal file
69
modules/backend/assets/less/controls/record-navigation.less
Normal file
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// Record navigation
|
||||
//
|
||||
// Previous/next navigation shown in the breadcrumb row of a form, letting the
|
||||
// user step through the sibling records of the controller's list (respecting
|
||||
// its active filters, search and sorting). Rendered by the FormController
|
||||
// behavior via formcontroller/partials/_record_navigation.php.
|
||||
// ========================================================================
|
||||
|
||||
.control-breadcrumb {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.form-record-nav {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
font-size: 12px;
|
||||
|
||||
.form-record-nav-position {
|
||||
color: #5a6b7b;
|
||||
font-weight: 600;
|
||||
letter-spacing: .3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.form-record-nav-group {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, .55);
|
||||
border: 1px solid rgba(0, 0, 0, .09);
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
|
||||
}
|
||||
|
||||
.form-record-nav-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 28px;
|
||||
height: 24px;
|
||||
color: #5a6b7b;
|
||||
text-decoration: none;
|
||||
transition: background-color .12s ease, color .12s ease;
|
||||
|
||||
& + .form-record-nav-btn {
|
||||
border-left: 1px solid rgba(0, 0, 0, .09);
|
||||
}
|
||||
|
||||
&:not(.is-disabled):hover {
|
||||
background-color: #fff;
|
||||
color: #1f2d3d;
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
color: #b6bfc7;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
51
modules/backend/assets/less/controls/reportwidgets.less
Normal file
51
modules/backend/assets/less/controls/reportwidgets.less
Normal file
@@ -0,0 +1,51 @@
|
||||
.report-widget {
|
||||
padding: 15px;
|
||||
background: white;
|
||||
.box-sizing(border-box);
|
||||
.border-radius(@border-radius-base);
|
||||
font-size: @font-size-base - 1;
|
||||
|
||||
h3 {
|
||||
font-size: @font-size-base;
|
||||
color: @color-report-widget-title;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
margin-top: 0;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.height-100 { height: 100px; }
|
||||
.height-200 { height: 200px; }
|
||||
.height-300 { height: 300px; }
|
||||
.height-400 { height: 400px; }
|
||||
.height-500 { height: 500px; }
|
||||
|
||||
p.report-description {
|
||||
margin-bottom: 0;
|
||||
margin-top: 15px;
|
||||
font-size: 12px;
|
||||
line-height: 190%;
|
||||
color: @color-report-widget-description;
|
||||
}
|
||||
|
||||
a:not(.btn) {
|
||||
color: @color-report-widget-link;
|
||||
text-decoration: none;
|
||||
&:hover {
|
||||
color: @link-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
p.flash-message.static {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.icon-circle {
|
||||
&.success { color: @brand-success; }
|
||||
&.primary { color: @brand-primary; }
|
||||
&.warning { color: @brand-warning; }
|
||||
&.danger { color: @brand-danger; }
|
||||
&.info { color: @brand-info; }
|
||||
}
|
||||
}
|
||||
125
modules/backend/assets/less/controls/scrollbar.less
Normal file
125
modules/backend/assets/less/controls/scrollbar.less
Normal file
@@ -0,0 +1,125 @@
|
||||
//
|
||||
// Scrollbar
|
||||
// --------------------------------------------------
|
||||
|
||||
.drag-noselect {
|
||||
.user-select(none);
|
||||
}
|
||||
|
||||
@scrollbar-thumb-size: 6px;
|
||||
|
||||
.control-scrollbar {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
|
||||
>.scrollbar-scrollbar {
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
.scrollbar-track {
|
||||
background-color: @color-scrollbar-track;
|
||||
position: relative;
|
||||
.border-radius(5px);
|
||||
|
||||
.scrollbar-thumb {
|
||||
background-color: @color-scrollbar-thumb;
|
||||
.border-radius(5px);
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
>.scrollbar-scrollbar {
|
||||
right: 0;
|
||||
margin-right: 5px;
|
||||
width: @scrollbar-thumb-size;
|
||||
.scrollbar-track {
|
||||
height: 100%;
|
||||
width: @scrollbar-thumb-size;
|
||||
.scrollbar-thumb {
|
||||
height: 20px;
|
||||
width: @scrollbar-thumb-size;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:active, &:hover {
|
||||
width: @scrollbar-thumb-size + 2px;
|
||||
.transition(width .3s);
|
||||
.scrollbar-track,
|
||||
.scrollbar-thumb {
|
||||
width: @scrollbar-thumb-size + 2px;
|
||||
.transition(width .3s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.horizontal {
|
||||
>.scrollbar-scrollbar {
|
||||
margin: 0 0 5px;
|
||||
clear: both;
|
||||
height: @scrollbar-thumb-size;
|
||||
.scrollbar-track {
|
||||
width: 100%;
|
||||
height: @scrollbar-thumb-size;
|
||||
.scrollbar-thumb {
|
||||
height: @scrollbar-thumb-size;
|
||||
margin: 2px 0;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:active, &:hover {
|
||||
height: @scrollbar-thumb-size + 2px;
|
||||
.transition(height .3s);
|
||||
.scrollbar-track,
|
||||
.scrollbar-thumb {
|
||||
height: @scrollbar-thumb-size + 2px;
|
||||
.transition(height .3s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html.mobile {
|
||||
.control-scrollbar {
|
||||
overflow: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
}
|
||||
|
||||
.no-touch .control-scrollbar {
|
||||
>.scrollbar-scrollbar {
|
||||
opacity: 0;
|
||||
.transition(opacity 0.3s);
|
||||
}
|
||||
|
||||
&:active >.scrollbar-scrollbar,
|
||||
&:hover >.scrollbar-scrollbar {opacity: 1;}
|
||||
}
|
||||
|
||||
@media (max-width: @screen-sm) {
|
||||
&.responsive-sidebar {
|
||||
> .layout-cell:last-child {
|
||||
.control-scrollbar {
|
||||
overflow: visible;
|
||||
height: auto;
|
||||
|
||||
.scrollbar-scrollbar {
|
||||
display: none!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
98
modules/backend/assets/less/controls/scrollpad.less
Normal file
98
modules/backend/assets/less/controls/scrollpad.less
Normal file
@@ -0,0 +1,98 @@
|
||||
.scrollpad-scrollbar-size-tester {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
overflow-y: scroll;
|
||||
position: absolute;
|
||||
top: -200px;
|
||||
left: -200px;
|
||||
|
||||
div {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
div.control-scrollpad {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
> div {
|
||||
overflow: hidden;
|
||||
overflow-y: scroll;
|
||||
height: 100%;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-direction=horizontal] > div {
|
||||
overflow-x: scroll;
|
||||
overflow-y: hidden;
|
||||
width: 100%;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: auto;
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
> .scrollpad-scrollbar {
|
||||
z-index: 199; // Be careful here
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 11px;
|
||||
background-color: @color-scrollbar-track;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
.border-radius(5px);
|
||||
.transition(opacity 0.3s);
|
||||
|
||||
.drag-handle {
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
min-height: 10px;
|
||||
width: 7px;
|
||||
background-color: @color-scrollbar-thumb;
|
||||
.border-radius(5px);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.opacity(.7);
|
||||
.transition(opacity 0 linear);
|
||||
}
|
||||
|
||||
&[data-visible] {
|
||||
.opacity(.7);
|
||||
}
|
||||
|
||||
&[data-hidden] {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-direction=horizontal] > .scrollpad-scrollbar {
|
||||
top: auto;
|
||||
left: 0;
|
||||
width: auto;
|
||||
height: 11px;
|
||||
|
||||
.drag-handle {
|
||||
right: auto;
|
||||
top: 2px;
|
||||
height: 7px;
|
||||
min-height: 0;
|
||||
min-width: 10px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
35
modules/backend/assets/less/controls/selector-group.less
Normal file
35
modules/backend/assets/less/controls/selector-group.less
Normal file
@@ -0,0 +1,35 @@
|
||||
.nav.selector-group {
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.01em;
|
||||
margin-bottom: 20px;
|
||||
|
||||
li {
|
||||
a {
|
||||
padding: 7px 20px 7px 23px;
|
||||
color: #95a5a6;
|
||||
}
|
||||
|
||||
&.active {
|
||||
border-left: 3px solid #e6802b;
|
||||
padding-left: 0;
|
||||
|
||||
a {
|
||||
padding-left: 20px;
|
||||
color: #2b3e50;
|
||||
}
|
||||
}
|
||||
|
||||
i[class^="icon-"] {
|
||||
font-size: 17px;
|
||||
margin-right: 6px;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.panel {
|
||||
.nav.selector-group {
|
||||
margin: 0 -20px 20px -20px;
|
||||
}
|
||||
}
|
||||
270
modules/backend/assets/less/controls/sidenav-tree.less
Normal file
270
modules/backend/assets/less/controls/sidenav-tree.less
Normal file
@@ -0,0 +1,270 @@
|
||||
.sidenav-tree {
|
||||
width: 300px;
|
||||
|
||||
.control-toolbar {
|
||||
padding: 0;
|
||||
|
||||
.toolbar-item {
|
||||
display: block;
|
||||
}
|
||||
|
||||
input.form-control {
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 12px 13px 13px;
|
||||
.border-radius(0);
|
||||
.box-shadow(inset -3px 0 3px rgba(0,0,0,0.1));
|
||||
|
||||
&.search {
|
||||
background-position: right -78px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
div.scrollbar-thumb {
|
||||
background: rgba(0,0,0,.2) !important;
|
||||
}
|
||||
|
||||
ul.top-level > li {
|
||||
&[data-status=collapsed] {
|
||||
> div.group {
|
||||
h3:before {
|
||||
.transform(~'rotate(0deg) translate(2px, -2px)');
|
||||
}
|
||||
|
||||
// Hide triangle
|
||||
&:before, &:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
> div.group {
|
||||
position: relative;
|
||||
|
||||
h3 {
|
||||
background: @color-sidebarnav-tree-group-bg;
|
||||
color: @color-sidebarnav-tree-group;
|
||||
text-transform: uppercase;
|
||||
font-size: 15px;
|
||||
padding: 15px 15px 15px 40px;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
font-weight: 400;
|
||||
|
||||
&:before {
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
left: 16px;
|
||||
top: 15px;
|
||||
color: @color-list-arrow;
|
||||
.icon(@angle-right);
|
||||
.transform(~'rotate(90deg) translate(5px, -3px)');
|
||||
.transition(all 0.1s ease);
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
// Use two triangles to achieve the darkening effect
|
||||
&:before,
|
||||
&:after {
|
||||
.triangle(down, 15px, 8px, @brand-primary);
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
bottom: -8px;
|
||||
z-index: 101;
|
||||
}
|
||||
|
||||
&:after {
|
||||
.triangle(down, 15px, 8px, @color-sidebarnav-tree-group-bg);
|
||||
}
|
||||
}
|
||||
|
||||
> ul {
|
||||
li {
|
||||
|
||||
a {
|
||||
display: block;
|
||||
position: relative;
|
||||
padding: 18px 25px 18px 55px;
|
||||
background: @color-sidebarnav-tree-inactive-bg;
|
||||
border-bottom: 1px solid @color-sidebarnav-tree-group-bg;
|
||||
color: @color-sidebarnav-tree-inactive-text;
|
||||
text-decoration: none !important;
|
||||
.opacity(.65);
|
||||
|
||||
&:active,
|
||||
&:hover {
|
||||
.opacity(1);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
i {
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
top: 18px;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
line-height: 150%;
|
||||
|
||||
&.header {
|
||||
color: @color-sidebarnav-tree-inactive-header;
|
||||
font-size: @font-size-base + 1;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
&.description {
|
||||
color: @color-sidebarnav-tree-inactive-desc;
|
||||
font-size: @font-size-base - 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover a,
|
||||
&.active a {
|
||||
.opacity(1);
|
||||
}
|
||||
|
||||
&.active {
|
||||
border-left: 5px solid @brand-secondary;
|
||||
|
||||
a {
|
||||
color: @color-sidebarnav-tree-active-text;
|
||||
padding-right: 20px;
|
||||
|
||||
span.header {
|
||||
color: @color-sidebarnav-tree-active-header;
|
||||
}
|
||||
|
||||
span.description {
|
||||
color: @color-sidebarnav-tree-active-text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// &:last-child a {
|
||||
// border-bottom: none;
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.back-link {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: @screen-sm-min) {
|
||||
.sidenav-tree-root .sidenav-tree {
|
||||
width: 600px;
|
||||
|
||||
ul.top-level > li > ul {
|
||||
font-size: 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
align-items: stretch;
|
||||
align-content: stretch;
|
||||
|
||||
> li {
|
||||
display: inline-block;
|
||||
// flex-grow: 1;
|
||||
width: 300px;
|
||||
|
||||
a {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
||||
.sidenav-tree-root .sidenav-tree {
|
||||
width: 100%;
|
||||
|
||||
ul.top-level > li > ul > li {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: @screen-lg-min) {
|
||||
.sidenav-tree-root .sidenav-tree {
|
||||
width: 900px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: @screen-sm) {
|
||||
.sidenav-tree {
|
||||
width: 100%;
|
||||
height: auto !important;
|
||||
display: block !important;
|
||||
|
||||
> .layout {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.sidenav-tree-root {
|
||||
.sidenav-tree {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
display: table-cell !important;
|
||||
|
||||
.back-link {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
> .layout {
|
||||
display: table !important;
|
||||
}
|
||||
}
|
||||
|
||||
#layout-body {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
body.has-sidenav-tree {
|
||||
.sidenav-tree {
|
||||
.back-link {
|
||||
display: block;
|
||||
padding: 13px 15px;
|
||||
background: @color-sidebarnav-back-link-bg;
|
||||
color: @color-sidebarnav-back-link-text;
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
text-transform: uppercase;
|
||||
i {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#layout-body {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
265
modules/backend/assets/less/controls/simplelist.less
Normal file
265
modules/backend/assets/less/controls/simplelist.less
Normal file
@@ -0,0 +1,265 @@
|
||||
//
|
||||
// Simple List
|
||||
// --------------------------------------------------
|
||||
// Usage (bullets):
|
||||
// <div class="control-simplelist">
|
||||
// <ul>
|
||||
// <li>Hello friend</li>
|
||||
// </ul>
|
||||
// </div>
|
||||
//
|
||||
// With icons (no bullets):
|
||||
// <div class="control-simplelist with-icons">
|
||||
// <ul>
|
||||
// <li class="wn-icon-check">Hello friend</li>
|
||||
// </ul>
|
||||
// </div>
|
||||
//
|
||||
// With checkboxes:
|
||||
// <div class="control-simplelist with-checkboxes">
|
||||
// <ul>
|
||||
// <li>
|
||||
// <div class="checkbox custom-checkbox">
|
||||
// <input id="checkbox-example1" name="checkbox" value="1" type="checkbox">
|
||||
// <label class="choice" for="checkbox-example1"> Dodge Viper</label>
|
||||
// </div>
|
||||
// </li>
|
||||
// </ul>
|
||||
// </div>
|
||||
//
|
||||
// Divided (basic):
|
||||
// <div class="control-simplelist is-divided">
|
||||
// <ul>
|
||||
// <li>Hello friend</li>
|
||||
// </ul>
|
||||
// </div>
|
||||
//
|
||||
// Selectable:
|
||||
// <div class="control-simplelist is-selectable">
|
||||
// <ul>
|
||||
// <li>
|
||||
// <a href="#">
|
||||
// <h5 class="heading">Hello friend</h5>
|
||||
// <p class="description">Something cool over here</p>
|
||||
// </a>
|
||||
// </li>
|
||||
// </ul>
|
||||
// </div>
|
||||
//
|
||||
// Selectable (box):
|
||||
// <div class="control-simplelist is-selectable-box">
|
||||
// <ul>
|
||||
// <li>
|
||||
// <a href="#">
|
||||
// <div class="box">
|
||||
// <div class="image"><i class="icon-user"></i></div>
|
||||
// </div>
|
||||
// <h5 class="heading">Hello friend</h5>
|
||||
// <p class="description">Something cool over here</p>
|
||||
// </a>
|
||||
// </li>
|
||||
// </ul>
|
||||
// </div>
|
||||
//
|
||||
|
||||
.control-simplelist {
|
||||
font-size: 13px;
|
||||
padding: 20px 20px 2px 20px;
|
||||
margin-bottom: @padding-standard;
|
||||
background: @color-form-checkboxlist-background;
|
||||
.border-radius(@border-radius-base);
|
||||
|
||||
ul { padding-left: 15px; }
|
||||
|
||||
&.form-control {
|
||||
ul { margin-bottom: 0; }
|
||||
li {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
&.with-icons,
|
||||
&.with-checkboxes,
|
||||
&.is-divided,
|
||||
&.is-selectable {
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.with-checkboxes {
|
||||
li {
|
||||
margin-top: -5px;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
div.custom-checkbox {
|
||||
margin-bottom: 0;
|
||||
|
||||
label {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.is-sortable {
|
||||
|
||||
li.placeholder {
|
||||
position: relative;
|
||||
&:before {
|
||||
top: -10px;
|
||||
position: absolute;
|
||||
.triangle(right, 5px, 9px, @color-sortable-caret);
|
||||
}
|
||||
}
|
||||
|
||||
li.dragged {
|
||||
position: absolute;
|
||||
.opacity(.5);
|
||||
z-index: 2000;
|
||||
color: @color-sortable-active;
|
||||
|
||||
width: auto !important; // Prevent browser scrollbars
|
||||
}
|
||||
}
|
||||
|
||||
&.is-scrollable {
|
||||
height: 200px;
|
||||
&.size-tiny { min-height: @size-tiny + 200; }
|
||||
&.size-small { min-height: @size-small + 200; }
|
||||
&.size-large { min-height: @size-large + 200; }
|
||||
&.size-huge { min-height: @size-huge + 200; }
|
||||
&.size-giant { min-height: @size-giant + 200; }
|
||||
}
|
||||
|
||||
&.is-divided,
|
||||
&.is-selectable,
|
||||
&.is-selectable-box {
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
.heading {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.description {}
|
||||
}
|
||||
}
|
||||
|
||||
&.is-divided,
|
||||
&.is-selectable {
|
||||
li {
|
||||
padding: 5px 10px;
|
||||
border-bottom: 1px solid @color-list-border;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.is-selectable {
|
||||
li {
|
||||
a {
|
||||
padding: 5px 10px;
|
||||
margin: -5px -10px;
|
||||
display: block;
|
||||
color: @text-color;
|
||||
}
|
||||
&:hover {
|
||||
background: @color-list-hover-bg;
|
||||
cursor: pointer;
|
||||
&, a { color: white; }
|
||||
a { text-decoration: none; }
|
||||
}
|
||||
|
||||
&.active {
|
||||
a {
|
||||
background: #f0f0f0;
|
||||
&:hover {
|
||||
background: @color-list-hover-bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.is-selectable-box {
|
||||
padding-top: 15px;
|
||||
margin-bottom: 0;
|
||||
|
||||
li {
|
||||
width: 155px;
|
||||
margin: 8px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
color: @text-color;
|
||||
|
||||
.box {
|
||||
display: block;
|
||||
width: 155px;
|
||||
height: 155px;
|
||||
border: 3px solid rgba(0,0,0,.1);
|
||||
position: relative;
|
||||
.transition(border .3s ease);
|
||||
}
|
||||
|
||||
.image {
|
||||
display: block;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-top: -28px;
|
||||
margin-left: -28px;
|
||||
|
||||
> i {
|
||||
font-size: 56px;
|
||||
color: rgba(0,0,0,.25);
|
||||
}
|
||||
}
|
||||
|
||||
.heading {
|
||||
margin: 7px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.box {
|
||||
border-color: rgba(0,0,0,.2);
|
||||
}
|
||||
|
||||
.image > i {
|
||||
color: rgba(0,0,0,.45);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list-preview .control-simplelist {
|
||||
&.is-selectable {
|
||||
ul {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
33
modules/backend/assets/less/controls/svg-icons.less
Normal file
33
modules/backend/assets/less/controls/svg-icons.less
Normal file
@@ -0,0 +1,33 @@
|
||||
.svg-icon-container {
|
||||
img.svg-icon {
|
||||
// SVG icons are invisible until SVG support is detected
|
||||
// with JavaScript to reduce flickering on page load.
|
||||
// This should be overridden in a specific control,
|
||||
// inside html.svg {}
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.svg-active-effects {
|
||||
img.svg-icon {
|
||||
-webkit-filter: grayscale(100%);
|
||||
filter: grayscale(100%);
|
||||
.opacity(0.6);
|
||||
}
|
||||
|
||||
&:hover, &.active {
|
||||
img.svg-icon {
|
||||
-webkit-filter: none;
|
||||
filter: none;
|
||||
.opacity(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html.svg {
|
||||
.svg-icon-container {
|
||||
i.svg-replace {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
61
modules/backend/assets/less/controls/tree-path.less
Normal file
61
modules/backend/assets/less/controls/tree-path.less
Normal file
@@ -0,0 +1,61 @@
|
||||
ul.tree-path {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin-bottom: 0;
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
margin-right: 1px;
|
||||
font-size: 13px;
|
||||
|
||||
&:after {
|
||||
.icon(@angle-right);
|
||||
display: inline-block;
|
||||
font-size: 13px;
|
||||
margin-left: 5px;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
color: #95a5a6;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
a {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.go-up {
|
||||
font-size: 12px;
|
||||
margin-right: 7px;
|
||||
|
||||
a {
|
||||
color: #95a5a6;
|
||||
|
||||
&:hover {
|
||||
color: @link-color;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.root a {
|
||||
font-weight: 600;
|
||||
color: #405261;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #95a5a6;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
93
modules/backend/assets/less/controls/treelist.less
Normal file
93
modules/backend/assets/less/controls/treelist.less
Normal file
@@ -0,0 +1,93 @@
|
||||
//
|
||||
// Tree List
|
||||
// --------------------------------------------------
|
||||
|
||||
.control-treelist {
|
||||
ol {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
|
||||
ol {
|
||||
margin: 0;
|
||||
margin-left: 15px;
|
||||
padding-left: 15px;
|
||||
border-left: 1px solid #dbdee0;
|
||||
}
|
||||
}
|
||||
|
||||
> ol > li > div.record:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
> div.record {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
margin-bottom: 5px;
|
||||
position: relative;
|
||||
display: block;
|
||||
|
||||
&:before {
|
||||
color: #bdc3c7;
|
||||
.icon(@circle);
|
||||
font-size: 6px;
|
||||
position: absolute;
|
||||
left: -18px;
|
||||
top: 11px;
|
||||
}
|
||||
|
||||
> a.move {
|
||||
display: inline-block;
|
||||
padding: 7px 0 7px 10px;
|
||||
text-decoration: none;
|
||||
color: #bdc3c7;
|
||||
&:hover {
|
||||
color: @color-list-hover-bg;
|
||||
}
|
||||
&:before { .icon(@bars); }
|
||||
}
|
||||
> span {
|
||||
color: @color-list-text;
|
||||
display: inline-block;
|
||||
padding: 7px 15px 7px 5px;
|
||||
}
|
||||
}
|
||||
|
||||
&.dragged {
|
||||
position: absolute;
|
||||
z-index: 2000;
|
||||
width: auto !important; // Prevent browser scrollbars
|
||||
height: auto !important;
|
||||
> div.record {
|
||||
.opacity(.5);
|
||||
background: @color-list-hover-bg !important;
|
||||
> a.move:before, > span { color: white; }
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.placeholder {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
background: @color-list-hover-bg !important;
|
||||
height: 25px;
|
||||
margin-bottom: 5px;
|
||||
&:before {
|
||||
display: block;
|
||||
position: absolute;
|
||||
.icon(@chevron-left);
|
||||
color: #d35714;
|
||||
left: -10px;
|
||||
top: 8px;
|
||||
z-index: 2000;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
630
modules/backend/assets/less/controls/treeview.less
Normal file
630
modules/backend/assets/less/controls/treeview.less
Normal file
@@ -0,0 +1,630 @@
|
||||
.control-treeview {
|
||||
margin-bottom: 40px;
|
||||
|
||||
.no-data() {
|
||||
padding: 18px 0;
|
||||
margin: 0;
|
||||
color: @color-filelist-norecords-text;
|
||||
font-size: @font-size-base;
|
||||
text-align: center;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
background: @color-treeview-item-bg;
|
||||
|
||||
> li {
|
||||
.transition(width 1s);
|
||||
|
||||
> div {
|
||||
font-size: @font-size-base;
|
||||
font-weight: normal;
|
||||
background: @color-treeview-item-bg;
|
||||
border-bottom: 1px solid @color-panel-light;
|
||||
position: relative;
|
||||
|
||||
> a {
|
||||
color: @color-treeview-item-title;
|
||||
padding: 11px 45px 10px 61px;
|
||||
display: block;
|
||||
line-height: 150%;
|
||||
text-decoration: none;
|
||||
.box-sizing(border-box);
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: ' ';
|
||||
background-image: url(../images/treeview-icons.png);
|
||||
background-position: 0px -28px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 42px auto;
|
||||
|
||||
position: absolute;
|
||||
width: 21px;
|
||||
height: 22px;
|
||||
left: 28px;
|
||||
top: 15px;
|
||||
}
|
||||
|
||||
span.comment {
|
||||
display: block;
|
||||
font-weight: 400;
|
||||
color: @color-treeview-item-comment;
|
||||
font-size: @font-size-base - 1;
|
||||
margin-top: 2px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
> span.expand {
|
||||
.hide-text();
|
||||
display: none;
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
top: 19px;
|
||||
left: 2px;
|
||||
cursor: pointer;
|
||||
color: @color-treeview-control;
|
||||
.transition(transform 0.1s ease);
|
||||
|
||||
&:before {
|
||||
.icon(@caret-right);
|
||||
line-height: 100%;
|
||||
font-size: @font-size-base + 1;
|
||||
|
||||
position: relative;
|
||||
left: 8px;
|
||||
top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
> span.drag-handle {
|
||||
.hide-text();
|
||||
.transition(opacity 0.4s);
|
||||
|
||||
position: absolute;
|
||||
right: 9px;
|
||||
bottom: 0;
|
||||
width: 18px;
|
||||
height: 19px;
|
||||
cursor: move;
|
||||
color: @color-treeview-control;
|
||||
.opacity(0);
|
||||
|
||||
&:before {
|
||||
.icon(@bars);
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
span.borders {
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
> ul.submenu {
|
||||
position: absolute;
|
||||
left: 20px;
|
||||
bottom: -36.9px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
z-index: 200;
|
||||
height: 37px;
|
||||
display: none;
|
||||
margin-left: 15px;
|
||||
|
||||
background: transparent url(../images/treeview-submenu-tabs.png) repeat-x left -39px;
|
||||
|
||||
&:before, &:after {
|
||||
background: transparent url(../images/treeview-submenu-tabs.png) no-repeat left top;
|
||||
content: ' ';
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 37px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: -20px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
background-position: -100px top;
|
||||
right: -20px;
|
||||
}
|
||||
|
||||
li {
|
||||
font-size: @font-size-base - 2;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 4px 3px 0 3px;
|
||||
color: @color-treeview-submenu-text;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
|
||||
i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
> ul.submenu {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
> ul.submenu {
|
||||
background-position: left -116px;
|
||||
|
||||
&:before {
|
||||
background-position: left -77px;
|
||||
}
|
||||
&:after {
|
||||
background-position: -100px -77px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
right: 0;
|
||||
|
||||
label {
|
||||
margin-right: 0;
|
||||
|
||||
&:before {
|
||||
border-color: @color-filelist-cb-border;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.popover-highlight {
|
||||
background-color: @color-treeview-hover-bg !important;
|
||||
|
||||
&:before {
|
||||
background-position: 0px -80px;
|
||||
}
|
||||
|
||||
> a {
|
||||
color: @color-treeview-hover-text !important;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
span {
|
||||
color: @color-treeview-hover-text !important;
|
||||
}
|
||||
|
||||
> ul.submenu, > span.drag-handle {
|
||||
display: none!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.dragged div, > div:hover {
|
||||
background-color: @color-treeview-hover-bg !important;
|
||||
|
||||
> a {
|
||||
color: @color-treeview-hover-text !important;
|
||||
}
|
||||
|
||||
&:before {
|
||||
background-position: 0px -80px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
top: 0 !important;
|
||||
bottom: 0 !important;
|
||||
}
|
||||
|
||||
span {
|
||||
color: @color-treeview-hover-text !important;
|
||||
|
||||
&.drag-handle {
|
||||
cursor: move;
|
||||
.opacity(1);
|
||||
}
|
||||
|
||||
&.borders {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> div:active {
|
||||
background-color: @color-treeview-active-bg !important;
|
||||
|
||||
> a {
|
||||
color: @color-treeview-active-text !important;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-no-drag-mode] div:hover {
|
||||
span.drag-handle {
|
||||
cursor: default!important;
|
||||
.opacity(.3)!important;
|
||||
}
|
||||
}
|
||||
|
||||
&.dragged {
|
||||
li.has-subitems, &.has-subitems {
|
||||
> div:before {
|
||||
background-position: 0px -52px;
|
||||
}
|
||||
}
|
||||
|
||||
div > ul.submenu {
|
||||
display: none!important;
|
||||
}
|
||||
}
|
||||
|
||||
> ol {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
&[data-status=collapsed] > ol {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.has-subitems {
|
||||
> div {
|
||||
&:before {
|
||||
background-position: 0 0;
|
||||
width: 23px;
|
||||
height: 26px;
|
||||
left: 26px;
|
||||
}
|
||||
|
||||
&:hover, &.popover-highlight {
|
||||
&:before { background-position: 0px -52px; }
|
||||
}
|
||||
|
||||
span.expand {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.placeholder {
|
||||
position: relative;
|
||||
.opacity(.5);
|
||||
|
||||
ol {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.dragged {
|
||||
position: absolute;
|
||||
z-index: 2000;
|
||||
.opacity(.25);
|
||||
|
||||
> div {
|
||||
.border-radius(3px);
|
||||
}
|
||||
|
||||
ol {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.drop-target {
|
||||
> div {
|
||||
background-color: #2581b8!important;
|
||||
|
||||
> a {
|
||||
color: @color-treeview-hover-text;
|
||||
> span.comment {
|
||||
color: @color-treeview-hover-text;
|
||||
}
|
||||
}
|
||||
|
||||
&:before {
|
||||
background-position: 0px -80px;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-subitems > div:before {
|
||||
background-position: 0px -52px;
|
||||
}
|
||||
}
|
||||
|
||||
&[data-status=expanded] > div > span.expand {
|
||||
.transform( ~'rotate(90deg) translate(0, 0)' );
|
||||
}
|
||||
|
||||
&.drag-ghost {
|
||||
background-color: transparent;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
&.active {
|
||||
> div {
|
||||
background: @color-list-active;
|
||||
|
||||
&:after {
|
||||
position: absolute;
|
||||
width: 4px;
|
||||
left: 0;
|
||||
top: -1px;
|
||||
bottom: -1px;
|
||||
background: @color-list-active-border;
|
||||
display: block;
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
> span.comment, > span.expand {
|
||||
color: @color-treeview-item-active-comment;
|
||||
}
|
||||
|
||||
> span.borders {
|
||||
&:before, &:after {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
display: block;
|
||||
left: 0;
|
||||
background-color: @color-list-active;
|
||||
}
|
||||
|
||||
&:before {top: -1px;}
|
||||
&:after {bottom: -1px;}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.no-data {
|
||||
.no-data();
|
||||
}
|
||||
}
|
||||
|
||||
@max-level: 10;
|
||||
|
||||
.tree-view-paddings (@level) when (@level > 0) {
|
||||
> li {
|
||||
> ol {
|
||||
> li > div {
|
||||
margin-left: -20-(@max-level - @level)*20px;
|
||||
margin-right: -20-(@max-level - @level)*20px;
|
||||
padding-left: 61+(@max-level - @level + 1)*10px;
|
||||
|
||||
> a {
|
||||
margin-left: -61-(@max-level - @level + 1)*10px;
|
||||
padding-left: 61+(@max-level - @level + 1)*10px;
|
||||
}
|
||||
|
||||
&:before {
|
||||
margin-left: (@max-level - @level + 1)*10px;
|
||||
}
|
||||
|
||||
> span.expand {
|
||||
left: 2+(@max-level - @level + 1)*10px;
|
||||
}
|
||||
}
|
||||
|
||||
.tree-view-paddings(@level - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tree-view-paddings (@max-level);
|
||||
}
|
||||
|
||||
p.no-data {
|
||||
.no-data();
|
||||
}
|
||||
|
||||
a.menu-control {
|
||||
display: block;
|
||||
margin: 20px;
|
||||
padding: 13px 15px;
|
||||
border: dotted 2px #ebebeb;
|
||||
color: #bdc3c7;
|
||||
font-size: @font-size-base - 2;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
border-radius: 5px;
|
||||
vertical-align: middle;
|
||||
|
||||
&:hover, &:focus {
|
||||
text-decoration: none;
|
||||
background-color: @color-treeview-hover-bg;
|
||||
color: @color-treeview-hover-text;
|
||||
border: none;
|
||||
padding: 15px 17px;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: @color-treeview-active-bg;
|
||||
color: @color-treeview-active-text;
|
||||
}
|
||||
|
||||
i {
|
||||
margin-right: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Light version of the treeview - transparent background, no bottom borders,
|
||||
* smaller paddings, inline submenu
|
||||
*/
|
||||
&.treeview-light {
|
||||
margin-bottom: 0;
|
||||
margin-top: 20px;
|
||||
|
||||
ol {
|
||||
background-color: transparent;
|
||||
> li {
|
||||
> div {
|
||||
background-color: transparent;
|
||||
border-bottom: none;
|
||||
|
||||
&:before {
|
||||
top: 15px;
|
||||
}
|
||||
|
||||
> a {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
span.expand {
|
||||
top: 19px;
|
||||
}
|
||||
|
||||
> span.drag-handle {
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
height: 100%;
|
||||
width: 60px;
|
||||
background: @color-treeview-light-submenu-bg;
|
||||
.transition(none)!important;
|
||||
|
||||
&:before {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -6px;
|
||||
}
|
||||
}
|
||||
|
||||
> ul.submenu {
|
||||
right: 60px;
|
||||
left: auto;
|
||||
bottom: auto;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
background: transparent;
|
||||
white-space: nowrap;
|
||||
font-size: 0;
|
||||
|
||||
&:before, &:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
li {
|
||||
height: 100%;
|
||||
display: inline-block;
|
||||
background: @color-treeview-light-submenu-bg;
|
||||
border-right: 1px solid @color-treeview-light-submenu-border;
|
||||
|
||||
p {
|
||||
display: table;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
height: 100%;
|
||||
padding: 0 20px;
|
||||
font-size: @font-size-base - 1;
|
||||
.box-sizing(border-box);
|
||||
|
||||
i.control-icon {
|
||||
font-size: 22px;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Sorting guides
|
||||
//
|
||||
|
||||
body.dragging .control-treeview {
|
||||
ol.dragging, ol.dragging ol {
|
||||
background: #ccc;
|
||||
padding-right: 0;
|
||||
|
||||
> li {
|
||||
> div {
|
||||
margin-right: 0;
|
||||
.transition(margin 1s);
|
||||
|
||||
.custom-checkbox {
|
||||
.transition(opacity .5s);
|
||||
.opacity(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.treeview-light {
|
||||
ol.dragging, ol.dragging ol {
|
||||
> li > div {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Retina
|
||||
//
|
||||
|
||||
@media only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {
|
||||
.control-treeview {
|
||||
ol {
|
||||
> li {
|
||||
> div{
|
||||
&:before {
|
||||
background-position: 0px -79px;
|
||||
background-size: 21px auto;
|
||||
}
|
||||
}
|
||||
|
||||
&.has-subitems > div {
|
||||
&:before {background-position: 0px -52px;}
|
||||
&:hover, &.popover-highlight {
|
||||
&:before {background-position: 0px -102px;}
|
||||
}
|
||||
}
|
||||
|
||||
&.dragged > div, &.dragged li > div, > div:hover, > div.popover-highlight {
|
||||
&:before {background-position: 0px -129px;}
|
||||
}
|
||||
|
||||
&.dragged {
|
||||
li.has-subitems, &.has-subitems {
|
||||
> div:before {
|
||||
background-position: 0px -102px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.drop-target {
|
||||
> div:before {
|
||||
background-position: 0px -129px;
|
||||
}
|
||||
|
||||
&.has-subitems > div:before {
|
||||
background-position: 0px -102px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
363
modules/backend/assets/less/core/animations.less
Normal file
363
modules/backend/assets/less/core/animations.less
Normal file
@@ -0,0 +1,363 @@
|
||||
//
|
||||
// Fade In
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.fadeIn {
|
||||
-webkit-animation-name: fadeIn;
|
||||
animation-name: fadeIn;
|
||||
}
|
||||
|
||||
//
|
||||
// Fade In Down
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeInDown {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, -100%, 0);
|
||||
transform: translate3d(0, -100%, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInDown {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, -100%, 0);
|
||||
-ms-transform: translate3d(0, -100%, 0);
|
||||
transform: translate3d(0, -100%, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
-ms-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.fadeInDown {
|
||||
-webkit-animation-name: fadeInDown;
|
||||
animation-name: fadeInDown;
|
||||
}
|
||||
|
||||
//
|
||||
// Fade In Left
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeInLeft {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(-100%, 0, 0);
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInLeft {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(-100%, 0, 0);
|
||||
-ms-transform: translate3d(-100%, 0, 0);
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
-ms-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.fadeInLeft {
|
||||
-webkit-animation-name: fadeInLeft;
|
||||
animation-name: fadeInLeft;
|
||||
}
|
||||
|
||||
//
|
||||
// Fade In Right
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeInRight {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInRight {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
-ms-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
-ms-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.fadeInRight {
|
||||
-webkit-animation-name: fadeInRight;
|
||||
animation-name: fadeInRight;
|
||||
}
|
||||
|
||||
//
|
||||
// Fade In Up
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeInUp {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInUp {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
-ms-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
-ms-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.fadeInUp {
|
||||
-webkit-animation-name: fadeInUp;
|
||||
animation-name: fadeInUp;
|
||||
}
|
||||
|
||||
@-webkit-keyframes fadeInUpBig {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, 2000px, 0);
|
||||
transform: translate3d(0, 2000px, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Fade Out
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.fadeOut {
|
||||
-webkit-animation-name: fadeOut;
|
||||
animation-name: fadeOut;
|
||||
}
|
||||
|
||||
//
|
||||
// Fade Out Down
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeOutDown {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeOutDown {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
-ms-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.fadeOutDown {
|
||||
-webkit-animation-name: fadeOutDown;
|
||||
animation-name: fadeOutDown;
|
||||
}
|
||||
|
||||
//
|
||||
// Fade Out Left
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeOutLeft {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(-100%, 0, 0);
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeOutLeft {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(-100%, 0, 0);
|
||||
-ms-transform: translate3d(-100%, 0, 0);
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.fadeOutLeft {
|
||||
-webkit-animation-name: fadeOutLeft;
|
||||
animation-name: fadeOutLeft;
|
||||
}
|
||||
|
||||
//
|
||||
// Fade Out Right
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeOutRight {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeOutRight {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
-ms-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.fadeOutRight {
|
||||
-webkit-animation-name: fadeOutRight;
|
||||
animation-name: fadeOutRight;
|
||||
}
|
||||
|
||||
//
|
||||
// Fade Out Up
|
||||
//
|
||||
|
||||
@-webkit-keyframes fadeOutUp {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, -100%, 0);
|
||||
transform: translate3d(0, -100%, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeOutUp {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, -100%, 0);
|
||||
-ms-transform: translate3d(0, -100%, 0);
|
||||
transform: translate3d(0, -100%, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.fadeOutUp {
|
||||
-webkit-animation-name: fadeOutUp;
|
||||
animation-name: fadeOutUp;
|
||||
}
|
||||
11
modules/backend/assets/less/core/boot.less
Normal file
11
modules/backend/assets/less/core/boot.less
Normal file
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// Boots the Core LESS
|
||||
//
|
||||
// Includes non-output LESS files such as mixins and variables
|
||||
//
|
||||
|
||||
// Core variables and mixins
|
||||
@import "../../../../system/assets/ui/less/global.less";
|
||||
|
||||
@import "variables.less";
|
||||
@import "mixins.less";
|
||||
165
modules/backend/assets/less/core/mixins.less
Normal file
165
modules/backend/assets/less/core/mixins.less
Normal file
@@ -0,0 +1,165 @@
|
||||
// --------------------------------------------------
|
||||
// Flexbox LESS mixins
|
||||
// The spec: http://www.w3.org/TR/css3-flexbox
|
||||
// --------------------------------------------------
|
||||
|
||||
// Flexbox display
|
||||
// flex or inline-flex
|
||||
.flex-display() {
|
||||
display: ~"-webkit-box";
|
||||
display: ~"-webkit-flex";
|
||||
display: ~"-moz-flex";
|
||||
display: ~"-ms-flexbox"; // IE10 uses -ms-flexbox
|
||||
display: ~"-ms-flex"; // IE11
|
||||
display: flex;
|
||||
}
|
||||
|
||||
// The 'flex: 0 0 auto' shorthand
|
||||
.flex-fix() {
|
||||
-webkit-box-flex: 0;
|
||||
-webkit-flex: 0 0 auto;
|
||||
-moz-flex: 0 0 auto;
|
||||
-ms-flex: 0 0 auto;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
// The 'flex: 1 1 auto' shorthand
|
||||
.flex-stretch() {
|
||||
-webkit-box-flex: 1;
|
||||
-webkit-flex: 1 1 auto;
|
||||
-moz-flex: 1 1 auto;
|
||||
-ms-flex: 1 1 auto;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
// The 'flex: 1' shorthand
|
||||
.flex-stretch-constrain() {
|
||||
-webkit-box-flex: 1;
|
||||
-webkit-flex: 1;
|
||||
-moz-flex: 1;
|
||||
-ms-flex: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
// Flex Flow Direction Column
|
||||
// - applies to: flex containers
|
||||
.flex-direction-column() {
|
||||
-webkit-flex-direction: column;
|
||||
-moz-flex-direction: column;
|
||||
-webkit-box-orient: vertical;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
// Flex Flow Direction Row
|
||||
// - applies to: flex containers
|
||||
.flex-direction-row() {
|
||||
-webkit-flex-direction: row;
|
||||
-moz-flex-direction: row;
|
||||
-webkit-box-orient: horizontal;
|
||||
-ms-flex-direction: row;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
// Flex Line Wrapping
|
||||
// - applies to: flex containers
|
||||
// nowrap | wrap | wrap-reverse
|
||||
.flex-wrap(@wrap: nowrap) {
|
||||
-webkit-flex-wrap: @wrap;
|
||||
-moz-flex-wrap: @wrap;
|
||||
-ms-flex-wrap: @wrap;
|
||||
flex-wrap: @wrap;
|
||||
}
|
||||
|
||||
// Flex Direction and Wrap
|
||||
// - applies to: flex containers
|
||||
// <flex-direction> || <flex-wrap>
|
||||
.flex-flow(@flow) {
|
||||
-webkit-flex-flow: @flow;
|
||||
-moz-flex-flow: @flow;
|
||||
-ms-flex-flow: @flow;
|
||||
flex-flow: @flow;
|
||||
}
|
||||
|
||||
// Display Order
|
||||
// - applies to: flex items
|
||||
// <integer>
|
||||
.flex-order(@order: 0) {
|
||||
-webkit-order: @order;
|
||||
-moz-order: @order;
|
||||
-ms-order: @order;
|
||||
order: @order;
|
||||
}
|
||||
|
||||
// Flex grow factor
|
||||
// - applies to: flex items
|
||||
// <number>
|
||||
.flex-grow(@grow: 0) {
|
||||
-webkit-flex-grow: @grow;
|
||||
-moz-flex-grow: @grow;
|
||||
-ms-flex-grow: @grow;
|
||||
flex-grow: @grow;
|
||||
}
|
||||
|
||||
// Flex shr
|
||||
// - applies to: flex itemsink factor
|
||||
// <number>
|
||||
.flex-shrink(@shrink: 1) {
|
||||
-webkit-flex-shrink: @shrink;
|
||||
-moz-flex-shrink: @shrink;
|
||||
-ms-flex-shrink: @shrink;
|
||||
flex-shrink: @shrink;
|
||||
}
|
||||
|
||||
// Flex basis
|
||||
// - the initial main size of the flex item
|
||||
// - applies to: flex itemsnitial main size of the flex item
|
||||
// <width>
|
||||
.flex-basis(@width: auto) {
|
||||
-webkit-flex-basis: @width;
|
||||
-moz-flex-basis: @width;
|
||||
-ms-flex-basis: @width;
|
||||
flex-basis: @width;
|
||||
}
|
||||
|
||||
// Axis Alignment
|
||||
// - applies to: flex containers
|
||||
// flex-start | flex-end | center | space-between | space-around
|
||||
.justify-content(@justify: flex-start) {
|
||||
-webkit-justify-content: @justify;
|
||||
-moz-justify-content: @justify;
|
||||
-ms-justify-content: @justify;
|
||||
-webkit-box-pack: @justify;
|
||||
justify-content: @justify;
|
||||
}
|
||||
|
||||
// Packing Flex Lines
|
||||
// - applies to: multi-line flex containers
|
||||
// flex-start | flex-end | center | space-between | space-around | stretch
|
||||
.align-content(@align: stretch) {
|
||||
-webkit-align-content: @align;
|
||||
-moz-align-content: @align;
|
||||
-webkit-box-align: @align;
|
||||
-ms-align-content: @align;
|
||||
align-content: @align;
|
||||
}
|
||||
|
||||
// Cross-axis Alignment
|
||||
// - applies to: flex containers
|
||||
// flex-start | flex-end | center | baseline | stretch
|
||||
.align-items(@align: stretch) {
|
||||
-webkit-align-items: @align;
|
||||
-moz-align-items: @align;
|
||||
-ms-align-items: @align;
|
||||
align-items: @align;
|
||||
}
|
||||
|
||||
// Cross-axis Alignment
|
||||
// - applies to: flex items
|
||||
// auto | flex-start | flex-end | center | baseline | stretch
|
||||
.align-self(@align: auto) {
|
||||
-webkit-align-self: @align;
|
||||
-moz-align-self: @align;
|
||||
-ms-align-self: @align;
|
||||
align-self: @align;
|
||||
}
|
||||
153
modules/backend/assets/less/core/variables.less
Normal file
153
modules/backend/assets/less/core/variables.less
Normal file
@@ -0,0 +1,153 @@
|
||||
//
|
||||
// Override UI variables
|
||||
// --------------------------------------------------
|
||||
|
||||
@font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
|
||||
//
|
||||
// Paths
|
||||
// --------------------------------------------------
|
||||
|
||||
@type-font-path: "../font";
|
||||
|
||||
//
|
||||
// Colors
|
||||
// --------------------------------------------------
|
||||
|
||||
@color-border: #cccccc;
|
||||
@color-border-light: #e1e1e1;
|
||||
|
||||
@color-mainmenu: #151515;
|
||||
@color-mainmenu-inactive: rgba(255,255,255,.6);
|
||||
@color-mainmenu-active: #ffffff;
|
||||
@color-mainmenu-active-bg: #262626;
|
||||
@color-mainmenu-collapsed: #000000;
|
||||
|
||||
@color-accountmenu-bg: #f9f9f9;
|
||||
@color-accountmenu-text: #666666;
|
||||
@color-accountmenu-divider: #e0e0e0;
|
||||
|
||||
@color-footer: rgba(255,255,255,.8);
|
||||
@color-footer-border: #dfdfdf;
|
||||
@color-footer-text: #666666;
|
||||
|
||||
@color-sidebarnav-active-text: #ffffff;
|
||||
@color-sidebarnav-active-icon: #ffffff;
|
||||
@color-sidebarnav-inactive-text: rgba(255,255,255,.6);
|
||||
@color-sidebarnav-inactive-icon: rgba(255,255,255,.6);
|
||||
@color-sidebarnav-counter-bg: #d9350f;
|
||||
@color-sidebarnav-counter-text: #ffffff;
|
||||
|
||||
@color-sidebarnav-tree-group: #ecf0f1;
|
||||
@color-sidebarnav-tree-group-bg: rgba(0,0,0,.15);
|
||||
@color-sidebarnav-tree-inactive-header: #ffffff;
|
||||
@color-sidebarnav-tree-inactive-desc: rgba(255,255,255,.6);
|
||||
@color-sidebarnav-tree-inactive-text: #ffffff;
|
||||
@color-sidebarnav-tree-active-header: #ffffff;
|
||||
@color-sidebarnav-tree-inactive-bg: transparent;
|
||||
@color-sidebarnav-tree-active-text: rgba(255,255,255,.91);
|
||||
@color-sidebarnav-tree-active-marker: @brand-secondary;
|
||||
@color-sidebarnav-back-link-bg: #2b3e50;
|
||||
@color-sidebarnav-back-link-text: #bdc3c7;
|
||||
|
||||
@color-scrollbar-track: transparent;
|
||||
@color-scrollbar-thumb: rgba(0,0,0,.35);
|
||||
@color-scrollpanel-border: #efefef;
|
||||
@color-scrollpanel-fix-button: #aaaaaa;
|
||||
@color-scrollpanel-fix-button-light: #eeeeee;
|
||||
@color-scroll-indicator: #bbbbbb;
|
||||
|
||||
@color-panel-light: #ECF0F1;
|
||||
|
||||
@color-outer-muted-text: rgba(255,255,255,.44);
|
||||
@color-outer-heading: #feffff;
|
||||
@color-outer-description: #999999;
|
||||
@color-outer-bg: #2b3e50;
|
||||
@color-outer-header: @body-bg;
|
||||
@color-outer-form-label: #666666;
|
||||
|
||||
@color-breadcrumb-text-active: #9da3a7;
|
||||
@color-breadcrumb-text: #9B9B9B;
|
||||
@color-breadcrumb-background: #2b343d;
|
||||
|
||||
@color-custom-input-icon: #666666;
|
||||
@color-custom-input-border: #999999;
|
||||
|
||||
@color-input-sidebar-control: #C4C4C4;
|
||||
|
||||
@color-switch-input-bg: #f6f6f6;
|
||||
@color-switch-input-on: #8da85e;
|
||||
@color-switch-input-off: #cc3300;
|
||||
|
||||
@color-custom-select-border: #b2b9be;
|
||||
@color-custom-select-bg: #f6f6f6;
|
||||
@color-custom-select-bg-hover: #4da7e8;
|
||||
|
||||
@color-filelist-norecords-text: #666666;
|
||||
@color-filelist-norecords-bg: #eeeeee;
|
||||
@color-filelist-cb-border: #cccccc;
|
||||
@color-filelist-title-hero: #2b3e50;
|
||||
@color-filelist-hero-item-bg: #ffffff;
|
||||
@color-filelist-hero-hover-bg: @highlight-hover-bg;
|
||||
@color-filelist-hero-hover-text: @highlight-hover-text;
|
||||
@color-filelist-hero-active-bg: @highlight-active-bg;
|
||||
@color-filelist-hero-active-text: @highlight-active-text;
|
||||
|
||||
@color-fancy-master-tabs-bg: @brand-secondary-darker;
|
||||
@color-fancy-master-tabs-active-text: #ffffff;
|
||||
@color-fancy-master-tabs-inactive-text: rgba(255, 255, 255, .35);
|
||||
@color-fancy-master-panel-bg: @brand-secondary-darker;
|
||||
|
||||
@color-fancy-secondary-tabs-bg: #475354;
|
||||
@color-fancy-secondary-tabs-active-text: #ffffff;
|
||||
@color-fancy-secondary-tabs-inactive-text: #919898;
|
||||
|
||||
@color-fancy-primary-tabs-bg: #7F8C8D;
|
||||
@color-fancy-primary-tabs-inactive-text: #95a5a6;
|
||||
@color-fancy-primary-tabs-active-text: #808c8d;
|
||||
@color-fancy-primary-tabs-active-bg: #fafafa;
|
||||
@color-fancy-primary-tabs-inactive-bg: #d5d9d8;
|
||||
|
||||
@color-fancy-form-tabless-fields-bg: @brand-secondary;
|
||||
@color-fancy-form-label: rgba(255, 255, 255, .5);
|
||||
@color-fancy-form-text: #ffffff;
|
||||
@color-fancy-form-text-selection: @brand-secondary-darker;
|
||||
@color-fancy-form-placeholder: rgba(255, 255, 255, .5);
|
||||
@color-fancy-form-inactive-tab: #2c9cb9;
|
||||
|
||||
@color-sortable-caret: #999999;
|
||||
@color-sortable-active: @brand-secondary;
|
||||
|
||||
@color-report-widget-title: #7e8c8d;
|
||||
@color-report-widget-control-inactive: #b6b6b6;
|
||||
@color-report-widget-description: @color-report-widget-title;
|
||||
@color-report-widget-link: @color-report-widget-title;
|
||||
|
||||
@color-treeview-item-bg: #ffffff;
|
||||
@color-treeview-item-title: #2b3e50;
|
||||
@color-treeview-item-comment: #95a5a6;
|
||||
@color-treeview-control: #bdc3c7;
|
||||
@color-treeview-hover-bg: @highlight-hover-bg;
|
||||
@color-treeview-hover-text: @highlight-hover-text;
|
||||
@color-treeview-active-bg: @highlight-active-bg;
|
||||
@color-treeview-active-text: @highlight-active-text;
|
||||
@color-treeview-item-active-comment: #8f8f8f;
|
||||
@color-treeview-submenu-text: #ffffff;
|
||||
@color-treeview-light-submenu-bg: #2581b8;
|
||||
@color-treeview-light-submenu-border: #328ec8;
|
||||
|
||||
//
|
||||
// Sizes
|
||||
// --------------------------------------------------
|
||||
@size-tiny: 50px;
|
||||
@size-small: 100px;
|
||||
@size-large: 200px;
|
||||
@size-huge: 250px;
|
||||
@size-giant: 350px;
|
||||
|
||||
//
|
||||
// Media breakpoints
|
||||
// --------------------------------------------------
|
||||
|
||||
@menu-breakpoint-min: 770px;
|
||||
@menu-breakpoint-max: (@menu-breakpoint-min - 1);
|
||||
17
modules/backend/assets/less/dashboard/dashboard.less
Normal file
17
modules/backend/assets/less/dashboard/dashboard.less
Normal file
@@ -0,0 +1,17 @@
|
||||
@import "../../../../backend/assets/less/core/boot.less";
|
||||
|
||||
.dashboard-container > .report-container {
|
||||
&.loading {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
.loading-indicator-container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
733
modules/backend/assets/less/layout/fancylayout.less
Normal file
733
modules/backend/assets/less/layout/fancylayout.less
Normal file
@@ -0,0 +1,733 @@
|
||||
//
|
||||
// FANCY LAYOUT
|
||||
// Applies branding colours to the Backend UI.
|
||||
//
|
||||
|
||||
//
|
||||
// --- TABS
|
||||
//
|
||||
|
||||
// Master tabs
|
||||
body.fancy-layout .master-tabs.control-tabs,
|
||||
.master-tabs.control-tabs.fancy-layout {
|
||||
overflow: hidden;
|
||||
|
||||
&:before, &:after {
|
||||
top: 13px;
|
||||
font-size: 14px;
|
||||
color: @color-fancy-master-tabs-inactive-text;
|
||||
}
|
||||
&:before { left: 8px; }
|
||||
&:after { right: 8px; }
|
||||
&.scroll-before:before { color: @color-fancy-master-tabs-active-text; }
|
||||
&.scroll-after:after { color: @color-fancy-master-tabs-active-text; }
|
||||
|
||||
> div > div.tabs-container {
|
||||
background: @color-fancy-master-tabs-bg;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
|
||||
> ul.nav-tabs {
|
||||
margin-left: -8px;
|
||||
> li {
|
||||
margin-left: -5px;
|
||||
top: 1px;
|
||||
padding-top: 3px;
|
||||
|
||||
span.tab-close {
|
||||
top: 14px;
|
||||
right: -3px;
|
||||
left: auto;
|
||||
z-index: 110;
|
||||
font-family: sans-serif;
|
||||
|
||||
i {
|
||||
top: 4px;
|
||||
right: 1px;
|
||||
color: rgba(255, 255, 255, 0.3) !important;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
|
||||
&:hover { color: @color-fancy-master-tabs-active-text !important; }
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom: none;
|
||||
background: transparent;
|
||||
font-size: 14px;
|
||||
color: @color-fancy-master-tabs-inactive-text;
|
||||
padding: 6px 0 0 24px!important;
|
||||
overflow: visible;
|
||||
|
||||
> span.title {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 12px 5px 0 5px;
|
||||
height: 38px;
|
||||
font-size: 14px;
|
||||
z-index: 100;
|
||||
background-color: @color-fancy-form-inactive-tab;
|
||||
|
||||
&:before, &:after {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
display: block;
|
||||
height: 37px;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background-color: @color-fancy-form-inactive-tab;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: -14px;
|
||||
.border-radius(8px 0 0 0);
|
||||
.transform( ~'skewX(-20deg)');
|
||||
|
||||
}
|
||||
|
||||
&:after {
|
||||
right: -14px;
|
||||
.border-radius(0 8px 0 0);
|
||||
.transform( ~'skewX(20deg)');
|
||||
}
|
||||
|
||||
span {
|
||||
border-top: none;
|
||||
padding: 0;
|
||||
margin-top: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
&:before {
|
||||
z-index: 110;
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
left: 22px;
|
||||
}
|
||||
|
||||
&[class*=icon] > span.title {
|
||||
padding-left: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
a {
|
||||
z-index: 107;
|
||||
color: @color-fancy-master-tabs-active-text;
|
||||
}
|
||||
span.tab-close i { color: @color-fancy-master-tabs-active-text; }
|
||||
|
||||
a > span.title {
|
||||
background-color: @color-fancy-form-tabless-fields-bg;
|
||||
z-index: 105;
|
||||
&:before {
|
||||
z-index: 107;
|
||||
background-color: @color-fancy-form-tabless-fields-bg;
|
||||
}
|
||||
&:after {
|
||||
background-color: @color-fancy-form-tabless-fields-bg;
|
||||
z-index: 107;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&[data-modified] {
|
||||
span.tab-close i {
|
||||
top: 5px;
|
||||
.hide-text();
|
||||
|
||||
&:before {
|
||||
.icon(@circle);
|
||||
font-size: 9px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&[data-closable] {
|
||||
> div > div.tabs-container {
|
||||
> ul.nav-tabs {
|
||||
> li {
|
||||
a > span.title {
|
||||
padding-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.has-tabs {
|
||||
&:before, &:after {display: block;}
|
||||
}
|
||||
|
||||
&.has-tabs {
|
||||
> div.tab-content {
|
||||
background: @body-bg;
|
||||
}
|
||||
}
|
||||
|
||||
> .tab-content > .tab-pane {
|
||||
padding: 0;
|
||||
|
||||
&.padded-pane {
|
||||
padding: @padding-standard @padding-standard 0 @padding-standard;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Primary Tabs
|
||||
.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs.primary-tabs,
|
||||
*:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs.fancy-layout.primary-tabs {
|
||||
&.master-area {
|
||||
> div > ul.nav-tabs {
|
||||
.transition(background-color 0.5s);
|
||||
background: @color-fancy-form-tabless-fields-bg;
|
||||
}
|
||||
}
|
||||
|
||||
> div > ul.nav-tabs {
|
||||
background: @color-fancy-primary-tabs-bg;
|
||||
margin-left: 0!important;
|
||||
margin-right: 0!important;
|
||||
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> li {
|
||||
background: transparent;
|
||||
border-right: none;
|
||||
margin-right: -8px;
|
||||
|
||||
&:first-child {
|
||||
margin-left: -5px;
|
||||
}
|
||||
|
||||
a {
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 12px 16px 0px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: @color-fancy-primary-tabs-inactive-text;
|
||||
|
||||
span.title {
|
||||
background: @color-fancy-primary-tabs-inactive-bg;
|
||||
border-top: none;
|
||||
padding: 5px 5px 3px 5px;
|
||||
|
||||
&:before, &:after {
|
||||
background: @color-fancy-primary-tabs-inactive-bg;
|
||||
border-width: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: -20px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
right: -20px;
|
||||
}
|
||||
|
||||
span {
|
||||
border-width: 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
a {
|
||||
color: @color-fancy-primary-tabs-active-text;
|
||||
&:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
span.title {
|
||||
background: @color-fancy-primary-tabs-active-bg;
|
||||
|
||||
&:before, &:after {
|
||||
background: @color-fancy-primary-tabs-active-bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .tab-content > .tab-pane {
|
||||
padding: @padding-standard @padding-standard 0 @padding-standard;
|
||||
|
||||
&.pane-compact {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.has-tabs {
|
||||
> div.tab-content {
|
||||
background: @body-bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Secondary tabs
|
||||
.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs.secondary-tabs {
|
||||
// Target horizontal scroll indicators
|
||||
&:before {
|
||||
left: 5px;
|
||||
}
|
||||
&:after {
|
||||
right: 5px;
|
||||
}
|
||||
> div > ul.nav-tabs {
|
||||
background: @color-fancy-secondary-tabs-bg;
|
||||
> li {
|
||||
border-right: none;
|
||||
padding-right: 0;
|
||||
margin-right: 0;
|
||||
a {
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 12px 10px 13px 10px;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
line-height: 14px;
|
||||
color: @color-fancy-secondary-tabs-inactive-text;
|
||||
|
||||
span {
|
||||
span {
|
||||
overflow: visible;
|
||||
border-top: none;
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
padding-left: 15px; // Will cause issues when first child is hidden
|
||||
}
|
||||
|
||||
&.active {
|
||||
a {color: @color-fancy-secondary-tabs-active-text;}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tab-collapse-icon {
|
||||
position: absolute;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
.opacity(0.6);
|
||||
.transition(all 0.3s);
|
||||
font-size: 12px;
|
||||
color: @color-fancy-master-tabs-active-text;
|
||||
right: 11px;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
.opacity(1);
|
||||
}
|
||||
|
||||
&.primary {
|
||||
color: @color-fancy-master-tabs-active-text;
|
||||
top: 12px;
|
||||
right: 11px;
|
||||
bottom: auto;
|
||||
z-index: 100;
|
||||
.scaleAxes(1, -1);
|
||||
|
||||
i {
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.primary-collapsed {
|
||||
.tab-collapse-icon.primary {
|
||||
.scaleAxes(1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
&.secondary-content-tabs {
|
||||
> div > ul.nav-tabs {
|
||||
background: @body-bg;
|
||||
|
||||
> li {
|
||||
margin-left: -19px;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
a {
|
||||
padding: 8px 16px 0 16px;
|
||||
font-weight: 400;
|
||||
height: 36px;
|
||||
color: #2b3e50;
|
||||
.opacity(0.6);
|
||||
|
||||
> span.title {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 8px 5px 9px 5px;
|
||||
font-size: 14px;
|
||||
z-index: 100;
|
||||
height: 27px!important;
|
||||
background-color: transparent;
|
||||
|
||||
&:before, &:after {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
width: 15px;
|
||||
height: 28px;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: -11px;
|
||||
.border-radius(8px 0 0 0);
|
||||
.transform( ~'skewX(-20deg)');
|
||||
}
|
||||
|
||||
&:after {
|
||||
right: -11px;
|
||||
.border-radius(0 8px 0 0);
|
||||
.transform( ~'skewX(20deg)');
|
||||
}
|
||||
|
||||
span {
|
||||
height: 18px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.active a {
|
||||
.opacity(1);
|
||||
|
||||
> span.title {
|
||||
background-color: white;
|
||||
&:before, &:after {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tab-collapse-icon.primary {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
&.primary-collapsed {
|
||||
.tab-collapse-icon.primary {
|
||||
color: @color-fancy-master-tabs-active-text;
|
||||
}
|
||||
|
||||
> div > ul.nav-tabs {
|
||||
background: @color-fancy-form-tabless-fields-bg;
|
||||
|
||||
> li {
|
||||
a {
|
||||
color: white;
|
||||
|
||||
> span.title {
|
||||
&:before, &:after {
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.active a {
|
||||
color: #2b3e50;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.has-tabs {
|
||||
> div.tab-content {
|
||||
background: @body-bg;
|
||||
}
|
||||
}
|
||||
|
||||
> .tab-content > .tab-pane {
|
||||
padding: 0;
|
||||
|
||||
&.padded-pane {
|
||||
padding: @padding-standard @padding-standard 0 @padding-standard;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Tabless (outside) fields
|
||||
.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .form-tabless-fields {
|
||||
.clearfix();
|
||||
position: relative;
|
||||
background: @color-fancy-form-tabless-fields-bg;
|
||||
padding: 18px 23px 0 23px;
|
||||
.transition(all 0.5s);
|
||||
|
||||
label {
|
||||
text-transform: uppercase;
|
||||
color: @color-fancy-form-label;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.form-control[disabled] {
|
||||
background-color: rgba(29, 29, 29, 0.11) !important;
|
||||
}
|
||||
|
||||
input[type=text] {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: @color-fancy-form-text;
|
||||
font-size: 35px;
|
||||
font-weight: 100;
|
||||
height: auto;
|
||||
padding: 0;
|
||||
.placeholder(@color-fancy-form-placeholder);
|
||||
.box-shadow(none);
|
||||
|
||||
&:focus, &:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.form-group {
|
||||
padding-bottom: 0;
|
||||
|
||||
&.is-required {
|
||||
> label:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tab-collapse-icon {
|
||||
position: absolute;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
.opacity(0.6);
|
||||
.transition(all 0.3s);
|
||||
font-size: 12px;
|
||||
color: @color-fancy-master-tabs-active-text;
|
||||
right: 11px;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
.opacity(1);
|
||||
}
|
||||
|
||||
&.primary {
|
||||
color: @color-fancy-master-tabs-active-text;
|
||||
top: 12px;
|
||||
right: 11px;
|
||||
bottom: auto;
|
||||
z-index: 100;
|
||||
.scaleAxes(1, -1);
|
||||
|
||||
i {
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&.tabless {
|
||||
top: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
&.collapsed {
|
||||
padding: 5px 23px 0 10px;
|
||||
|
||||
.tab-collapse-icon {
|
||||
&.tabless {
|
||||
.scaleAxes(1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
.form-group:not(.collapse-visible) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.form-buttons {
|
||||
margin-left: 10px;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.loading-indicator-container {
|
||||
.loading-indicator {
|
||||
background-color: @color-fancy-form-tabless-fields-bg;
|
||||
padding: 0 0 0 30px;
|
||||
color: @color-fancy-form-label;
|
||||
margin-top: 1px;
|
||||
height: 90%;
|
||||
font-size: 12px;
|
||||
line-height: 100%;
|
||||
> span {
|
||||
left: -10px;
|
||||
top: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// --- FANCY BREADCRUMBS
|
||||
//
|
||||
|
||||
body.breadcrumb-fancy .control-breadcrumb,
|
||||
.control-breadcrumb.breadcrumb-fancy {
|
||||
margin-bottom: 0;
|
||||
|
||||
background-color: mix(black, saturate(@color-fancy-form-tabless-fields-bg, 20%), 16%);
|
||||
|
||||
li {
|
||||
background-color: mix(black, saturate(@color-fancy-form-tabless-fields-bg, 20%), 31%);
|
||||
color: rgba(255,255,255, .5);
|
||||
|
||||
a {
|
||||
opacity: .5;
|
||||
.transition(all 0.3s ease);
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:last-child)::before {
|
||||
border-left-color: @color-fancy-form-tabless-fields-bg;
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
&:after {
|
||||
border-left-color: mix(black, saturate(@color-fancy-form-tabless-fields-bg, 20%), 31%);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
background-color: mix(black, saturate(@color-fancy-form-tabless-fields-bg, 20%), 16%);
|
||||
|
||||
&:before {
|
||||
opacity: 1;
|
||||
border-left-color: mix(black, saturate(@color-fancy-form-tabless-fields-bg, 20%), 16%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// --- FORM BUTTONS
|
||||
//
|
||||
|
||||
.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs .form-buttons:not(.normalized),
|
||||
.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .form-tabless-fields .form-buttons:not(.normalized) {
|
||||
.transition(all 0.5s);
|
||||
padding-top: 14px;
|
||||
padding-bottom: 5px;
|
||||
|
||||
.btn {
|
||||
padding: 0;
|
||||
margin-right: 5px;
|
||||
margin-top: -6px;
|
||||
margin-right: 30px;
|
||||
background: transparent;
|
||||
color: @color-fancy-master-tabs-active-text;
|
||||
font-weight: normal;
|
||||
.box-shadow(none);
|
||||
|
||||
.opacity(0.5);
|
||||
.transition(all 0.3s ease);
|
||||
|
||||
&:hover {
|
||||
.opacity(1);
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&[class^="wn-icon-"],
|
||||
&[class*=" wn-icon-"],
|
||||
&[class^="oc-icon-"],
|
||||
&[class*=" oc-icon-"] {
|
||||
&:before {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.fancy-layout form[class$="-data-changed"] *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs .btn.save {
|
||||
.opacity(1);
|
||||
}
|
||||
|
||||
//
|
||||
// --- FIELDS AND WIDGETS
|
||||
//
|
||||
|
||||
// Code editor
|
||||
.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs > .tab-content > .tab-pane > .form-group > .field-codeeditor {
|
||||
border: none !important;
|
||||
.border-radius(0);
|
||||
|
||||
.editor-code {
|
||||
.border-radius(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Rich editor
|
||||
.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs > .tab-content > .tab-pane > .form-group > .field-richeditor {
|
||||
border: none;
|
||||
border-left: 1px solid @color-form-field-border !important;
|
||||
|
||||
&, .fr-toolbar, .fr-wrapper {
|
||||
.border-radius(0);
|
||||
.border-top-radius(0);
|
||||
}
|
||||
}
|
||||
|
||||
// Rich editor in a secondary content tab
|
||||
.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs.secondary-content-tabs > .tab-content > .tab-pane > .form-group > .field-richeditor {
|
||||
.fr-toolbar {
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
|
||||
// Rich editor when the side panel is not fixed
|
||||
body.side-panel-not-fixed .fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs > .tab-content > .tab-pane > .form-group > .field-richeditor,
|
||||
body.side-panel-not-fixed.fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .control-tabs > .tab-content > .tab-pane > .form-group > .field-richeditor {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
// Loading indicator
|
||||
html.cssanimations .fancy-layout *:not(.nested-form):not(.modal-body) > .form-widget > .layout-row > .form-tabless-fields .loading-indicator-container .loading-indicator > span {
|
||||
.animation(spin 1s linear infinite);
|
||||
background-image: url('../../../system/assets/ui/images/loader-white.svg');
|
||||
background-size: 20px 20px;
|
||||
}
|
||||
50
modules/backend/assets/less/layout/flexlayout.less
Normal file
50
modules/backend/assets/less/layout/flexlayout.less
Normal file
@@ -0,0 +1,50 @@
|
||||
.flex-layout-column {
|
||||
.flex-display();
|
||||
.flex-direction-column();
|
||||
|
||||
&.full-height-strict {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&.absolute {
|
||||
position: absolute!important;
|
||||
}
|
||||
|
||||
&.fill-container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.flex-layout-row {
|
||||
.flex-display();
|
||||
.flex-direction-row();
|
||||
}
|
||||
|
||||
.flex-layout-column, .flex-layout-row {
|
||||
&.justify-center {.justify-content(center);}
|
||||
&.align-center {
|
||||
.align-items(center);
|
||||
.align-content(center);
|
||||
}
|
||||
|
||||
&.full-height {
|
||||
min-height: 100%;
|
||||
// height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.flex-layout-item {
|
||||
margin: 0;
|
||||
&.fix { .flex-fix(); }
|
||||
&.stretch { .flex-stretch(); }
|
||||
&.stretch-constrain { .flex-stretch-constrain(); }
|
||||
&.center { .align-self(center); }
|
||||
|
||||
&.relative { position: relative; }
|
||||
|
||||
&.layout-container { max-width: none; }
|
||||
}
|
||||
48
modules/backend/assets/less/layout/flyout.less
Normal file
48
modules/backend/assets/less/layout/flyout.less
Normal file
@@ -0,0 +1,48 @@
|
||||
.flyout-container {
|
||||
> .flyout {
|
||||
overflow: hidden;
|
||||
width: 0;
|
||||
left: 0!important;
|
||||
.transition(width 0.1s);
|
||||
}
|
||||
}
|
||||
|
||||
.flyout-overlay {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
z-index: 5000;
|
||||
position: absolute;
|
||||
background-color: rgba(0,0,0,0);
|
||||
.transition(background-color 0.3s);
|
||||
}
|
||||
|
||||
.flyout-toggle {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 0;
|
||||
width: 23px;
|
||||
height: 25px;
|
||||
background: #2b3e50;
|
||||
cursor: pointer;
|
||||
.border-right-radius(4px);
|
||||
color: #bdc3c7;
|
||||
font-size: 10px;
|
||||
|
||||
i {
|
||||
margin: 7px 0 0 6px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
&:hover i {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
body.flyout-visible {
|
||||
overflow: hidden;
|
||||
|
||||
.flyout-overlay {
|
||||
background-color: rgba(0,0,0,0.3);
|
||||
}
|
||||
}
|
||||
32
modules/backend/assets/less/layout/footer.less
Normal file
32
modules/backend/assets/less/layout/footer.less
Normal file
@@ -0,0 +1,32 @@
|
||||
@footer-zindex: 100;
|
||||
@footer-height: 60;
|
||||
|
||||
#layout-footer {
|
||||
width: 100%;
|
||||
z-index: @footer-zindex;
|
||||
height: @footer-height + 0px;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
color: @color-footer-text;
|
||||
background-color: @color-footer;
|
||||
border-top: 1px solid @color-footer-border;
|
||||
|
||||
.brand, .tagline {
|
||||
margin: 10px;
|
||||
height: (@footer-height - 20) + 0px;
|
||||
line-height: (@footer-height - 20) + 0px;
|
||||
}
|
||||
|
||||
.brand {
|
||||
float: left;
|
||||
font-size: 16px;
|
||||
.logo { margin: 0 10px; }
|
||||
.name { }
|
||||
}
|
||||
|
||||
.tagline {
|
||||
float: right;
|
||||
p { color: lighten(@color-footer-text, 20%); }
|
||||
}
|
||||
}
|
||||
|
||||
234
modules/backend/assets/less/layout/layout.less
Normal file
234
modules/backend/assets/less/layout/layout.less
Normal file
@@ -0,0 +1,234 @@
|
||||
//
|
||||
// Common layout elements
|
||||
// --------------------------------------------------
|
||||
|
||||
html:not(.mobile) body.drag * {
|
||||
cursor: grab !important;
|
||||
cursor: -webkit-grab !important;
|
||||
cursor: -moz-grab !important;
|
||||
}
|
||||
|
||||
// Used by sortable plugin
|
||||
body.dragging, body.dragging * {
|
||||
cursor: move !important;
|
||||
}
|
||||
|
||||
body.loading, body.loading * {
|
||||
cursor: wait !important;
|
||||
}
|
||||
|
||||
body.no-select {
|
||||
.user-select(none);
|
||||
cursor: default !important;
|
||||
}
|
||||
|
||||
//
|
||||
// Layout canvas
|
||||
//
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
/* The html and body elements cannot have any padding or margin. */
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: @font-family-base;
|
||||
background: @body-bg;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
#layout-canvas {
|
||||
min-height: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
//
|
||||
// Font
|
||||
//
|
||||
|
||||
// Removed for performance reasons
|
||||
//
|
||||
// @import url(https://fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic);
|
||||
//
|
||||
// body {
|
||||
// font-family: 'Noto Sans', sans-serif;
|
||||
// }
|
||||
|
||||
//
|
||||
// Tabs override for Layout
|
||||
// Primary tabs should use inset by default, unless otherwise specified
|
||||
// --------------------------------------------------
|
||||
|
||||
.control-tabs.primary-tabs {
|
||||
> ul.nav-tabs, > div > ul.nav-tabs, > div > div > ul.nav-tabs {
|
||||
margin-left: -(@padding-standard);
|
||||
margin-right: -(@padding-standard);
|
||||
}
|
||||
|
||||
&.tabs-no-inset {
|
||||
> ul.nav-tabs, > div > ul.nav-tabs, > div > div > ul.nav-tabs {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Flexible layout system
|
||||
// --------------------------------------------------
|
||||
|
||||
.layout {
|
||||
.layout-cell() {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
height: 100%;
|
||||
|
||||
&.layout-container, .layout-container, &.padded-container, .padded-container {
|
||||
padding: @padding-standard @padding-standard 0 @padding-standard;
|
||||
|
||||
// Container to sit flush to the element above
|
||||
.container-flush {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.layout-relative {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.layout-absolute {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.min-size {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
&.min-height {
|
||||
height: 0;
|
||||
}
|
||||
|
||||
&.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.middle {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
> .layout-row {
|
||||
display: table-row;
|
||||
vertical-align: top;
|
||||
height: 100%;
|
||||
|
||||
> .layout-cell {
|
||||
.layout-cell();
|
||||
}
|
||||
|
||||
&.min-size {
|
||||
height: 0.1px;
|
||||
}
|
||||
}
|
||||
|
||||
> .layout-cell {
|
||||
.layout-cell();
|
||||
}
|
||||
}
|
||||
|
||||
.whiteboard {
|
||||
background: white;
|
||||
}
|
||||
|
||||
.layout-fill-container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
//
|
||||
// Calculated fixed width
|
||||
//
|
||||
|
||||
[data-calculate-width] {
|
||||
> form, > div {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Layout styles
|
||||
//
|
||||
|
||||
body.compact-container {
|
||||
.layout {
|
||||
&.layout-container, .layout-container { padding: 0 !important; }
|
||||
}
|
||||
}
|
||||
|
||||
body.slim-container {
|
||||
.layout {
|
||||
&.layout-container, .layout-container { padding-left: 0 !important; padding-right: 0 !important; }
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Screen specific
|
||||
//
|
||||
|
||||
@media (max-width: @screen-sm) {
|
||||
.layout {
|
||||
.hide-on-small {
|
||||
display: none;
|
||||
}
|
||||
|
||||
//
|
||||
// Layout with a responsive sidebar
|
||||
//
|
||||
|
||||
&.responsive-sidebar {
|
||||
> .layout-cell:first-child {
|
||||
display: table-footer-group;
|
||||
height: auto;
|
||||
|
||||
.control-breadcrumb {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
> .layout-cell:last-child {
|
||||
display: table-header-group;
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
||||
.layout-absolute {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Browser specific
|
||||
//
|
||||
|
||||
// Remove focus outline for mouse clicks, keep for keyboard navigation
|
||||
@supports (-moz-appearance: none) {
|
||||
a:focus:not(:focus-visible) {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
680
modules/backend/assets/less/layout/mainmenu.less
Normal file
680
modules/backend/assets/less/layout/mainmenu.less
Normal file
@@ -0,0 +1,680 @@
|
||||
//
|
||||
// Top navigation bar
|
||||
// --------------------------------------------------
|
||||
|
||||
@mainmenu-mode-tile-height: 78px;
|
||||
@mainmenu-mode-inline-height: 60px;
|
||||
@mainmenu-mode-collapse-height: 45px;
|
||||
|
||||
@mainmenu-icon-dimension: 30px;
|
||||
@mainmenu-tile-dimension: 65px;
|
||||
@mainmenu-tile-label-height: 20px;
|
||||
@mainmenu-tile-label-width: 100px;
|
||||
|
||||
body.mainmenu-open {
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.mainmenu-item-link() {
|
||||
display: inline-block;
|
||||
font-size: @font-size-base;
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&:active, &:focus {
|
||||
text-decoration: none;
|
||||
color: @color-mainmenu-inactive;
|
||||
}
|
||||
|
||||
i {
|
||||
line-height: 1;
|
||||
font-size: 30px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.mainmenu-item-link-active() {
|
||||
// background: @color-mainmenu-active-bg;
|
||||
// .border-radius(3px);
|
||||
// .box-shadow(inset 0 -2px 0 rgba(0,0,0,.25));
|
||||
}
|
||||
|
||||
.mainmenu-set-height(@height) {
|
||||
height: @height;
|
||||
|
||||
ul.mainmenu-toolbar {
|
||||
li.mainmenu-quick-action {
|
||||
a {
|
||||
height: @height;
|
||||
line-height: @height;
|
||||
}
|
||||
}
|
||||
|
||||
li.mainmenu-account {
|
||||
> a {
|
||||
height: @height;
|
||||
line-height: @height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul li .mainmenu-accountmenu {
|
||||
top: @height + 10;
|
||||
}
|
||||
}
|
||||
|
||||
.mainmenu-tooltip {
|
||||
.tooltip-inner {
|
||||
font-size: @font-size-base - 1;
|
||||
padding: 6px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
ul.mainmenu-nav {
|
||||
font-size: @font-size-base;
|
||||
|
||||
li {
|
||||
/* Fix for SVG icons not rendering on initial page load until repaint (hover, move, etc) */
|
||||
.svg-icon {
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
span.counter {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: .143em;
|
||||
right: 0;
|
||||
padding: .143em .429em .214em .286em;
|
||||
background-color: @color-sidebarnav-counter-bg;
|
||||
color: @color-sidebarnav-counter-text;
|
||||
font-size: .786em;
|
||||
line-height: 100%;
|
||||
.border-radius(3px);
|
||||
.opacity(1);
|
||||
.scale(1);
|
||||
.transition(all 0.3s);
|
||||
|
||||
&.empty {
|
||||
.opacity(0);
|
||||
.scale(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nav#layout-mainmenu {
|
||||
background-color: @color-mainmenu;
|
||||
padding: 0 0 0 20px;
|
||||
line-height: 0;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
&:focus {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
float: left;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
li {
|
||||
color: @color-mainmenu-inactive;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
margin-right: 30px;
|
||||
|
||||
a {
|
||||
.mainmenu-item-link();
|
||||
padding: 14px 0 10px;
|
||||
|
||||
img.svg-icon {
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
margin-right: 10px;
|
||||
position: relative;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.nav {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar-item {
|
||||
flex: 1 1 auto;
|
||||
display: block;
|
||||
padding-right: 0;
|
||||
overflow: hidden;
|
||||
|
||||
&-account {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
&:before, &:after {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
left: -12px;
|
||||
}
|
||||
|
||||
&:after {
|
||||
right: -12px;
|
||||
}
|
||||
|
||||
&.scroll-active-before:before {
|
||||
color: @color-mainmenu-active;
|
||||
}
|
||||
|
||||
&.scroll-active-after:after {
|
||||
color: @color-mainmenu-active;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Toolbar
|
||||
//
|
||||
|
||||
ul.mainmenu-toolbar {
|
||||
li.mainmenu-quick-action {
|
||||
margin: 0;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 21px;
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
a {
|
||||
position: relative;
|
||||
padding: 0 10px;
|
||||
top: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
li.mainmenu-account {
|
||||
margin-right: 0;
|
||||
|
||||
> a {
|
||||
padding: 0 15px 0 10px;
|
||||
font-size: @font-size-base - 1;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&.highlight > a {
|
||||
z-index: @zindex-popover;
|
||||
}
|
||||
|
||||
img.account-avatar {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.account-name {
|
||||
//font-weight: bold;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
ul {
|
||||
line-height: 23px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Fading animation (disabled)
|
||||
//
|
||||
|
||||
&:hover {
|
||||
ul.mainmenu-nav li {
|
||||
//.transition(opacity .15s ease);
|
||||
//.opacity(1);
|
||||
}
|
||||
}
|
||||
|
||||
ul.mainmenu-nav li {
|
||||
//.opacity(.65);
|
||||
//.transition(opacity 5s ease);
|
||||
//.transition-delay(5s);
|
||||
|
||||
&.active {
|
||||
//.opacity(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// SVG support
|
||||
//
|
||||
|
||||
html.svg {
|
||||
nav#layout-mainmenu,
|
||||
.mainmenu-collapsed {
|
||||
img.svg-icon {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// User account menu
|
||||
//
|
||||
|
||||
nav#layout-mainmenu ul li .mainmenu-accountmenu {
|
||||
position: fixed;
|
||||
top: 0; // See mode for this value
|
||||
right: @padding-standard;
|
||||
background: @color-accountmenu-bg;
|
||||
z-index: @zindex-popover;
|
||||
display: none;
|
||||
.box-shadow(@overlay-box-shadow);
|
||||
border-radius: @border-radius-base;
|
||||
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:after {
|
||||
.triangle(up, 17px, 7px, @color-accountmenu-bg);
|
||||
right: 9px;
|
||||
top: -7px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
ul {
|
||||
float: none;
|
||||
display: block;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
display: block;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: (@padding-standard * 0.5) (@padding-standard * 1.5);
|
||||
text-align: left;
|
||||
font-size: @font-size-base;
|
||||
color: @color-accountmenu-text;
|
||||
|
||||
&:hover, &:focus {
|
||||
background: @highlight-hover-bg;
|
||||
color: @highlight-hover-text;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: @highlight-active-bg;
|
||||
color: @highlight-active-text;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child a {
|
||||
&:hover, &:focus, &:active {
|
||||
&:after {
|
||||
.triangle(up, 17px, 7px, @highlight-hover-bg);
|
||||
position: absolute;
|
||||
right: 9px;
|
||||
top: -7px;
|
||||
z-index: 102;
|
||||
}
|
||||
}
|
||||
&:active {
|
||||
&:after {
|
||||
.triangle(up, 17px, 7px, @highlight-active-bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
li.divider {
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
background-color: @color-accountmenu-divider;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Navbar (Inline mode)
|
||||
//
|
||||
|
||||
nav#layout-mainmenu.navbar-mode-inline,
|
||||
nav#layout-mainmenu.navbar-mode-inline_no_icons {
|
||||
.mainmenu-set-height(@mainmenu-mode-inline-height);
|
||||
|
||||
ul.mainmenu-nav {
|
||||
li {
|
||||
margin: 5px 0;
|
||||
|
||||
a {
|
||||
padding: 10px 15px;
|
||||
|
||||
.nav-icon {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
margin-right: 5px;
|
||||
width: @mainmenu-icon-dimension;
|
||||
height: @mainmenu-icon-dimension;
|
||||
i, img { margin: 0; }
|
||||
}
|
||||
.nav-label {
|
||||
line-height: @mainmenu-icon-dimension;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-left: -13px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
li.active {
|
||||
.mainmenu-item-link-active();
|
||||
|
||||
// &:first-child {
|
||||
// margin-left: 0;
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Navbar (Inline no icons mode)
|
||||
//
|
||||
nav#layout-mainmenu.navbar-mode-inline_no_icons .nav-icon {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
//
|
||||
// Navbar (Tiles mode)
|
||||
//
|
||||
|
||||
nav#layout-mainmenu.navbar-mode-tile {
|
||||
.mainmenu-set-height(@mainmenu-mode-tile-height);
|
||||
.mainmenu-navbar-tiles();
|
||||
}
|
||||
|
||||
.mainmenu-navbar-tiles() {
|
||||
ul.mainmenu-nav {
|
||||
li a {
|
||||
position: relative;
|
||||
width: @mainmenu-tile-dimension;
|
||||
height: @mainmenu-tile-dimension;
|
||||
|
||||
// Offset from bottom
|
||||
@tile-bottom-offset: 4;
|
||||
|
||||
.nav-icon {
|
||||
text-align: center;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-left: -(@mainmenu-icon-dimension / 2);
|
||||
margin-top: -((@mainmenu-tile-dimension - @mainmenu-tile-label-height) / 2) - @tile-bottom-offset;
|
||||
width: @mainmenu-icon-dimension;
|
||||
height: @mainmenu-icon-dimension;
|
||||
i, img { margin: 0; }
|
||||
}
|
||||
|
||||
.nav-label {
|
||||
display: block;
|
||||
width: @mainmenu-tile-label-width;
|
||||
height: @mainmenu-tile-label-height;
|
||||
line-height: @mainmenu-tile-label-height;
|
||||
position: absolute;
|
||||
bottom: @tile-bottom-offset + 0px;
|
||||
left: 50%;
|
||||
padding: 0 5px;
|
||||
margin-left: -(@mainmenu-tile-label-width / 2);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 0 15px;
|
||||
margin: 7px 0 0;
|
||||
|
||||
&:first-child {
|
||||
margin-left: -7px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.nav-label {
|
||||
width: auto;
|
||||
min-width: @mainmenu-tile-label-width;
|
||||
text-overflow: all;
|
||||
overflow: visible;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
li.active {
|
||||
.mainmenu-item-link-active();
|
||||
|
||||
a {
|
||||
// font-weight: bold;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Mobile (Collapsed mode)
|
||||
//
|
||||
|
||||
nav#layout-mainmenu {
|
||||
.menu-toggle {
|
||||
height: @mainmenu-mode-collapse-height;
|
||||
line-height: @mainmenu-mode-collapse-height;
|
||||
font-size: @font-size-base + 2;
|
||||
display: none;
|
||||
|
||||
.menu-toggle-icon {
|
||||
background: #333;
|
||||
display: inline-block;
|
||||
height: @mainmenu-mode-collapse-height;
|
||||
line-height: @mainmenu-mode-collapse-height;
|
||||
width: @mainmenu-mode-collapse-height;
|
||||
text-align: center;
|
||||
opacity: .7;
|
||||
|
||||
i {
|
||||
line-height: @mainmenu-mode-collapse-height;
|
||||
font-size: 20px;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-toggle-title {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.menu-toggle-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.mainmenu-open {
|
||||
nav#layout-mainmenu {
|
||||
.menu-toggle-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nav#layout-mainmenu.navbar-mode-collapse {
|
||||
.mainmenu-navbar-collapse();
|
||||
}
|
||||
|
||||
@media (max-width: @menu-breakpoint-max) {
|
||||
nav#layout-mainmenu.navbar {
|
||||
.mainmenu-navbar-collapse();
|
||||
}
|
||||
}
|
||||
|
||||
.mainmenu-navbar-collapse() {
|
||||
padding-left: 0;
|
||||
|
||||
.mainmenu-set-height(@mainmenu-mode-collapse-height);
|
||||
|
||||
ul.mainmenu-toolbar li.mainmenu-account > a {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
ul li .mainmenu-accountmenu:after {
|
||||
right: 13px;
|
||||
}
|
||||
|
||||
ul.nav { display: none; }
|
||||
|
||||
.menu-toggle {
|
||||
display: inline-block;
|
||||
color: @color-mainmenu-active !important;
|
||||
// font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.mainmenu-collapsed {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
background: @color-mainmenu-collapsed;
|
||||
|
||||
> div {
|
||||
display: block;
|
||||
height: 100%;
|
||||
|
||||
.mainmenu-navbar-tiles();
|
||||
|
||||
ul.mainmenu-nav li:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 5px 0 15px 15px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
ul li {
|
||||
color: @color-mainmenu-inactive;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
ul li a {
|
||||
.mainmenu-item-link();
|
||||
|
||||
img.svg-icon {
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
position: relative;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.vertical-scroll-marker(@color-mainmenu-inactive);
|
||||
}
|
||||
|
||||
body.mainmenu-open .mainmenu-collapsed ul {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 10px;
|
||||
bottom: 10px;
|
||||
}
|
||||
|
||||
html.mobile {
|
||||
.mainmenu-collapsed ul {
|
||||
overflow: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Misc
|
||||
//
|
||||
|
||||
nav#layout-mainmenu.navbar ul li:hover,
|
||||
.mainmenu-collapsed li:hover {
|
||||
a {
|
||||
&:active, &:focus {
|
||||
color: @color-mainmenu-active !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.touch .mainmenu-collapsed li a:hover {
|
||||
color: @color-mainmenu-inactive;
|
||||
}
|
||||
|
||||
nav#layout-mainmenu.navbar ul li,
|
||||
.mainmenu-collapsed li {
|
||||
|
||||
// Used by account menu
|
||||
&.highlight > a {
|
||||
color: @color-mainmenu-active !important;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: @color-mainmenu-active !important;
|
||||
|
||||
a {
|
||||
color: @color-mainmenu-active !important;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: @color-mainmenu-active;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
body.drag {
|
||||
nav#layout-mainmenu.navbar ul.nav li,
|
||||
.mainmenu-collapsed ul li {
|
||||
&:hover {
|
||||
color: @color-mainmenu-inactive;
|
||||
}
|
||||
}
|
||||
}
|
||||
147
modules/backend/assets/less/layout/outerlayout.less
Normal file
147
modules/backend/assets/less/layout/outerlayout.less
Normal file
@@ -0,0 +1,147 @@
|
||||
|
||||
// Layout for "Outside" pages, such as the Login screen
|
||||
//
|
||||
|
||||
body.outer {
|
||||
background: @color-outer-bg;
|
||||
|
||||
.layout {
|
||||
> .layout-row {
|
||||
&.layout-head {
|
||||
text-align: center;
|
||||
background: @color-outer-header;
|
||||
|
||||
> .layout-cell {
|
||||
height: 40%;
|
||||
padding: 50px 0;
|
||||
.box-sizing(border-box);
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
.triangle(down, 56px, 20px, @color-outer-header);
|
||||
position: absolute;
|
||||
bottom: -20px;
|
||||
left: 50%;
|
||||
margin-left: -28px;
|
||||
}
|
||||
|
||||
h1.wn-logo,
|
||||
h1.oc-logo {
|
||||
.hide-text();
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
max-width: 450px;
|
||||
height: 170px;
|
||||
min-height: 72px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .layout-cell {
|
||||
vertical-align: top;
|
||||
|
||||
.outer-form-container {
|
||||
margin: 0 auto;
|
||||
width: 436px;
|
||||
padding: (@padding-standard * 2) 0;
|
||||
|
||||
h2 {
|
||||
font-size: 18px;
|
||||
margin: 20px 0;
|
||||
color: @color-outer-heading;
|
||||
}
|
||||
|
||||
.horizontal-form {
|
||||
font-size: 0;
|
||||
.flex-display();
|
||||
|
||||
input {
|
||||
vertical-align: top;
|
||||
margin-right: 9px;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
.border-radius(2px);
|
||||
}
|
||||
|
||||
button {
|
||||
background: @link-color;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
height: 40px;
|
||||
vertical-align: top;
|
||||
.box-sizing(border-box);
|
||||
}
|
||||
}
|
||||
|
||||
.remember {
|
||||
label {
|
||||
color: @color-outer-muted-text;
|
||||
}
|
||||
input#remember {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.forgot-password {
|
||||
margin-top: 30px;
|
||||
font-size: 13px;
|
||||
top: 8px;
|
||||
|
||||
a {
|
||||
color: @color-outer-muted-text;
|
||||
}
|
||||
|
||||
&:before {
|
||||
color: @color-outer-muted-text;
|
||||
font-size: 14px;
|
||||
position: relative;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html.csstransitions {
|
||||
body.outer {
|
||||
.outer-form-container {
|
||||
.transition(all 0.5s ease-out);
|
||||
.scaleAxes(1, 1);
|
||||
}
|
||||
|
||||
&.preload {
|
||||
.outer-form-container {
|
||||
.scaleAxes(0.2, 0.2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: @screen-sm) {
|
||||
body.outer .layout > .layout-row {
|
||||
&.layout-head {
|
||||
> .layout-cell {
|
||||
padding: 50px @padding-standard;
|
||||
}
|
||||
}
|
||||
|
||||
> .layout-cell .outer-form-container {
|
||||
width: auto;
|
||||
padding: @padding-standard * 2;
|
||||
|
||||
.horizontal-form {
|
||||
display: block;
|
||||
|
||||
input {
|
||||
display: block;
|
||||
width: 100% !important;
|
||||
margin-bottom: @padding-standard;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
116
modules/backend/assets/less/layout/sidenav.less
Normal file
116
modules/backend/assets/less/layout/sidenav.less
Normal file
@@ -0,0 +1,116 @@
|
||||
//
|
||||
// Side navigation bar
|
||||
// --------------------------------------------------
|
||||
|
||||
.layout-sidenav-container {
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
#layout-sidenav {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
.box-sizing(border-box);
|
||||
font-size: @font-size-base;
|
||||
|
||||
ul {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
li {
|
||||
display: block;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
padding: 1.429em .714em;
|
||||
display: block;
|
||||
font-size: .929em;
|
||||
color: @color-sidebarnav-inactive-text;
|
||||
font-weight: normal;
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
i {
|
||||
color: @color-sidebarnav-inactive-icon;
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
font-size: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child a {
|
||||
padding-top: 2.143em;
|
||||
}
|
||||
|
||||
&.active a, a:hover {
|
||||
color: @color-sidebarnav-active-text;
|
||||
i { color: @color-sidebarnav-active-icon; }
|
||||
}
|
||||
|
||||
span.counter {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 1.071em;
|
||||
right: 1.071em;
|
||||
padding: .143em .429em .214em .286em;
|
||||
background-color: @color-sidebarnav-counter-bg;
|
||||
color: @color-sidebarnav-counter-text;
|
||||
font-size: .786em;
|
||||
line-height: 100%;
|
||||
.border-radius(3px);
|
||||
.opacity(1);
|
||||
.scale(1);
|
||||
.transition(all 0.3s);
|
||||
|
||||
&.empty {
|
||||
.opacity(0);
|
||||
.scale(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
||||
#layout-sidenav {
|
||||
font-size: 12px;
|
||||
}
|
||||
.layout-sidenav-container {
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: @screen-xs-max) {
|
||||
#layout-sidenav {
|
||||
font-size: 10px;
|
||||
}
|
||||
.layout-sidenav-container {
|
||||
width: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
html.mobile {
|
||||
#layout-sidenav ul {
|
||||
overflow: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
}
|
||||
|
||||
#layout-sidenav.layout-sidenav ul.drag li:not(.active) a:hover,
|
||||
.touch #layout-sidenav.layout-sidenav li:not(.active) a:hover {
|
||||
color: @color-sidebarnav-inactive-text !important;
|
||||
i { color: @color-sidebarnav-inactive-icon !important; }
|
||||
&:after { display: none !important; }
|
||||
}
|
||||
97
modules/backend/assets/less/layout/sidepanel.less
Normal file
97
modules/backend/assets/less/layout/sidepanel.less
Normal file
@@ -0,0 +1,97 @@
|
||||
//
|
||||
// Side panel
|
||||
// --------------------------------------------------
|
||||
|
||||
#layout-side-panel {
|
||||
.fix-button {
|
||||
position: absolute;
|
||||
right: -25px;
|
||||
top: 0;
|
||||
display: none;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
font-size: 13px;
|
||||
background: #ecf0f1;
|
||||
z-index: 120;
|
||||
.opacity(0.5);
|
||||
.border-radius(~'0 4px 4px 0');
|
||||
|
||||
i {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin-top: 5px;
|
||||
color: @color-scrollpanel-fix-button;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
.opacity(1)!important;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.fix-button {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.fix-button-content-header .fix-button {
|
||||
top: 46px;
|
||||
}
|
||||
|
||||
.sidepanel-content-header {
|
||||
background: @brand-secondary-darker;
|
||||
color: white;
|
||||
font-size: 15px;
|
||||
padding: 12px 20px 13px;
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
.triangle(down, 15px, 8px, @brand-secondary-darker);
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
bottom: -8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.side-panel-not-fixed {
|
||||
#layout-side-panel {
|
||||
display: none;
|
||||
|
||||
.fix-button {
|
||||
.opacity(0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body.display-side-panel {
|
||||
#layout-side-panel {
|
||||
display: block;
|
||||
position: absolute;
|
||||
// This needs to be higher than the dropdown overlay, otherwise the
|
||||
// mouseout event fires and sidebar hides when opening a dropdown.
|
||||
z-index: @zindex-dropdown;
|
||||
width: 350px;
|
||||
.box-shadow(3px 0px 3px 0 rgba(0, 0, 0, 0.1));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: @screen-md-min) {
|
||||
body.side-panel-fix-shadow {
|
||||
#layout-side-panel {
|
||||
.box-shadow(none);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.touch #layout-side-panel .fix-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: @screen-sm) {
|
||||
#layout-side-panel .fix-button {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
56
modules/backend/assets/less/winter.less
Normal file
56
modules/backend/assets/less/winter.less
Normal file
@@ -0,0 +1,56 @@
|
||||
// Vendor
|
||||
@import "../vendor/sweet-alert/sweet-alert.less";
|
||||
@import "../vendor/jcrop/css/jquery.Jcrop.min.css";
|
||||
@import "../../../system/assets/vendor/prettify/prettify.css";
|
||||
@import "../../../system/assets/vendor/prettify/theme-desert.css";
|
||||
|
||||
//
|
||||
// Winter Controls
|
||||
//
|
||||
|
||||
@import "core/boot.less";
|
||||
@import "controls/alert.less";
|
||||
@import "controls/global-notice.less";
|
||||
@import "controls/simplelist.less";
|
||||
@import "controls/scrollbar.less";
|
||||
@import "controls/filelist.less";
|
||||
@import "controls/common.less";
|
||||
@import "controls/reportwidgets.less";
|
||||
@import "controls/treelist.less";
|
||||
@import "controls/treeview.less";
|
||||
@import "controls/sidenav-tree.less";
|
||||
@import "controls/panels.less";
|
||||
@import "controls/selector-group.less";
|
||||
@import "controls/tree-path.less";
|
||||
@import "controls/namevaluelist.less";
|
||||
@import "controls/scrollpad.less";
|
||||
@import "controls/svg-icons.less";
|
||||
@import "controls/record-navigation.less";
|
||||
|
||||
//
|
||||
// Winter Storm UI
|
||||
//
|
||||
|
||||
@import "../../../system/assets/ui/less/global.less";
|
||||
|
||||
//
|
||||
// Combines layout and vendor styles
|
||||
//
|
||||
|
||||
// Core (shared elements)
|
||||
@import "core/animations.less";
|
||||
|
||||
// Boot variables and mixins
|
||||
@import "core/variables.less";
|
||||
@import "core/mixins.less";
|
||||
|
||||
// Layout
|
||||
@import "layout/layout.less";
|
||||
@import "layout/flexlayout.less";
|
||||
@import "layout/mainmenu.less";
|
||||
@import "layout/sidenav.less";
|
||||
@import "layout/sidepanel.less";
|
||||
@import "layout/footer.less";
|
||||
@import "layout/outerlayout.less";
|
||||
@import "layout/fancylayout.less";
|
||||
@import "layout/flyout.less";
|
||||
Reference in New Issue
Block a user