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:
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user