feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
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:
2026-08-21 19:29:00 -06:00
commit 1f72193a64
3266 changed files with 531480 additions and 0 deletions

View 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;
}
}

View 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);
}
}

View 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();
}
}
}
}
}

View 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;
}
}

View 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;
}
}

View 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;
}
}

View 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;
}
}
}

View 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; }
}
}

View 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;
}
}
}
}
}

View 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;
}
}
}

View 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;
}
}

View 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;
}
}
}

View 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;
}
}
}

View 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;
}
}
}

View 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;
}
}
}
}

View 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;
}
}
}
}

View 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;
}
}
}
}
}
}