Merge branch 'develop' of https://github.com/Orange-Management/cssOMS into develop

This commit is contained in:
Dennis Eichhorn 2017-07-13 17:16:27 +02:00
commit 62909bc843
13 changed files with 426 additions and 509 deletions

View File

@ -3,13 +3,25 @@
.ac-container{ .ac-container{
margin: 10px auto 30px auto; margin: 10px auto 30px auto;
text-align: left; text-align: left;
}
.ac-container > input { > input {
display: none; display: none;
}
.ac-container > label { &:checked + label {
@include gradient-top-bottom(#ffffff, 0, $content-background-color, 100, #ffffff);
color: #000;
+ section {
display: inherit;
}
}
+ label + section {
display: none;
}
}
label {
display: block; display: block;
padding: 5px 20px; padding: 5px 20px;
position: relative; position: relative;
@ -21,18 +33,13 @@
border: 1px solid $content-border-color; border: 1px solid $content-border-color;
@include border-radius(3px); @include border-radius(3px);
@include gradient-top-bottom(#e0e3eb, 0, $content-background-color, 100, $content-background-color); @include gradient-top-bottom(#e0e3eb, 0, $content-background-color, 100, $content-background-color);
}
.ac-container > label:hover { &:hover {
@include gradient-top-bottom(#ffffff, 0, $content-background-color, 100, #ffffff); @include gradient-top-bottom(#ffffff, 0, $content-background-color, 100, #ffffff);
} }
}
.ac-container > input:checked + label { > section {
@include gradient-top-bottom(#ffffff, 0, $content-background-color, 100, #ffffff);
color: #000;
}
.ac-container > section {
background: $content-background-color; background: $content-background-color;
overflow: hidden; overflow: hidden;
height: auto; height: auto;
@ -41,13 +48,5 @@
border-left: 1px solid $content-border-color; border-left: 1px solid $content-border-color;
border-right: 1px solid $content-border-color; border-right: 1px solid $content-border-color;
padding: 10px; padding: 10px;
} }
.ac-container > input + label + section {
display: none;
}
.ac-container > input:checked + label + section {
display: inherit;
} }

View File

@ -7,26 +7,14 @@ div.alert {
} }
} }
.alertbox.ok, .alert.ok { @each $tuple in
background: #aaffad; 'ok' #aaffad #81e27d #459442,
border: 2px solid #81e27d; 'warning' #f8ffa8 #d6d949 #94972f,
color: #459442; 'error' #ff7d79 #ee5649 #a5302a,
} 'info' #b6d2ff #85b0ee #4865a5 {
.alertbox.#{nth($tuple, 1)}, .alert.#{nth($tuple, 1)} {
.alertbox.warning, .alert.warning { background: #{nth($tuple, 2)};
background: #f8ffa8; border: 2px solid #{nth($tuple, 3)};
border: 2px solid #d6d949; color: #{nth($tuple, 4)};
color: #94972f; }
}
.alertbox.error, .alert.error{
background: #ff7d79;
border: 2px solid #ee5649;
color: #a5302a;
}
.alertbox.info, .alert.info{
background: #b6d2ff;
border: 2px solid #85b0ee;
color: #4865a5;
} }

View File

@ -4,9 +4,8 @@
list-style: none; list-style: none;
overflow: hidden; overflow: hidden;
font-size: 12px; font-size: 12px;
}
.crumbs-1 li { li {
background: $content-background-color; background: $content-background-color;
border: 1px solid $content-border-color; border: 1px solid $content-border-color;
padding: 10px 10px 10px 20px; padding: 10px 10px 10px 20px;
@ -21,14 +20,8 @@
&:first-child { &:first-child {
@include border-left-radius(3px); @include border-left-radius(3px);
} }
}
.crumbs-1 .last { &:not(.last):after, &:before {
padding-right: 20px;
@include border-right-radius(3px);
}
.crumbs-1 li:not(.last):after, .crumbs-1 li:before {
content:" "; content:" ";
display: block; display: block;
width: 0; width: 0;
@ -40,30 +33,37 @@
top: 50%; top: 50%;
margin-top: -18px; margin-top: -18px;
left: 100%; left: 100%;
} }
.crumbs-1 .last:before { &:not(.last):after {
border: none;
}
.crumbs-1 li:not(.last):after {
z-index: 2; z-index: 2;
} }
.crumbs-1 li:before { &:before {
border-left-color: $content-border-color; border-left-color: $content-border-color;
margin-left: 1px; margin-left: 1px;
z-index: 1; z-index: 1;
} }
.crumbs-1 .active, .crumbs-1 li:hover { &.active:not(.last):after, &:hover:not(.last):after {
background: #ffffff;
}
.crumbs-1 .active {
cursor: default;
}
.crumbs-1 li.active:not(.last):after, .crumbs-1 li:hover:not(.last):after {
border-left: 14px solid #ffffff; border-left: 14px solid #ffffff;
}
}
.last {
padding-right: 20px;
@include border-right-radius(3px);
&:before {
border: none;
}
}
.active {
cursor: default;
}
.active, li:hover {
background: #ffffff;
}
} }

View File

@ -48,9 +48,8 @@ ul.btns {
list-style: none; list-style: none;
overflow: hidden; overflow: hidden;
font-size: 12px; font-size: 12px;
}
ul.btns li { li {
background: $content-background-color; background: $content-background-color;
border-left: 1px solid $content-border-color; border-left: 1px solid $content-border-color;
border-top: 1px solid $content-border-color; border-top: 1px solid $content-border-color;
@ -64,24 +63,25 @@ ul.btns li {
&:last-child { &:last-child {
border-right: 1px solid $content-border-color; border-right: 1px solid $content-border-color;
} }
}
ul.btns a { &:before {
display: block;
padding: 10px;
}
ul.btns li:before {
border-left-color: $content-border-color; border-left-color: $content-border-color;
margin-left: 1px; margin-left: 1px;
} }
}
ul.btns .active, ul.btns li:hover { a {
background: #ffffff; display: block;
} padding: 10px;
}
ul.btns .active { .active {
cursor: default; cursor: default;
}
.active, li:hover {
background: #ffffff;
}
} }
button.simple { button.simple {

View File

@ -1,59 +1,8 @@
.ok { @each $tuple in
color: #5cff56; 'ok' #5cff56, 'warning' #ff4b41, 'favorite' #d16059, 'green' #61BD6D, 'red' #D14841, 'blue' #2C82C9,
} 'orange' #FBA026, 'lightblue' #54ACD2, 'yellow' #FAC51C, 'purple' #553982, 'pink' #ffa6e3, 'grey' #dcdcdc,
'darkred' #B8312F, 'darkgreen' #41A85F, 'darkblue' #2969B0 {
.warning { .#{nth($tuple, 1)} {
color: #ff4b41; background: #{nth($tuple, 2)};
} }
.favorite {
color: #d16059;
}
.green {
background: #61BD6D;
}
.red {
background: #D14841;
}
.blue {
background: #2C82C9;
}
.orange {
background: #FBA026;
}
.lightblue {
background: #54ACD2;
}
.yellow {
background: #FAC51C;
}
.purple {
background: #553982;
}
.pink {
background: #ffa6e3;
}
.grey {
background: #dcdcdc;
}
.darkred {
background: #B8312F;
}
.darkgreen {
background: #41A85F;
}
.darkblue {
background: #2969B0;
} }

View File

@ -1,48 +1,48 @@
@import "_mixins", "_vars"; @import "_mixins", "_vars";
form li { form {
li {
margin: 5px 0 5px 0; margin: 5px 0 5px 0;
} }
form td { td {
white-space: nowrap; white-space: nowrap;
padding-bottom: 5px; padding-bottom: 5px;
}
form td textarea+i { textarea+i {
vertical-align: top; vertical-align: top;
} }
}
form label { label {
font-size: 0.9em; font-size: 0.9em;
color: #878787; color: #878787;
text-shadow: -1px -1px 1px #ffffff; text-shadow: -1px -1px 1px #ffffff;
} }
form i+i { i+i {
margin-left: 3px; margin-left: 3px;
} }
form .inputPrefix { .inputPrefix {
border-left: 1px solid $content-border-color; border-left: 1px solid $content-border-color;
border-top: 1px solid $content-border-color; border-top: 1px solid $content-border-color;
border-bottom: 1px solid $content-border-color; border-bottom: 1px solid $content-border-color;
line-height: 2em; line-height: 2em;
height: 100%; height: 100%;
background: #bebebe; background: #bebebe;
} }
form .layout { .layout td+td {
td+td {
padding-left: 5px; padding-left: 5px;
} }
}
form .list { .list {
font-size: 0.9em; font-size: 0.9em;
td { td {
white-space: nowrap; white-space: nowrap;
padding: 3px 5px 3px 5px; padding: 3px 5px 3px 5px;
} }
}
} }

View File

@ -1,24 +1,26 @@
@import "_mixins", "_vars"; @import "_mixins", "_vars";
img.frame-1 { img {
&.frame-1 {
padding: 5px; padding: 5px;
background: $content-background-color; background: $content-background-color;
border: 1px solid $content-border-color; border: 1px solid $content-border-color;
@include box-shadow-out(#ffffff); @include box-shadow-out(#ffffff);
@include border-radius(3px); @include border-radius(3px);
} }
img.frame-2 { &.frame-2 {
border: 1px solid $content-border-color; border: 1px solid $content-border-color;
background: $content-background-color; background: $content-background-color;
} }
img.frame-3 { &.frame-3 {
padding: 5px; padding: 5px;
background: #ffffff; background: #ffffff;
border: 1px solid $content-border-color; border: 1px solid $content-border-color;
@include box-shadow-out(#ffffff); @include box-shadow-out(#ffffff);
@include border-radius(3px); @include border-radius(3px);
}
} }
@keyframes slidy { @keyframes slidy {
@ -33,9 +35,10 @@ img.frame-3 {
100% { left: -400%; } 100% { left: -400%; }
} }
div.slider-1 { overflow: hidden; } div.slider-1 {
div.slider-1 figure img { width: 20%; float: left; } overflow: hidden;
div.slider-1 figure {
figure {
position: relative; position: relative;
width: 500%; width: 500%;
margin: 0; margin: 0;
@ -43,6 +46,11 @@ div.slider-1 figure {
text-align: left; text-align: left;
font-size: 0; font-size: 0;
animation: 30s slidy infinite; animation: 30s slidy infinite;
img {
width: 20%; float: left;
}
}
} }
.slider-2 { .slider-2 {
@ -50,45 +58,44 @@ div.slider-1 figure {
position: relative; position: relative;
padding-top: auto; padding-top: auto;
text-align: center; text-align: center;
}
.slider-2 > img { > img {
width: 100%; width: 100%;
position: absolute; position: absolute;
left: 0; top: 0; left: 0; top: 0;
transition: all 0.5s; transition: all 0.5s;
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75); box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75);
} }
.slider-2 input { input {
display: none; display: none;
}
.slider-2 label { &:checked+label {
border-color: #666;
opacity: 1;
+img {
opacity: 1;
transform: scale(1);
}
}
~ img {
opacity: 0;
transform: scale(1.1);
}
}
label {
display: inline-block; display: inline-block;
margin-top: calc(50% + 15px); margin-top: calc(50% + 15px);
margin-left: 15px; margin-left: 15px;
border: 3px solid #999; border: 3px solid #999;
cursor: pointer; cursor: pointer;
opacity: 0.6; opacity: 0.6;
}
.slider-2 label img{ img{
display: block; display: block;
} }
}
.slider-2 input:checked+label {
border-color: #666;
opacity: 1;
}
.slider-2 input ~ img {
opacity: 0;
transform: scale(1.1);
}
.slider-2 input:checked+label+img {
opacity: 1;
transform: scale(1);
} }

View File

@ -17,9 +17,8 @@ ul.boxed {
padding: 5px; padding: 5px;
@include border-radius(3px); @include border-radius(3px);
border: 1px solid $content-border-color; border: 1px solid $content-border-color;
}
ul.boxed li { li {
margin: 5px 0 5px 0; margin: 5px 0 5px 0;
&:first-child { &:first-child {
@ -29,6 +28,7 @@ ul.boxed li {
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
}
} }
ul.h-list li { ul.h-list li {
@ -42,14 +42,14 @@ ul.h-list li {
padding: 0; padding: 0;
border-spacing: 0; border-spacing: 0;
border-collapse: collapse; border-collapse: collapse;
}
.bullet-list td:first-child { td:first-child {
padding-right: 20px; padding-right: 20px;
} }
.bullet-list span { span {
margin-right: 5px; margin-right: 5px;
}
} }
.bullet { .bullet {
@ -58,8 +58,8 @@ ul.h-list li {
border-radius: 30px; border-radius: 30px;
background: #ccc; background: #ccc;
display: inline-block; display: inline-block;
}
.bullet.active { &.active {
background: #000; background: #000;
}
} }

View File

@ -4,9 +4,8 @@
height: 20px; /* Can be anything */ height: 20px; /* Can be anything */
position: relative; position: relative;
background: none !important; background: none !important;
}
.meter > span { > span {
display: block; display: block;
height: 100%; height: 100%;
@include border-radius(3px); @include border-radius(3px);
@ -17,6 +16,7 @@
color-stop(1, rgb(84,240,84))); color-stop(1, rgb(84,240,84)));
position: relative; position: relative;
overflow: hidden; overflow: hidden;
}
} }
.meter > span:after, .animate > span > span { .meter > span:after, .animate > span > span {
@ -94,15 +94,15 @@
margin: 0 0 30px 120px; margin: 0 0 30px 120px;
padding-left: 30px; padding-left: 30px;
border-left: 3px solid #eaeaea; border-left: 3px solid #eaeaea;
}
.timeline li { li {
margin: 0; margin: 0;
position: relative; position: relative;
} }
.timeline p { p {
margin: 0 0 15px; margin: 0 0 15px;
}
} }
.timeline-date { .timeline-date {
@ -188,9 +188,8 @@
height: 70px; height: 70px;
border-radius: 50%; border-radius: 50%;
background-color: tomato; background-color: tomato;
}
.progress-radial .overlay { .overlay {
position: absolute; position: absolute;
width: 60px; width: 60px;
height: 60px; height: 60px;
@ -201,4 +200,5 @@
text-align: center; text-align: center;
line-height: 60px; line-height: 60px;
font-size: 9px; font-size: 9px;
}
} }

View File

@ -1,33 +1,15 @@
@import "_mixins", "_vars"; @import "_mixins", "_vars";
section.box.orange {
border-top: 3px solid #FBA026;
}
section.box.red {
border-top: 3px solid #B8312F;
}
section.box.green {
border-top: 3px solid #41A85F;
}
section.box.blue {
border-top: 3px solid #2C82C9;
}
section.box.purple {
border-top: 3px solid #553982;
}
section.box.darkblue {
border-top: 3px solid #2969B0;
}
.box { .box {
@include box-sizing(border-box); @include box-sizing(border-box);
display: inline-block; display: inline-block;
margin-top: 0.3rem; margin-top: 0.3rem;
.inner {
@include box-sizing(border-box);
@include box-shadow-out(#ffffff);
padding: 10px;
}
} }
.box-container { .box-container {
@ -38,15 +20,33 @@ section.box {
@include box-shadow-bottom(#f1f1f1); @include box-shadow-bottom(#f1f1f1);
border: 1px solid $content-border-color; border: 1px solid $content-border-color;
background: #fff; background: #fff;
section.box.orange {
border-top: 3px solid #FBA026;
&.red {
border-top: 3px solid #B8312F;
}
&.green {
border-top: 3px solid #41A85F;
}
&.blue {
border-top: 3px solid #2C82C9;
}
&.purple {
border-top: 3px solid #553982;
}
&.darkblue {
border-top: 3px solid #2969B0;
}
} }
.box .inner { section {
@include box-sizing(border-box); header {
@include box-shadow-out(#ffffff);
padding: 10px;
}
section header {
> h1 { > h1 {
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
padding-bottom: 5px; padding-bottom: 5px;
@ -54,11 +54,12 @@ section header {
text-shadow: 1px 1px 1px #ffffff; text-shadow: 1px 1px 1px #ffffff;
border-bottom: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1;
} }
} }
section > h2 { > h2 {
@include box-sizing(border-box); @include box-sizing(border-box);
font-size: 1.2em; font-size: 1.2em;
margin-bottom: 5px; margin-bottom: 5px;
text-shadow: 1px 1px 1px #ffffff; text-shadow: 1px 1px 1px #ffffff;
}
} }

View File

@ -1,70 +1,43 @@
@import "_mixins", "_vars"; @import "_mixins", "_vars";
.table.red { .table {
background: none; background: none;
caption { caption {
color: #fff;
}
thead {
color: #fff;
}
&.red {
caption, thead {
background: #B8312F; background: #B8312F;
color: #fff; }
} }
thead { &.orange {
background: #B8312F; caption, thead {
color: #fff;
}
}
.table.orange {
background: none;
caption {
background: #FBA026; background: #FBA026;
color: #fff; }
} }
thead { &.green {
background: #FBA026; caption, thead {
color: #fff;
}
}
.table.green {
background: none;
caption {
background: #41A85F; background: #41A85F;
color: #fff; }
} }
thead { &.blue {
background: #41A85F; caption, thead {
color: #fff;
}
}
.table.blue {
background: none;
caption {
background: #2C82C9; background: #2C82C9;
color: #fff; }
} }
thead { &.white {
background: #2C82C9; caption, thead {
color: #fff;
}
}
.table.white {
background: none;
caption {
background: #fff; background: #fff;
} }
thead {
background: #fff;
} }
} }

View File

@ -6,8 +6,8 @@ p {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
}
p+p { +p {
margin-top: 5px; margin-top: 5px;
}
} }

View File

@ -4,9 +4,8 @@
position: relative; position: relative;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
}
.tooltip > i { > i {
@include border-radius(3px); @include border-radius(3px);
text-align: center; text-align: center;
font-size: 0.7em; font-size: 0.7em;
@ -21,9 +20,9 @@
visibility: hidden; visibility: hidden;
opacity: 0; opacity: 0;
white-space: pre; white-space: pre;
} }
.tooltip > i:before, .tooltip > i:after { > i:before, > i:after {
content: ""; content: "";
position: absolute; position: absolute;
border-left: 10px solid transparent; border-left: 10px solid transparent;
@ -31,15 +30,16 @@
top: 100%; top: 100%;
left: 50%; left: 50%;
margin-left: -10px; margin-left: -10px;
} }
.tooltip > i:after{ > i:after{
border-top: 10px solid #000000; border-top: 10px solid #000000;
margin-top: 0; margin-top: 0;
z-index: 1; z-index: 1;
} }
.tooltip:hover > i { &:hover > i {
visibility: visible; visibility: visible;
opacity: 1; opacity: 1;
}
} }