add shape circle

This commit is contained in:
piensaenpixel 2016-01-29 15:42:25 +01:00
parent ea8da9d88a
commit d8a5d45cc3
8 changed files with 203 additions and 70 deletions

View File

@ -0,0 +1,78 @@
/* SG
# Shapes/Check circle
Description
```
<h2>16px</h2>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-CircleItem">
<div class="CDB-Shape-close is-xs"></div>
</div>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-CircleItem is-blue">
<div class="CDB-Shape-close is-xs is-blue"></div>
</div>
</div>
</div>
<div style="padding: 20px; background: #2E3ya C43;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .08);">
<div class="CDB-Shape-CircleItem is-white">
<div class="CDB-Shape-close is-xs is-white"></div>
</div>
</div>
</div>
<br>
<br>
<br>
<br>
<h2>12px</h2>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-CircleItem is-small">
<div class="CDB-Shape-close is-xxs is-white"></div>
</div>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-CircleItem is-blue is-small">
<div class="CDB-Shape-close is-xxs is-white"></div>
</div>
</div>
</div>
<div style="padding: 20px; background: #2E3C43;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .08);">
<div class="CDB-Shape-CircleItem is-white is-small">
<div class="CDB-Shape-close is-xxs is-white"></div>
</div>
</div>
</div>
```
*/
@import '../../cdb-variables/colors';
.CDB-Shape-CircleItem {
width: 14px;
height: 14px;
border: 1px solid $cMainDark;
border-radius: 50%;
&.is-small {
width: 12px;
height: 12px;
margin: 2px auto;
}
&.is-blue {
border: 1px solid $cBlue;
}
&.is-white {
border: 1px solid $cWhite;
}
}

View File

@ -7,17 +7,17 @@ Description
<h2>16px</h2>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-close"></div>
<div class="CDB-Shape-close is-huge"></div>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-close is-blue"></div>
<div class="CDB-Shape-close is-blue is-huge"></div>
</div>
</div>
<div style="padding: 20px; background: #2E3C43;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .08);">
<div class="CDB-Shape-close is-white"></div>
<div class="CDB-Shape-close is-white is-huge"></div>
</div>
</div>
<br>
@ -27,17 +27,17 @@ Description
<h2>12px</h2>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-close is-small"></div>
<div class="CDB-Shape-close is-large"></div>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-close is-blue is-small"></div>
<div class="CDB-Shape-close is-blue is-large"></div>
</div>
</div>
<div style="padding: 20px; background: #2E3C43;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .08);">
<div class="CDB-Shape-close is-white is-small"></div>
<div class="CDB-Shape-close is-white is-large"></div>
</div>
</div>
```
@ -45,15 +45,6 @@ Description
@import '../../cdb-variables/colors';
.CDB-Shape {
width: 16px;
height: 16px;
text-align: center;
&:hover {
cursor: pointer;
}
}
.CDB-Shape-close {
display: block;
position: relative;
@ -62,10 +53,7 @@ Description
&::before {
display: block;
position: absolute;
top: -2px;
left: 7px;
width: 1px;
height: 20px;
transform: rotate(-45deg);
background: $cMainDark;
content: '';
@ -73,20 +61,30 @@ Description
&::after {
display: block;
position: absolute;
top: -2px;
right: 8px;
width: 1px;
height: 20px;
transform: rotate(45deg);
background: $cMainDark;
content: '';
}
&.is-small {
&.is-huge {
&::before {
top: -2px;
left: 7px;
height: 20px;
}
&::after {
top: -2px;
right: 8px;
height: 20px;
}
}
&.is-large {
&::before {
top: 2px;
left: 7px;
height: 12px;
transform: rotate(-45deg);
}
&::after {
top: 2px;
@ -94,6 +92,32 @@ Description
height: 12px;
}
}
&.is-medium {
&::before {
top: 3px;
left: 6px;
height: 8px;
}
&::after {
top: 3px;
right: 7px;
height: 8px;
}
}
&.is-small {
&::before {
top: 2px;
left: 4px;
height: 6px;
}
&::after {
top: 2px;
right: 5px;
height: 6px;
}
}
}
.CDB-Shape-close.is-blue {

View File

@ -0,0 +1,78 @@
/* SG
# Shapes/Error circle
Description
```
<h2>16px</h2>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-CircleItem">
<div class="CDB-Shape-close is-medium"></div>
</div>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-CircleItem is-blue">
<div class="CDB-Shape-close is-medium is-blue"></div>
</div>
</div>
</div>
<div style="padding: 20px; background: #2E3C43;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .08);">
<div class="CDB-Shape-CircleItem is-white">
<div class="CDB-Shape-close is-medium is-white"></div>
</div>
</div>
</div>
<br>
<br>
<br>
<br>
<h2>12px</h2>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-CircleItem is-small">
<div class="CDB-Shape-close is-small"></div>
</div>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<div class="CDB-Shape-CircleItem is-blue is-small">
<div class="CDB-Shape-close is-small is-blue"></div>
</div>
</div>
</div>
<div style="padding: 20px; background: #2E3C43;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .08);">
<div class="CDB-Shape-CircleItem is-white is-small">
<div class="CDB-Shape-close is-small is-white"></div>
</div>
</div>
</div>
```
*/
@import '../../cdb-variables/colors';
.CDB-Shape-CircleItem {
width: 14px;
height: 14px;
border: 1px solid $cMainDark;
border-radius: 50%;
&.is-small {
width: 10px;
height: 10px;
margin: 2px auto;
}
&.is-blue {
border: 1px solid $cBlue;
}
&.is-white {
border: 1px solid $cWhite;
}
}

View File

@ -46,15 +46,6 @@ Description
@import '../../cdb-variables/colors';
.CDB-Shape {
width: 16px;
height: 16px;
text-align: center;
&:hover {
cursor: pointer;
}
}
.CDB-Shape-magnify {
display: block;
position: relative;

View File

@ -69,16 +69,6 @@ Description
@import '../../cdb-variables/colors';
.CDB-Shape {
width: 16px;
height: 16px;
text-align: center;
&:hover {
cursor: pointer;
}
}
.CDB-Shape-Move {
padding: 1px 0 0;
}

View File

@ -45,15 +45,6 @@ Description
@import '../../cdb-variables/colors';
.CDB-Shape {
width: 16px;
height: 16px;
text-align: center;
&:hover {
cursor: pointer;
}
}
.CDB-Shape-subtract {
position: relative;
height: 100%;

View File

@ -69,15 +69,6 @@ Description
@import '../../cdb-variables/colors';
.CDB-Shape {
width: 16px;
height: 16px;
text-align: center;
&:hover {
cursor: pointer;
}
}
.CDB-Shape-threePoints {
display: inline-block;
height: 100%;

View File

@ -85,16 +85,6 @@ Description
@import '../../cdb-variables/colors';
.CDB-Shape {
width: 16px;
height: 16px;
text-align: center;
&:hover {
cursor: pointer;
}
}
.CDB-ArrowToogle {
position: relative;
height: 100%;