add modes

This commit is contained in:
piensaenpixel 2016-03-21 13:30:53 +01:00
parent 04077238c8
commit 5e6415b699
2 changed files with 171 additions and 10 deletions

View File

@ -0,0 +1,161 @@
/* SG
# Shapes/Mode Carousel
Description
```
<div class="ModeCarousel ModeCarousel--embed">
<p class="ModeCarousel-Embed-text ModeCarousel-Embed-text--01"></p>
<p class="ModeCarousel-Embed-text ModeCarousel-Embed-text--02"></p>
<div class="ModeCarousel-Map ModeCarousel-Map--embed"></div>
<p class="ModeCarousel-Embed-text"></p>
</div>
<br/>
<br/>
<div class="ModeCarousel ModeCarousel--desktop">
<ul class="ModeCarousel-Desktop-header">
<li class="ModeCarousel-Desktop-headerItems ModeCarousel-Desktop-headerItems--1"></li>
<li class="ModeCarousel-Desktop-headerItems ModeCarousel-Desktop-headerItems--2"></li>
<li class="ModeCarousel-Desktop-headerItems ModeCarousel-Desktop-headerItems--3"></li>
</ul>
<div class="ModeCarousel-Map ModeCarousel-Map--desktop"></div>
</div>
<br/>
<br/>
<div class="ModeCarousel ModeCarousel--mobile">
<div class="ModeCarousel-Mobile-header">
<div class="ModeCarousel-Mobile-camera"></div>
<div class="ModeCarousel-Mobile-speaker"></div>
</div>
<div class="ModeCarousel-Map ModeCarousel-Map--mobile"></div>
<div class="ModeCarousel-Mobile-microphone"></div>
</div>
```
*/
@import '../../cdb-variables/colors';
@import '../../cdb-utilities/mixins';
.ModeCarousel-Map {
border-radius: 1px;
background: $cHighlight;
}
.ModeCarousel-Map--embed {
width: 27px;
height: 12px;
margin: 2px 0;
}
.ModeCarousel-Map--mobile {
height: 24px;
margin: 1px 0;
}
.ModeCarousel-Map--desktop {
height: 15px;
margin: 3px 5px;
}
.ModeCarousel {
position: relative;
border: 1px solid $cSecondaryLine;
border-radius: 2px;
background: $cWhite;
box-sizing: border-box;
}
.ModeCarousel--embed,
.ModeCarousel--desktop {
width: 56px;
height: 32px;
}
.ModeCarousel--embed {
padding: 3px 4px;
}
.ModeCarousel--mobile {
width: 18px;
height: 34px;
padding: 2px 2px 3px;
}
.ModeCarousel-Embed-text {
height: 2px;
margin-top: 1px;
background: $cMainLine;
}
.ModeCarousel-Embed-text--01 {
width: 37px;
}
.ModeCarousel-Embed-text--02 {
width: 27px;
}
.ModeCarousel-Mobile-microphone {
width: 2px;
height: 2px;
margin: 0 auto;
border-radius: 50%;
background: $cMainLine;
}
.ModeCarousel-Mobile-camera,
.ModeCarousel-Mobile-speaker {
display: inline-block;
background: $cMainLine;
vertical-align: top;
}
.ModeCarousel-Mobile-header {
height: 1px;
text-align: center;
}
.ModeCarousel-Mobile-camera {
width: 1px;
height: 1px;
border-radius: 50%;
}
.ModeCarousel-Mobile-speaker {
width: 4px;
height: 1px;
margin-left: -2px;
border-radius: 50px;
}
.ModeCarousel-Desktop-header {
box-sizing: border-box;
height: 8px;
padding: 2px 4px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
background: #DDD;
}
.ModeCarousel-Desktop-headerItems {
display: inline-block;
width: 3px;
height: 3px;
border-radius: 50%;
vertical-align: top;
margin-left: -2px;
}
.ModeCarousel-Desktop-headerItems--1 {
background: $cError;
}
.ModeCarousel-Desktop-headerItems--2 {
background: $cAlert;
}
.ModeCarousel-Desktop-headerItems--3 {
background: #8FB83F;
}

View File

@ -131,8 +131,8 @@ Description
.ShapeCarousel-histogram {
position: absolute;
top: 7px;
left: 7px;
top: 5px;
left: 5px;
}
.ShapeCarousel-histogram-title {
@ -166,9 +166,9 @@ Description
.ShapeCarousel-category {
position: absolute;
top: 6px;
right: 6px;
left: 6px;
top: 5px;
right: 5px;
left: 5px;
}
.ShapeCarousel-category-title {
@ -204,8 +204,8 @@ Description
.ShapeCarousel-formula {
position: absolute;
top: 5px;
left: 7px;
width: 40px;
right: 6px;
left: 6px;
}
.ShapeCarousel-formula-title {
@ -232,8 +232,8 @@ Description
.ShapeCarousel-timeSeries {
position: absolute;
top: 0;
left: 7px;
top: -1px;
left: 6px;
width: 40px;
}
@ -253,7 +253,7 @@ Description
@include inline-block();
width: 0;
height: 0;
border: 4px solid transparent;
border: 3px solid transparent;
border-left: 5px solid #979EA1;
}