Merge pull request #39 from CartoDB/headers-assets

Headers assets
This commit is contained in:
piensaenpixel 2016-02-02 11:54:46 +01:00
commit ece198db8f
13 changed files with 467 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
src/img/avatar-40x40.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@ -0,0 +1,54 @@
// Typography styles
// ----------------------------------------------
/* SG
# Avatars/List
```
<ul class="CDB-AvatarList">
<li class="CDB-AvatarList-item">
<img src="/src/img/avatar-40x40.png" alt="User Name" class="CDB-AvatarList-itemMedia" />
</li>
<li class="CDB-AvatarList-item">
<img src="/src/img/avatar-40x40.png" alt="User Name" class="CDB-AvatarList-itemMedia" />
</li>
<li class="CDB-AvatarList-item">
<img src="/src/img/avatar-40x40.png" alt="User Name" class="CDB-AvatarList-itemMedia" />
</li>
<li class="CDB-AvatarList-itemMore">
<button class="CDB-Text is-semibold CDB-Size-small">+ 16</button>
</li>
</ul>
```
*/
@import '../cdb-variables/sizes';
@import '../cdb-variables/colors';
.CDB-AvatarList {
padding-left: 12px;
}
.CDB-AvatarList-item {
display: inline-block;
margin-left: -12px;
border: 2px solid $cWhite;
border-radius: 50%;
vertical-align: middle;
}
.CDB-AvatarList-itemMore {
display: inline-block;
margin-left: -12px;
padding: 2px 6px;
border-left: 2px solid $cWhite;
border-radius: 50px;
background: $cSecondaryLine;
color: $cTypo2;
}
.CDB-AvatarList-itemMedia {
width: 16px;
height: 16px;
border-radius: 50%;
}

View File

@ -24,6 +24,10 @@ Layout Component:
<span class="CDB-Button-Text CDB-Text is-semibold CDB-Size-small">SAVE</span>
</button>
<button class="CDB-Button CDB-Button--primary CDB-Button--icon">
<i class="CDB-IconFont CDB-IconFont-ray CDB-Size-small"></i>
</button>
<br/>
<br/>
<br/>
@ -44,6 +48,11 @@ Layout Component:
<button class="CDB-Button CDB-Button--primary CDB-Button--small is-disabled">
<span class="CDB-Button-Text CDB-Text is-semibold CDB-Size-small">SAVE</span>
</button>
<button class="CDB-Button CDB-Button--primary CDB-Button--icon">
<i class="CDB-IconFont CDB-IconFont-ray CDB-Size-small"></i>
</button>
</div>
```
@ -71,6 +80,9 @@ Layout Component:
.CDB-Button--small {
padding: $baseSize - 3 $baseSize + 4;
}
.CDB-Button--icon {
padding: 7px 9px;
}
.CDB-Button--primary {
background: $cBlue;

View File

@ -15,7 +15,7 @@
@import '../../cdb-variables/colors';
.CDB-InputText {
min-width: 152px;
width: 100%;
padding: 7px 8px 6px;
border: 1px solid $cMainLine;
border-radius: 3px;

View File

@ -0,0 +1,195 @@
// Typography styles
// ----------------------------------------------
/* SG
# Headers
```
<div class="CDB-HeaderInfo is-block">
<div class="CDB-HeaderInfo-Title u-bSpace">
<h2 class="CDB-HeaderInfo-TitleText CDB-Text CDB-Size-huge is-light">Name Map</h2>
<div class="CDB-HeaderInfo-Actions">
<a href="#">
<div class="CDB-Shape">
<div class="CDB-Shape-threePoints is-blue is-small">
<div class="CDB-Shape-threePointsItem"></div>
<div class="CDB-Shape-threePointsItem"></div>
<div class="CDB-Shape-threePointsItem"></div>
</div>
</div>
</a>
</div>
</div>
<ul class="CDB-HeaderInfo-List">
<li class="CDB-HeaderInfo-ListItem">
<button class="CDB-Tag is-public CDB-Text is-semibold CDB-Size-small u-iBlock">
PUBLIC
</button>
</li>
<li class="CDB-HeaderInfo-ListItem">
<ul class="CDB-AvatarList u-iBlock">
<li class="CDB-AvatarList-item">
<img src="/src/img/avatar-40x40.png" alt="User Name" class="CDB-AvatarList-itemMedia" />
</li>
<li class="CDB-AvatarList-item">
<img src="/src/img/avatar-40x40.png" alt="User Name" class="CDB-AvatarList-itemMedia" />
</li>
<li class="CDB-AvatarList-item">
<img src="/src/img/avatar-40x40.png" alt="User Name" class="CDB-AvatarList-itemMedia" />
</li>
<li class="CDB-AvatarList-itemMore">
<button class="CDB-Text is-semibold CDB-Size-small">+ 16</button>
</li>
</ul>
</li>
<li class="CDB-HeaderInfo-ListItem">
<p class="CDB-HeaderInfo-Text CDB-Text CDB-Size-medium u-iBlock">Published 8 days ago</p>
</li>
</ul>
</div>
<br/>
<br/>
<br/>
<div class="CDB-HeaderInfo">
<a href="#" class="u-rSpace--xl CDB-HeaderInfo-Back">
<i class="CDB-IconFont CDB-IconFont-arrowPrev Size-large"></i>
</a>
<div class="CDB-HeaderInfo-Inner">
<div class="CDB-HeaderInfo-Title u-bSpace">
<h2 class="CDB-HeaderInfo-TitleText CDB-Text CDB-Size-huge is-light">Stadiums Affected Stadiums Affected Stadiums AffectedStadiums Affected Stadiums Affected Stadiums Affected Stadiums Affected </h2>
<ul class="CDB-HeaderInfo-Actions">
<li class="CDB-HeaderInfo-ActionsItem">
<button class="CDB-Button CDB-Button--primary CDB-Button--icon">
<i class="CDB-IconFont CDB-IconFont-ray CDB-Size-small"></i>
</button>
</li>
<li class="CDB-HeaderInfo-ActionsItem">
<a href="#">
<div class="CDB-Shape">
<div class="CDB-Shape-threePoints is-blue is-small">
<div class="CDB-Shape-threePointsItem"></div>
<div class="CDB-Shape-threePointsItem"></div>
<div class="CDB-Shape-threePointsItem"></div>
</div>
</div>
</a>
</li>
</ul>
</div>
<div class="CDB-Shape u-iBlock">
<ul class="CDB-Shape-Dataset is-small is-grey">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
<p class="CDB-Text CDB-Size-medium u-iBlock"><a href="#" class="u-iBlock">populates_places</a></p>
</div>
</div>
<br/>
<br/>
<br/>
<div class="CDB-HeaderInfo">
<a href="#" class="u-rSpace--xl CDB-HeaderInfo-Back">
<i class="CDB-IconFont CDB-IconFont-arrowPrev Size-large"></i>
</a>
<div class="CDB-HeaderInfo-Inner">
<div class="CDB-HeaderInfo-Title u-bSpace">
<h2 class="CDB-HeaderInfo-TitleText CDB-Text CDB-Size-huge is-light">Basemap</h2>
<div class="CDB-HeaderInfo-Actions">
<a href="#">
<div class="CDB-Shape">
<div class="CDB-Shape-threePoints is-blue is-small">
<div class="CDB-Shape-threePointsItem"></div>
<div class="CDB-Shape-threePointsItem"></div>
<div class="CDB-Shape-threePointsItem"></div>
</div>
</div>
</a>
</div>
</div>
<p class="CDB-HeaderInfo-Text CDB-Text CDB-Size-medium">Positron by CartoDB</p>
</div>
</div>
<br/>
<br/>
<br/>
<div class="CDB-HeaderInfo">
<a href="#" class="u-rSpace--xl CDB-HeaderInfo-Back">
<i class="CDB-IconFont CDB-IconFont-arrowPrev Size-large"></i>
</a>
<div class="CDB-HeaderInfo-Inner">
<input type="text" name="text" placeholder="DejaVu Sans" class="CDB-InputText CDB-Text u-bSpace--m">
<div class="CDB-Shape u-iBlock">
<ul class="CDB-Shape-Dataset is-small is-grey">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
<p class="CDB-Text CDB-Size-medium u-iBlock"><a href="#" class="u-iBlock">populates_places</a></p>
</div>
</div>
<br/>
<br/>
<br/>
```
*/
@import '../cdb-utilities/mixins';
@import '../cdb-variables/sizes';
@import '../cdb-variables/colors';
.CDB-HeaderInfo {
@include display-flex();
&.is-block {
display: block;
}
}
.CDB-HeaderInfo-ListItem {
display: inline-block;
margin-right: 8px;
vertical-align: middle;
&:last-child {
margin-right: 0;
}
}
.CDB-HeaderInfo-Text {
color: $cTypo3;
}
.CDB-HeaderInfo-Inner {
@include flex(1);
}
.CDB-HeaderInfo-Back {
margin-top: 7px;
}
.CDB-HeaderInfo-Title {
@include display-flex();
@include align-items(center);
}
.CDB-HeaderInfo-TitleText {
@include flex(1);
width: 0;
padding-right: 16px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.CDB-HeaderInfo-ActionsItem {
display: inline-block;
margin-left: 4px;
vertical-align: middle;
}

View File

@ -0,0 +1,146 @@
/* SG
# Shapes/Dataset
Description
```
<h2>16px</h2>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<ul class="CDB-Shape-Dataset">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<ul class="CDB-Shape-Dataset is-blue">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<ul class="CDB-Shape-Dataset is-grey">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
</div>
<div style="padding: 20px; background: #2E3C43;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<ul class="CDB-Shape-Dataset is-white">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
</div>
<br>
<br>
<br>
<br>
<h2>12px</h2>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<ul class="CDB-Shape-Dataset is-small">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<ul class="CDB-Shape-Dataset is-small is-blue">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
</div>
<div style="padding: 20px;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<ul class="CDB-Shape-Dataset is-small is-grey">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
</div>
<div style="padding: 20px; background: #2E3C43;">
<div class="CDB-Shape" style="background: rgba(0, 0, 0, .02);">
<ul class="CDB-Shape-Dataset is-small is-white">
<li class="CDB-Shape-DatasetItem"></li>
<li class="CDB-Shape-DatasetItem"></li>
</ul>
</div>
</div>
```
*/
@import '../../cdb-variables/colors';
@import '../../cdb-variables/sizes';
.CDB-Shape-Dataset {
padding-top: 1px;
padding-left: 10px;
&.is-small {
padding-top: 0;
padding-left: 7px;
}
}
.CDB-Shape-DatasetItem {
display: inline-block;
width: 9px;
height: 9px;
margin-left: -10px;
border: 1px solid $cMainDark;
border-radius: 50%;
background: $cWhite;
&:first-child {
position: relative;
box-shadow: 3px 0 0 $cWhite;
z-index: 1;
}
}
.CDB-Shape-Dataset.is-small {
.CDB-Shape-DatasetItem {
width: 6px;
height: 6px;
margin-left: -7px;
&:first-child {
box-shadow: 2px 0 0 $cWhite;
}
}
}
.CDB-Shape-Dataset.is-blue {
.CDB-Shape-DatasetItem {
border: 1px solid $cBlue;
}
}
.CDB-Shape-Dataset.is-grey {
.CDB-Shape-DatasetItem {
border: 1px solid $cHoverLine;
}
}
.CDB-Shape-Dataset.is-white {
.CDB-Shape-DatasetItem {
border: 1px solid $cHoverLine;
background: $cMainDark;
&:first-child {
box-shadow: 3px 0 $cMainDark;
}
}
}
.CDB-Shape-Dataset.is-white.is-small {
.CDB-Shape-DatasetItem:first-child {
box-shadow: 2px 0 $cMainDark;
}
}

View File

@ -71,7 +71,6 @@ Description
.CDB-Shape-threePoints {
display: inline-block;
height: 100%;
}
.CDB-Shape-threePointsItem {

View File

@ -0,0 +1,47 @@
// Typography styles
// ----------------------------------------------
/* SG
# Tags
```
<button class="CDB-Tag is-public CDB-Text is-semibold CDB-Size-small u-iBlock">
PUBLIC
</button>
<button class="CDB-Tag is-link CDB-Text is-semibold CDB-Size-small u-iBlock">
LINK
</button>
<button class="CDB-Tag is-password CDB-Text is-semibold CDB-Size-small u-iBlock">
PASSWORD
</button>
<button class="CDB-Tag is-private CDB-Text is-semibold CDB-Size-small u-iBlock">
PRIVATE
</button>
```
*/
@import '../cdb-variables/sizes';
@import '../cdb-variables/colors';
.CDB-Tag {
padding: 0 3px;
border-radius: 2px;
&.is-public {
border: 1px solid $cPublic;
color: $cPublic;
}
&.is-link {
border: 1px solid $cLink;
color: $cLink;
}
&.is-password {
border: 1px solid $cPassword;
color: $cPassword;
}
&.is-private {
border: 1px solid $cError;
color: $cError;
}
}

View File

@ -6,10 +6,11 @@
```
<p class="CDB-Text CDB-Size-huge">Open Sans 26/34 Regular</p>
<p class="CDB-Text CDB-Size-huge is-light">Open Sans 26/34 Light</p>
<p class="CDB-Text CDB-Size-large">Open Sans 16/22 Regular</p>
<p class="CDB-Text is-semibold CDB-Size-medium">Open Sans 12/16 Semibold</p>
<p class="CDB-Text CDB-Size-medium">Open Sans 12/16 Regular</p>
<p class="CDB-Text is-semibold Size-small">Open Sans 10/14 Semibold</p>
<p class="CDB-Text is-semibold CDB-Size-small">Open Sans 10/14 Semibold</p>
<p class="CDB-Text CDB-Size-small">Open Sans 10/14 Regular</p>
```
*/

View File

@ -6,6 +6,9 @@
.u-tSpace {
margin-top: 4px;
}
.u-tSpace--m {
margin-top: 8px;
}
.u-tSpace-xl {
margin-top: 12px;
}
@ -27,6 +30,13 @@
.u-lSpace--xl {
margin-left: 12px;
}
.u-bSpace {
margin-bottom: 4px;
}
.u-bSpace--m {
margin-bottom: 8px;
}
.u-iBlock {
@include inline-block();
}