39 Commits

Author SHA1 Message Date
piensaenpixel
186c840f1d Revert "Update carto assets" 2017-05-10 18:30:16 +02:00
piensaenpixel
6da2097d5d Merge pull request #161 from CartoDB/update-cartoAssets
Update carto assets
2017-05-10 18:14:52 +02:00
piensaenpixel
b5be9eb869 remove console.log 2017-05-10 11:55:51 +02:00
piensaenpixel
5ec8402e70 add states 2017-05-10 11:43:15 +02:00
piensaenpixel
fb7c98c04b fix loading state 2017-05-10 11:28:38 +02:00
piensaenpixel
8060bfe0b2 update cartoassets with buttons and colors 2017-05-09 18:17:30 +02:00
xavijam
0044cebbd9 Touched theme 2017-05-05 12:31:16 +02:00
xavijam
154d451f51 README updated 2017-05-05 11:20:42 +02:00
piensaenpixel
c00ebeea7c Merge pull request #160 from CartoDB/change-loader
change loader
2017-03-08 10:56:45 +01:00
piensaenpixel
9de6ac6f4b change loader 2017-03-07 12:14:22 +01:00
Buti
c989154ff5 Merge pull request #159 from CartoDB/disabled-textarea
Added is-disabled class to textarea.
2017-02-17 18:22:55 +01:00
nobuti
eed33d84f2 Added is-disabled class to textarea for compatibility with enabler component. 2017-02-17 18:13:44 +01:00
xavijam
86fa520b7f Silly mistake 2017-01-18 11:04:47 +01:00
Javier Álvarez Medina
d206e22b7f Merge pull request #158 from CartoDB/input-has-icon
Adding has-icon class for text input
2017-01-18 10:57:29 +01:00
xavijam
6a941f43f7 Using mainSize variable 2017-01-18 10:54:13 +01:00
xavijam
9a5a0912ef Adding has-icon class for text input 2017-01-18 10:52:44 +01:00
piensaenpixel
0155c67d3a Merge pull request #157 from CartoDB/116-style-checks
fix 156
2017-01-11 08:03:53 +01:00
piensaenpixel
911a20354a fix inputs 2017-01-10 18:06:25 +01:00
piensaenpixel
b95da864bc fix 156 2017-01-10 17:23:36 +01:00
piensaenpixel
b631fd6509 Merge pull request #155 from CartoDB/add-min-height
add min-height
2016-11-30 18:20:49 +01:00
piensaenpixel
1b4db1225f add min-height 2016-11-30 13:49:54 +01:00
Carlos Matallín
40b08fbef5 Merge pull request #153 from CartoDB/10137-form-input-styles
forms: input styles
2016-10-31 17:01:44 +01:00
Carlos Matallín
39ccae7217 forms: input styles 2016-10-31 16:51:49 +01:00
Carlos Matallín
e75ab01844 forms: input styles 2016-10-31 15:09:22 +01:00
piensaenpixel
2fdf2c7096 Merge pull request #152 from CartoDB/fix-small-magnify
minor fix magnify-small
2016-10-25 17:43:50 +02:00
piensaenpixel
807ae7570e minor fix magnify-small 2016-10-24 17:25:50 +02:00
piensaenpixel
ebc1e5b423 Merge pull request #151 from CartoDB/add-blue-loader
add blue loader
2016-10-14 12:09:27 +02:00
piensaenpixel
05dca4da71 add blue loader 2016-10-14 12:06:20 +02:00
piensaenpixel
4e9c6706d1 Merge pull request #150 from CartoDB/fix-forms-option
Remove point in input and add line
2016-09-27 16:27:38 +02:00
piensaenpixel
4cc93a2c9a bump package json 2016-09-27 16:21:07 +02:00
piensaenpixel
742af51642 fix options 2016-09-27 16:20:08 +02:00
piensaenpixel
7751766940 Merge branch 'master' of github.com:CartoDB/CartoAssets 2016-09-27 13:24:57 +02:00
piensaenpixel
510900f130 upadte package json 2016-09-27 13:24:45 +02:00
María Checa
f40e72e5ee Merge pull request #149 from CartoDB/148-remove_after_content_character
Replaced `CDB-OptionInput-item:after` content character
2016-09-27 12:39:23 +02:00
piensaenpixel
0bcaa5564d add bar 2016-09-27 12:35:33 +02:00
María Checa
9c5a86ca5f Style fixes 2016-09-22 16:26:23 +02:00
María Checa
d0374d10d8 Replaced CDB-OptionInput-item:after content character
Used dimensions and background color to take the same result without
character in the content, avoiding characters problems.
2016-09-22 16:24:04 +02:00
María Checa
39f1f625c2 Merge pull request #147 from CartoDB/82-remove_form_slider_component
Removed slider component
2016-09-22 15:38:16 +02:00
María Checa
3f73a923a0 Removed slider component
This component is no longer used in the builder as it has been replaced
by a new JS component.
2016-09-20 15:31:21 +02:00
17 changed files with 141 additions and 1059 deletions

View File

@@ -41,6 +41,6 @@ Just run this command:
### Browser support
![Chrome](https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png)
![Chrome](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/archive/chrome_12-48/chrome_12-48_48x48.png) | ![Firefox](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/archive/firefox_1.5-3/firefox_1.5-3_48x48.png) | ![IE](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/edge-tile/edge-tile_48x48.png) | ![Opera](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/opera/opera_48x48.png) | ![Safari](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/39.3.0/safari/safari_48x48.png)
--- | --- | --- | --- | --- |
31+ ✔ | 38+ ✔ | 10+ ✔ | 31+ ✔ | 8+ ✔ |
31+ ✔ | 38+ ✔ | 11+ ✔ | 31+ ✔ | 8+ ✔ |

View File

@@ -1,7 +1,7 @@
{
"name": "cartoassets",
"description": "Share frontend assets between different CartoDB repositories",
"version": "0.1.32",
"version": "0.1.34",
"homepage": "https://github.com/cartodb/CartoAssets",
"author": {
"name": "CartoDB",

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -7,13 +7,13 @@
```
<ul class="CDB-AvatarList">
<li class="CDB-AvatarList-item">
<img src="/src/img/avatar-40x40.png" alt="User Name" class="CDB-AvatarList-itemMedia" />
<img src="https://www.drupal.org/files/issues/default-avatar.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" />
<img src="https://www.drupal.org/files/issues/default-avatar.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" />
<img src="https://www.drupal.org/files/issues/default-avatar.png" alt="User Name" class="CDB-AvatarList-itemMedia" />
</li>
<li class="CDB-AvatarList-itemMore">
<button class="CDB-Text is-semibold CDB-Size-small u-secondaryTextColor">+ 16</button>

View File

@@ -14,7 +14,7 @@
<span class="u-iBlock CDB-Checkbox-face"></span>
</div>
<div class="u-iBlock">
<input class="CDB-Checkbox" type="checkbox" name="vehicle" value="Car" disabled>
<input class="CDB-Checkbox" type="checkbox" name="vehicle2" value="Car" disabled>
<span class="u-iBlock CDB-Checkbox-face"></span>
</div>
```
@@ -43,6 +43,8 @@
background: $cWhite;
cursor: pointer;
box-sizing: border-box;
z-index: 2;
pointer-events: none;
&::before,
&::after {
@@ -51,7 +53,7 @@
bottom: 3px;
width: 2px;
border-radius: 1px;
background: $cSecondaryLine;
background: $cWhite;
content: '';
}
@@ -79,25 +81,35 @@
}
}
.CDB-Checkbox:disabled + .CDB-Checkbox-face {
border: 1px solid $cSecondaryLine;
background: $cThirdBackground;
.CDB-Checkbox:checked:hover + .CDB-Checkbox-face {
border: 1px solid $cBlue;
&::before,
&::after {
background: $cWhite;
}
}
.CDB-Checkbox:disabled:hover + .CDB-Checkbox-face {
border: 1px solid $cSecondaryLine;
}
.CDB-Checkbox:checked:hover + .CDB-Checkbox-face,
.CDB-Checkbox:focus + .CDB-Checkbox-face {
border: 1px solid $cBlue;
}
.CDB-Checkbox:hover + .CDB-Checkbox-face {
border: 1px solid $cHoverLine;
&::before,
&::after {
background: $cHoverLine;
}
}
.CDB-Checkbox:active + .CDB-Checkbox-face {
border: 1px solid $cBlue;
&::before,
&::after {
background: $cBlue;
}
}
.CDB-Checkbox:disabled + .CDB-Checkbox-face {
border: 1px solid $cSecondaryLine;
background: $cThirdBackground;
&::before,
&::after {
opacity: 0;
}
}

View File

@@ -17,6 +17,7 @@
.CDB-InputText {
width: 100%;
min-height: 32px;
padding: 7px 8px;
border: 1px solid $cMainLine;
border-radius: $baseSize / 2;
@@ -30,6 +31,13 @@
&.is-empty {
color: $cHintText;
}
&.is-number {
color: darken($cHighlight, 16%);
}
&.is-null {
color: $cHintText;
font-style: italic;
}
&:hover {
border: 1px solid $cHoverLine;
}
@@ -43,6 +51,9 @@
background: $cThirdBackground;
cursor: default;
}
&.has-icon {
padding-right: $baseSize * 4;
}
&.has-error {
@include default-form-error-style();
}

View File

@@ -41,6 +41,25 @@
<br/>
<div class="CDB-OptionInput is-active CDB-Text">
<ul class="CDB-OptionInput-container">
<li class="CDB-OptionInput-item">
<button type="button" class="CDB-OptionInput-content">8...12</button>
</li>
<li class="CDB-OptionInput-item">
<button type="button" class="CDB-OptionInput-content">solid</button>
</li>
<li class="CDB-OptionInput-item is-active">
<button type="button" class="CDB-ColorBarContainer CDB-OptionInput-content">
<span class="CDB-ColorBar" style="background-color: #FFFFC0;"></span>
</button>
</li>
</ul>
</div>
<br/>
<button type="button" class="CDB-OptionInput">
<div class="CDB-OptionInput-container">
<span class="CDB-ColorBar CDB-ColorBar-gradient" style="background: linear-gradient(90deg, #FFFECA, #9FDAB3, #36B6C5, #207EBA, #203196);"></span>
@@ -120,9 +139,11 @@
box-sizing: content-box;
&::after {
padding: 0 $baseSize - 2;
color: $cHintText;
content: '·';
width: 1px;
height: 100%;
margin-right: $baseSize;
background-color: $cSecondaryLine;
content: '';
}
&:last-child {
width: 100%;
@@ -139,6 +160,8 @@
@include display-flex();
@include align-items(center);
height: 100%;
margin-left: -$baseSize;
padding: 0 $baseSize + 2;
color: $cMainBg;
box-sizing: content-box;
white-space: nowrap;
@@ -147,6 +170,9 @@
text-decoration: none;
}
}
.CDB-OptionInput-item:first-child .CDB-OptionInput-content {
border-bottom-left-radius: 4px;
}
.CDB-OptionInput-item.is-active > .CDB-OptionInput-content {
border-bottom: 1px solid $cMainBg;
}

View File

@@ -55,7 +55,7 @@
margin-top: -3px;
margin-left: -3px;
border-radius: 50%;
background: $cSecondaryLine;
background: $cWhite;
content: '';
}
}
@@ -75,7 +75,7 @@
background: $cThirdBackground;
&::before {
background: $cWhite;
opacity: 0;
}
}
@@ -85,9 +85,28 @@
.CDB-Radio:hover + .CDB-Radio-face {
border: 1px solid $cHoverLine;
&::before {
background: $cHoverLine;
}
}
.CDB-Radio:focus + .CDB-Radio-face,
.CDB-Radio:checked:hover + .CDB-Radio-face {
border: 1px solid $cBlue;
}
.CDB-Radio:checked:hover + .CDB-Radio-face {
&::before {
background: $cWhite;
}
}
.CDB-Radio:active + .CDB-Radio-face {
&::before {
background: $cBlue;
}
}

View File

@@ -39,6 +39,10 @@
<br/>
<div class="CDB-InputText CDB-Text is-cursor is-empty">DejaVu Sans</div>
<br/>
<div class="CDB-InputText CDB-Text is-cursor is-null">null</div>
<br/>
<div class="CDB-InputText CDB-Text is-cursor is-number">46,594</div>
<br/>
<select name="select" class="CDB-SelectFake CDB-Text">
<option value="value1" selected>Choose an option</option>
<option value="value2">Hide</option>

View File

@@ -1,143 +0,0 @@
// Sliders styles
// ----------------------------------------------
/* SG
# Forms/Sliders
```
<input type="range" min="100" max="500" step="50" value="300" class="CDB-Range"/>
```
*/
@import '../../cdb-variables/sizes';
@import '../../cdb-variables/colors';
.CDB-Range {
-webkit-appearance: none;
-moz-appearance: none;
position: relative;
width: 100%;
margin: -4px 0 0;
padding: 0 6px;
border: 0;
background: transparent;
cursor: pointer;
overflow: hidden;
vertical-align: middle;
&:focus {
outline: 0;
}
}
.CDB-Range::-webkit-slider-runnable-track {
height: $baseSize / 4;
margin: $baseSize 0;
border-radius: $baseSize / 2;
background: $cMainLine;
}
.CDB-Range::-webkit-slider-thumb {
position: relative;
width: $baseSize / 2;
height: 100%;
border-radius: $baseSize / 2;
&::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: -3000px;
height: $baseSize / 4;
border-radius: $baseSize / 2;
background: $cBlue;
content: '';
}
&::after {
position: absolute;
top: -6px;
right: -6px;
left: -6px;
width: $baseSize + 4;
height: $baseSize + 4;
border: 1px solid $cBlue;
border-radius: 50%;
background: $cWhite;
content: '';
z-index: 1;
}
&:focus,
&:hover {
&::after {
cursor: pointer;
}
}
&:disabled {
&::before,
&::after {
opacity: 0.2;
}
}
}
.CDB-Range::-moz-range-track {
height: $baseSize / 4;
margin: $baseSize 0;
border: 0;
border-radius: $baseSize / 2;
outline: none;
background: $cMainLine;
}
.CDB-Range::-moz-range-thumb {
position: absolute;
top: -6px;
right: -6px;
left: -6px;
width: $baseSize + 4;
height: $baseSize + 4;
border: 1px solid $cBlue;
border-radius: 50%;
background: $cWhite;
content: '';
z-index: 1;
}
.CDB-Range::-moz-range-progress {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: -3000px;
height: $baseSize / 4;
border-radius: $baseSize / 2;
background: $cBlue;
content: '';
}
.CDB-Range::-ms-track {
height: $baseSize / 4;
margin: $baseSize 0;
border: transparent;
border-radius: $baseSize / 2;
background: $cMainLine;
color: transparent;
}
.CDB-Range::-ms-thumb {
position: absolute;
top: -6px;
right: -6px;
left: -6px;
width: $baseSize + 4;
height: $baseSize + 4;
border: 1px solid $cBlue;
border-radius: 50%;
background: $cWhite;
content: '';
z-index: 1;
}

View File

@@ -32,7 +32,8 @@
outline-color: transparent;
outline-style: none;
}
&:disabled {
&:disabled,
&.is-disabled {
border-color: $cSecondaryLine;
background: $cThirdBackground;
}

View File

@@ -17,28 +17,26 @@ This is the generic loader for widgets, maps, components, ...
@import '../cdb-variables/sizes';
.CDB-Loader {
@include css3-prefix(animation, loader-progress 1000ms linear 1);
@include opacity(0);
@include transition(opacity, 1000ms);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: rgba($cBlue, 1);
width: 50%;
height: 3px;
transform: translateX(-200%);
background-image: linear-gradient(90deg, rgba($cBlue, 1) 0%, #32BBFE 90%, #FAFEFF 95%);
z-index: 2;
}
.CDB-Loader.is-visible {
@include css3-prefix(animation, loader-progress 2000ms linear infinite);
@include opacity(1);
@include css3-prefix(animation, loader-progress 1s cubic-bezier(0, 0.85, 0.6, 0.6) infinite);
}
@include keyframes(loader-progress) {
0% {
width: 0;
from {
transform: translateX(-200%);
}
100% {
width: 100%;
to {
transform: translateX(200%);
}
}
@@ -47,6 +45,12 @@ This is the generic loader for widgets, maps, components, ...
```
<div style="padding: 20px;">
<div class="CDB-LoaderIcon is-blue">
<svg class="CDB-LoaderIcon-spinner" viewBox="0 0 50 50">
<circle class="CDB-LoaderIcon-path" cx="25" cy="25" r="20" fill="none"></circle>
</svg>
</div>
<div class="CDB-LoaderIcon is-dark">
<svg class="CDB-LoaderIcon-spinner" viewBox="0 0 50 50">
<circle class="CDB-LoaderIcon-path" cx="25" cy="25" r="20" fill="none"></circle>
@@ -131,6 +135,9 @@ This is the generic loader for widgets, maps, components, ...
.CDB-LoaderIcon.is-dark .CDB-LoaderIcon-path {
stroke: rgba(0, 0, 0, 0.24);
}
.CDB-LoaderIcon.is-blue .CDB-LoaderIcon-path {
stroke: $cBlue;
}
@keyframes rotate {
100% {

View File

@@ -97,16 +97,16 @@ Description
.CDB-Shape-magnify.is-small {
&::before {
top: 3px;
left: 3px;
width: 6px;
height: 6px;
left: 4px;
width: 5px;
height: 5px;
}
&::after {
display: block;
position: absolute;
right: 4px;
bottom: 2px;
bottom: 3px;
width: 1px;
height: 5px;
transform: rotate(314deg);

View File

@@ -47,7 +47,7 @@
});
</script>
<div id="styleguide-menu">
<div class="CDB-Text" id="styleguide-menu">
<ul>
<li>
<a class="submenulink" href="#Basics" data-section="Basics">Basics</a>
@@ -73,881 +73,21 @@
<div id="styleguide">
<div class="section" id="Basics" data-section="Basics" data-heading="Basics">
<div class="comment">
<h1>Basics</h1>
<p>Important notes about this styleguide</p>
<h1 class="CDB-Text CDB-Size-huge is-semibold">Basics</h1>
<p class="CDB-Text u-tSpace-xl">Important notes about this styleguide</p>
</div>
<div class="result">
<p>This is a preliminar WIP of the new dashboard stylesheet, based on the naming conventions of <a href="https://github.com/suitcss/suit/blob/master/doc/naming-conventions.md">suitcss</a> and <a href="https://medium.com/@fat/mediums-css-is-actually-pretty-fucking-good-b8e2a6c78b06">Mediums CSS is actually pretty good.</a></p>
<p class="CDB-Text">This is a preliminar WIP of the new dashboard stylesheet, based on the naming conventions of <a href="https://github.com/suitcss/suit/blob/master/doc/naming-conventions.md">suitcss</a> and <a href="https://medium.com/@fat/mediums-css-is-actually-pretty-fucking-good-b8e2a6c78b06">Mediums CSS is actually pretty good.</a></p>
<p><strong>General rules</strong></p>
<p class="CDB-Text is-semibold u-tSpace-xl">General rules</p>
<ul>
<li>All new elements added in this repository should have included a 'CDB-' namespace.</li>
<li>
<strong>Don't create default styles for common elements</strong> (e.g. <code>input { padding: 10px 0 }</code>). It will make more difficult edit styles for the future custom elements and the <code>!important</code> use will grow.</li>
<li>
<strong>Avoid creating new classes with only one attribute</strong> (e.g. <code>.marginRight { margin-right: 10px }</code> ). It is impossible to manage the amount of cases we would like to cover.</li>
<ul class="styleguide-list CDB-Text u-tSpace-xl">
<li class="u-tSpace">All new elements added in this repository should have included a 'CDB-' namespace.</li>
<li class="u-tSpace">
<span class="CDB-Text is-semibold">Don't create default styles for common elements</span> (e.g. <code>input { padding: 10px 0 }</code>). It will make more difficult edit styles for the future custom elements and the <code>!important</code> use will grow.</li>
<li class="u-tSpace">
<span class="CDB-Text is-semibold">Avoid creating new classes with only one attribute</span> (e.g. <code>.marginRight { margin-right: 10px }</code> ). It is impossible to manage the amount of cases we would like to cover.</li>
</ul>
<hr>
<p><strong>Table of contents</strong></p>
<ul>
<li>
<a href="#components">Components</a>
<ul>
<li><a href="#componentname">ComponentName</a></li>
<li><a href="#componentname--modifiername">ComponentName--modifierName</a></li>
<li><a href="#componentname-descendentname">ComponentName-descendentName</a></li>
<li><a href="#componentnameis-stateofcomponent">ComponentName.is-stateOfComponent</a></li>
</ul>
</li>
<li><a href="#javascript">JavaScript</a></li>
<li><a href="#structure-sample">Structure sample</a></li>
<li><a href="#a-word-on-precompilers">Precompilers</a></li>
<li><a href="#colors">Colors</a></li>
<li><a href="#z-index">Z-Index</a></li>
<li>
<a href="#formatting">Formatting</a>
<ul>
<li><a href="#spacing">Spacing</a></li>
<li><a href="#quotes">Quotes</a></li>
<li><a href="#colors-1">Colors</a></li>
</ul>
</li>
<li><a href="#things-to-add-to-the-guide">Things to add to the guide</a></li>
</ul>
<hr>
<h2>
<a id="components" class="anchor" href="#components" aria-hidden="true"><span class="octicon octicon-link"></span></a>Components</h2>
<p>Syntax: <code>&lt;ComponentName&gt;[--modifierName|-descendentName]</code></p>
<h4>
<a id="componentname" class="anchor" href="#componentname" aria-hidden="true"><span class="octicon octicon-link"></span></a>ComponentName</h4>
<p>The component's name <strong>must be written in camel case</strong>.</p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.MyComponent</span> { <span class="pl-c">/* … */</span> }</pre></div>
<div class="highlight highlight-text-html-basic"><pre>&lt;<span class="pl-ent">article</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>MyComponent<span class="pl-pds">"</span></span>&gt;
&lt;/<span class="pl-ent">article</span>&gt;</pre></div>
<h4>
<a id="componentname--modifiername" class="anchor" href="#componentname--modifiername" aria-hidden="true"><span class="octicon octicon-link"></span></a>ComponentName--modifierName</h4>
<p>A component modifier is a class that modifies the presentation of the base component in some form. </p>
<ol>
<li>Modifier names <strong>must be written in camel case</strong> and be <strong>separated from the component name by two hyphens</strong>. </li>
<li>
<strong>The class should be included in the HTML in addition to the base component class</strong>.</li>
</ol>
<div class="highlight highlight-source-css"><pre><span class="pl-c">/* Core button */</span>
<span class="pl-e">.Btn</span> { <span class="pl-c">/* … */</span> }
<span class="pl-c">/* Default button style */</span>
<span class="pl-e">.Btn--default</span> { <span class="pl-c">/* … */</span> }</pre></div>
<div class="highlight highlight-text-html-basic"><pre>&lt;<span class="pl-ent">article</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>Btn Btn--default<span class="pl-pds">"</span></span>&gt;
&lt;/<span class="pl-ent">article</span>&gt;</pre></div>
<h4>
<a id="componentname-descendentname" class="anchor" href="#componentname-descendentname" aria-hidden="true"><span class="octicon octicon-link"></span></a>ComponentName-descendentName</h4>
<ol>
<li>A component descendent is a class that is attached to a descendent node of a component. </li>
<li>It's responsible for applying presentation directly to the descendent on behalf of a particular component. </li>
<li>
<strong>Descendent names must be written in camel case</strong>.</li>
</ol>
<div class="highlight highlight-text-html-basic"><pre>&lt;<span class="pl-ent">article</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>Tweet<span class="pl-pds">"</span></span>&gt;
&lt;<span class="pl-ent">header</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>Tweet-header<span class="pl-pds">"</span></span>&gt;
&lt;<span class="pl-ent">img</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>Tweet-avatar<span class="pl-pds">"</span></span> <span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>{{src}}<span class="pl-pds">"</span></span> <span class="pl-e">alt</span>=<span class="pl-s"><span class="pl-pds">"</span>{{alt}}<span class="pl-pds">"</span></span>&gt;
&lt;/<span class="pl-ent">header</span>&gt;
&lt;<span class="pl-ent">div</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>Tweet-bodyText<span class="pl-pds">"</span></span>&gt;
&lt;/<span class="pl-ent">div</span>&gt;
&lt;/<span class="pl-ent">article</span>&gt;</pre></div>
<h4>
<a id="componentnameis-stateofcomponent" class="anchor" href="#componentnameis-stateofcomponent" aria-hidden="true"><span class="octicon octicon-link"></span></a>ComponentName.is-stateOfComponent</h4>
<p>Use <code>is-stateName</code> to reflect changes to a component's state. </p>
<ol>
<li>The state name <strong>must be camel case</strong>. </li>
<li>
<strong>Never style these classes directly</strong>: they should always be used as an adjoining class.</li>
</ol>
<p>This means that the same state names can be used in multiple contexts, but every component must define its own styles for the state (as they are scoped to the component).</p>
<p><strong>Right:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.Tweet</span> { <span class="pl-c">/* … */</span> }
<span class="pl-e">.Tweet.is-expanded</span> { <span class="pl-c">/* … */</span> }
&lt;<span class="pl-ent">article</span> class="Tweet is-expanded"&gt;
&lt;/<span class="pl-ent">article</span>&gt;</pre></div>
<p><strong>Wrong:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.Tweet</span> { <span class="pl-c">/* … */</span> }
<span class="pl-e">.Tweet.expanded</span> { <span class="pl-c">/* … */</span> }</pre></div>
<div class="highlight highlight-text-html-basic"><pre>&lt;<span class="pl-ent">article</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>Tweet expanded<span class="pl-pds">"</span></span>&gt;
&lt;/<span class="pl-ent">article</span>&gt;</pre></div>
<p>We should always rely on the same terminology to express state of a component: i.e.: a common term for <code>is-active</code>, <code>is-expanded</code>, <code>is-selected</code>, <code>is-highlighted</code>, ... </p>
<h2>
<a id="javascript" class="anchor" href="#javascript" aria-hidden="true"><span class="octicon octicon-link"></span></a>JavaScript</h2>
<p>Syntax: <code>js-&lt;targetName&gt;</code></p>
<p>JavaScript-specific classes reduce the risk that changing the structure or theme of components will inadvertently affect any required JavaScript behaviour and complex functionality. It is not neccesarry to use them in every case, just think of them as a tool in your utility belt. If you are creating a class, which you dont intend to use for styling, but instead only as a selector in JavaScript, you should probably be adding the js- prefix. In practice this looks like this:</p>
<div class="highlight highlight-text-html-basic"><pre>&lt;<span class="pl-ent">a</span> <span class="pl-e">href</span>=<span class="pl-s"><span class="pl-pds">"</span>/login<span class="pl-pds">"</span></span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>Btn Btn-primary js-login<span class="pl-pds">"</span></span>&gt;&lt;/<span class="pl-ent">a</span>&gt;</pre></div>
<p><strong>JavaScript-specific classes should not, under any circumstances, be styled.</strong></p>
<hr>
<h2>
<a id="a-word-on-precompilers" class="anchor" href="#a-word-on-precompilers" aria-hidden="true"><span class="octicon octicon-link"></span></a>A word on (Pre)compilers</h2>
<p>Since we use Rails as a backend, we make use of Sprockets to make all the dirty work with stylesheets (and javascripts). Many of the stylesheets are constructed by simply writing <code>require_directory</code><a href="http://markdotto.com/2014/07/23/githubs-css/">this is awesome, but it also kind of sucks</a>.</p>
<p>Preferably we should use <code>@import</code> instead of <code>require</code> when possible.
<a href="http://pivotallabs.com/structure-your-sass-files-with-import/">http://pivotallabs.com/structure-your-sass-files-with-import/</a></p>
<p>When using require we should list the required files in the order they must be applied, as an added control to avoid undesired behaviours.</p>
<p><strong>Bad:</strong></p>
<pre><code>/*
*= require dashboard/header
*= require dashboard/table
*/
</code></pre>
<p><strong>Worse:</strong></p>
<pre><code>/*
*= require_tree dashboard
*/
</code></pre>
<p><strong>Good:</strong></p>
<pre><code>@import "dashboard/header";
@import "dashboard/tables";
</code></pre>
<p><strong>Better:</strong></p>
<pre><code>@import
"dashboard/header",
"dashboard/tables";
</code></pre>
<hr>
<h2>
<a id="structure-sample" class="anchor" href="#structure-sample" aria-hidden="true"><span class="octicon octicon-link"></span></a>Structure sample</h2>
<pre><code>
.Btn {}
.Btn--m {}
.Btn--highlight {}
.Btn--green {}
.Btn.is-active {}
.Menu {}
.Menu-item {}
.Menu-link {}
.Header {}
.Navbar {}
.Navbar-header {}
.Navbar-brand {}
.Navbar-searchField {}
.Navbar-searchButton {}
.Navbar-menu {}
.Navbar-menuItem {}
.Navbar-menuLink {}
.Dashboard {}
.Dashboard-header {}
.Dashboard-avatar {}
.Dashboard-title {}
.Dashboard-menu {}
.Dashboard-subHeader {}
.Dashboard-subMenu {}
.Dashboard-subMenuItem {}
.Dashboard-subMenuLink {}
.Block {}
.Block-thumbnail {}
.Block-title {}
.Block-description {}
.Block-tags {}
.Block-status {}
.Block-footer {}
</code></pre>
<hr>
<h2>
<a id="colors" class="anchor" href="#colors" aria-hidden="true"><span class="octicon octicon-link"></span></a>Colors</h2>
<h4>
<a id="colorsscss" class="anchor" href="#colorsscss" aria-hidden="true"><span class="octicon octicon-link"></span></a>colors.scss</h4>
<p>Syntax: <code>$c&lt;colorName&gt;</code></p>
<h4>
<a id="sample" class="anchor" href="#sample" aria-hidden="true"><span class="octicon octicon-link"></span></a>Sample</h4>
<div class="highlight highlight-source-css"><pre>// Colors
// --------------------------------------------------
// Paragraphs
$cTypography-headers: rgba(#333, 1);
$cTypography-paragraphs: rgba(#666, 1);
$cTypography-secondary: rgba(#999, 1);
$cTypography-help: rgba(<span class="pl-e">#CCC</span>, 1);
$cTypography-headersOverBlack: rgba(<span class="pl-e">#FFF</span>, 1);
$cTypography-<span class="pl-ent">link</span>: rgba(#0090D7, 1);
$cTypography-linkHover: rgba(#62B4E3, 1);
$cTypography-linkSelected: rgba(#333, 1);
// Structure
$cStructure-mainBkg: rgba(<span class="pl-e">#FFF</span>, 1);
$cStructure-mainLine: rgba(<span class="pl-e">#DDD</span>, 1);
$cStructure-grayBkg: rgba(<span class="pl-e">#F9F9F9</span>, 1);
$cStructure-softLine: rgba(<span class="pl-e">#EEE</span>, 1);
// Highlight
$cHighlight-main: rgba(#0090D7, 1);
$cHighlight-positive: rgba(#8FB83F, 1);
$cHighlight-negative: rgba(<span class="pl-e">#C74B43</span>, 1);
$cHighlight-alert: rgba(<span class="pl-e">#C67B44</span>, 1);</pre></div>
<p>Don't use named colors, try to use meaningful names.</p>
<hr>
<h2>
<a id="z-index" class="anchor" href="#z-index" aria-hidden="true"><span class="octicon octicon-link"></span></a>Z-Index</h2>
<h4>
<a id="z-indexscss" class="anchor" href="#z-indexscss" aria-hidden="true"><span class="octicon octicon-link"></span></a>z-index.scss</h4>
<div class="highlight highlight-source-css"><pre>// Z-Index Scale (private vars)
// --------------------------------------------------
@zIndex-1: 100;
@zIndex-2: 200;
@zIndex-3: 300;
@zIndex-4: 400;
@zIndex-5: 500;
@zIndex-6: 600;
@zIndex-7: 700;
@zIndex-8: 800;
@zIndex-9: 900;
@zIndex-10: 1000;</pre></div>
<h4>
<a id="z-index-file-use" class="anchor" href="#z-index-file-use" aria-hidden="true"><span class="octicon octicon-link"></span></a>z-index file use</h4>
<pre><code>// Z-Index Applications
// --------------------------------------------------
@zIndex-1--screenForeground: @zIndex-1;
@zIndex-1--followUpVisibility: @zIndex-1;
@zIndex-1--prlWelcome: @zIndex-1;
@zIndex-1--appImageDropdown: @zIndex-1;
@zIndex-1--surfaceUnder: @zIndex-1;
@zIndex-1--blockGroup: @zIndex-1;
(…)
@zIndex-9--zoomOverlayTarget: @zIndex-9;
@zIndex-9--navOverlayTouch: @zIndex-9;
@zIndex-9--overlay: @zIndex-9;
@zIndex-9--dialog: @zIndex-9;
@zIndex-9--tooltip: @zIndex-9;
</code></pre>
<hr>
<h2>
<a id="formatting" class="anchor" href="#formatting" aria-hidden="true"><span class="octicon octicon-link"></span></a>Formatting</h2>
<p>From: <a href="https://gist.github.com/fat/a47b882eb5f84293c4ed">https://gist.github.com/fat/a47b882eb5f84293c4ed</a></p>
<p>The following are some high level page formatting style rules.</p>
<p><a name="user-content-property-value"></a></p>
<h3>
<a id="property-value" class="anchor" href="#property-value" aria-hidden="true"><span class="octicon octicon-link"></span></a>Property: value</h3>
<p>There should be a blank space between a property and a value:</p>
<p><strong>Right:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.content-edit</span> { <span class="pl-c1"><span class="pl-c1">background</span></span>: <span class="pl-c1">red</span> }</pre></div>
<p><strong>Wrong:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.content-edit</span> {<span class="pl-c1"><span class="pl-c1">background</span></span>:<span class="pl-c1">red</span>}</pre></div>
<p>If you have to define an only one property, leave blank spaces between brackets.</p>
<p><a name="user-content-spacing"></a></p>
<h3>
<a id="spacing" class="anchor" href="#spacing" aria-hidden="true"><span class="octicon octicon-link"></span></a>Spacing</h3>
<p>CSS rules should be comma seperated but live on new lines:</p>
<p><strong>Right:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.content</span>,
<span class="pl-e">.content-edit</span> {
}</pre></div>
<p><strong>Wrong:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.content</span>, <span class="pl-e">.content-edit</span> {
}</pre></div>
<p>CSS blocks should be seperated by a single new line. not two. not 0.</p>
<p><strong>Right:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.content</span> {
}
<span class="pl-e">.content-edit</span> {
}</pre></div>
<p><strong>Wrong:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">.content</span> {
}
<span class="pl-e">.content-edit</span> {
}</pre></div>
<hr>
<h3>
<a id="quotes" class="anchor" href="#quotes" aria-hidden="true"><span class="octicon octicon-link"></span></a>Quotes</h3>
<p>Quotes are optional in CSS and LESS. We use double quotes as it is visually clearer that the string is not a selector or a style property.</p>
<p><strong>Right:</strong></p>
<div class="highlight highlight-source-css"><pre>background-image: url("/<span class="pl-ent">img</span>/you<span class="pl-e">.jpg</span>");
font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial;</pre></div>
<p><strong>Wrong:</strong></p>
<div class="highlight highlight-source-css"><pre>background-image: url(/<span class="pl-ent">img</span>/you<span class="pl-e">.jpg</span>);
font-family: Helvetica Neue Light, Helvetica Neue, Helvetica, Arial;</pre></div>
<hr>
<h3>
<a id="colors-1" class="anchor" href="#colors-1" aria-hidden="true"><span class="octicon octicon-link"></span></a>Colors</h3>
<p>When implementing feature styles, you should only be using color variables provided by colors.css.scss.</p>
<p>When adding a color variable to colors.css.scss, using RGB and RGBA color units are preferred over hex, named, HSL, or HSLA values.</p>
<p><strong>Right:</strong></p>
<div class="highlight highlight-source-css"><pre>rgb(50, 50, 50);
rgba(50, 50, 50, 0<span class="pl-e">.2</span>);</pre></div>
<p><strong>Wrong:</strong></p>
<div class="highlight highlight-source-css"><pre><span class="pl-e">#FFF</span>;
<span class="pl-e">#FFFFFF</span>;
white;
hsl(120, 100%, 50%);
hsla(120, 100%, 50%, 1);</pre></div>
<hr>
<h3>
<a id="things-to-add-to-the-guide" class="anchor" href="#things-to-add-to-the-guide" aria-hidden="true"><span class="octicon octicon-link"></span></a>Things to add to the guide</h3>
<ol>
<li>Define a type scale (variables for font-sizes, weights, letter-spacing, line-heights, etc.).</li>
<li>
<code>.u-</code> prefixed class name for single purpose utility classes like .u-underline, .u-capitalize, etc. (not sure about this one)</li>
<li>Don't use compass predefined functions, create a mixin in new <code>mixins.css.scss</code>file.</li>
<li>No more clearfix or layout hacks, use flexbox:
<ul>
<li><a href="http://css-tricks.com/snippets/css/a-guide-to-flexbox/">http://css-tricks.com/snippets/css/a-guide-to-flexbox/</a></li>
<li><a href="http://chriswrightdesign.com/experiments/flexbox-adventures/">http://chriswrightdesign.com/experiments/flexbox-adventures/</a></li>
</ul>
</li>
</ol>
<hr>
<h3>
<a id="csscomb-config" class="anchor" href="#csscomb-config" aria-hidden="true"><span class="octicon octicon-link"></span></a>CSSComb config</h3>
<pre><code> "config": {
// Whether to add a semicolon after the last value/mixin.
"always-semicolon": true,
// Set indent for code inside blocks, including media queries and nested rules.
"block-indent": " ",
// Unify case of hexadecimal colors.
"color-case": "lower",
// Whether to expand hexadecimal colors or use shorthands.
"color-shorthand": true,
// Unify case of element selectors.
"element-case": "lower",
// Add/remove line break at EOF.
"eof-newline": true,
// Add/remove leading zero in dimensions.
"leading-zero": false,
// Unify quotes style.
"quotes": "single",
// Remove all rulesets that contain nothing but spaces.
"remove-empty-rulesets": true,
// Set space after `:` in declarations.
"space-after-colon": " ",
// Set space after combinator (for example, in selectors like `p &gt; a`).
"space-after-combinator": " ",
// Set space after `{`.
"space-after-opening-brace": "\n",
// Set space after selector delimiter.
"space-after-selector-delimiter": "\n",
// Set space before `}`.
"space-before-closing-brace": "\n",
// Set space before `:` in declarations.
"space-before-colon": "",
// Set space before combinator (for example, in selectors like `p &gt; a`).
"space-before-combinator": " ",
// Set space before `{`.
"space-before-opening-brace": " ",
// Set space before selector delimiter.
"space-before-selector-delimiter": "",
// Set space between declarations (i.e. `color: tomato`).
"space-between-declarations": "\n",
// Whether to trim trailing spaces.
"strip-spaces": true,
// Whether to remove units in zero-valued dimensions.
"unitless-zero": true,
// Whether to align prefixes in properties and values.
"vendor-prefix-align": true,
// Sort properties in particular order.
"sort-order": [
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"display",
"float",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"-webkit-box-sizing",
"-moz-box-sizing",
"box-sizing",
"-webkit-appearance",
"-moz-appearance",
"appearance",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"overflow",
"overflow-x",
"overflow-y",
"-webkit-overflow-scrolling",
"-ms-overflow-x",
"-ms-overflow-y",
"-ms-overflow-style",
"clip",
"clear",
"src",
"font",
"font-family",
"font-size",
"font-weight",
"font-style",
"font-variant",
"font-size-adjust",
"font-stretch",
"font-effect",
"font-emphasize",
"font-emphasize-position",
"font-emphasize-style",
"font-smooth",
"-webkit-hyphens",
"-moz-hyphens",
"hyphens",
"line-height",
"color",
"text-align",
"-webkit-text-align-last",
"-moz-text-align-last",
"-ms-text-align-last",
"text-align-last",
"text-emphasis",
"text-emphasis-color",
"text-emphasis-style",
"text-emphasis-position",
"text-decoration",
"text-underline-position",
"-webkit-text-decoration-style",
"-moz-text-decoration-style",
"text-decoration-style",
"-moz-text-decoration-color",
"text-decoration-color",
"-moz-text-decoration-line",
"text-decoration-line",
"text-indent",
"-ms-text-justify",
"text-justify",
"text-outline",
"-ms-text-overflow",
"text-overflow",
"text-overflow-ellipsis",
"text-overflow-mode",
"text-shadow",
"text-transform",
"text-wrap",
"-webkit-text-size-adjust",
"-moz-text-size-adjust",
"-ms-text-size-adjust",
"text-size-adjust",
"letter-spacing",
"-ms-word-break",
"word-break",
"word-spacing",
"-ms-word-wrap",
"word-wrap",
"-moz-tab-size",
"-o-tab-size",
"tab-size",
"white-space",
"vertical-align",
"list-style",
"list-style-position",
"list-style-type",
"list-style-image",
"pointer-events",
"-webkit-touch-action",
"-ms-touch-action",
"touch-action",
"cursor",
"visibility",
"zoom",
"flex-direction",
"flex-order",
"flex-pack",
"flex-align",
"table-layout",
"empty-cells",
"caption-side",
"border-spacing",
"border-collapse",
"content",
"quotes",
"counter-reset",
"counter-increment",
"resize",
"-webkit-user-select",
"-moz-user-select",
"-ms-user-select",
"user-select",
"nav-index",
"nav-up",
"nav-right",
"nav-down",
"nav-left",
"background",
"background-color",
"background-image",
"-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
"filter:progid:DXImageTransform.Microsoft.gradient",
"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader",
"filter",
"background-repeat",
"background-attachment",
"background-position",
"background-position-x",
"-ms-background-position-x",
"background-position-y",
"-ms-background-position-y",
"-webkit-background-clip",
"-moz-background-clip",
"background-clip",
"background-origin",
"-webkit-background-size",
"-moz-background-size",
"-o-background-size",
"background-size",
"border",
"border-width",
"border-style",
"border-color",
"border-top",
"border-top-width",
"border-top-style",
"border-top-color",
"border-right",
"border-right-width",
"border-right-style",
"border-right-color",
"border-bottom",
"border-bottom-width",
"border-bottom-style",
"border-bottom-color",
"border-left",
"border-left-width",
"border-left-style",
"border-left-color",
"-webkit-box-decoration-break",
"box-decoration-break",
"-webkit-border-radius",
"-moz-border-radius",
"border-radius",
"-webkit-border-top-left-radius",
"-moz-border-radius-topleft",
"border-top-left-radius",
"-webkit-border-top-right-radius",
"-moz-border-radius-topright",
"border-top-right-radius",
"-webkit-border-bottom-right-radius",
"-moz-border-radius-bottomright",
"border-bottom-right-radius",
"-webkit-border-bottom-left-radius",
"-moz-border-radius-bottomleft",
"border-bottom-left-radius",
"-webkit-border-image",
"-moz-border-image",
"-o-border-image",
"border-image",
"-webkit-border-image-source",
"-moz-border-image-source",
"-o-border-image-source",
"border-image-source",
"-webkit-border-image-slice",
"-moz-border-image-slice",
"-o-border-image-slice",
"border-image-slice",
"-webkit-border-image-width",
"-moz-border-image-width",
"-o-border-image-width",
"border-image-width",
"-webkit-border-image-outset",
"-moz-border-image-outset",
"-o-border-image-outset",
"border-image-outset",
"-webkit-border-image-repeat",
"-moz-border-image-repeat",
"-o-border-image-repeat",
"border-image-repeat",
"outline",
"outline-width",
"outline-style",
"outline-color",
"outline-offset",
"-webkit-box-shadow",
"-moz-box-shadow",
"box-shadow",
"filter:progid:DXImageTransform.Microsoft.Alpha(Opacity",
"-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
"opacity",
"-ms-interpolation-mode",
"-webkit-transition",
"-moz-transition",
"-ms-transition",
"-o-transition",
"transition",
"-webkit-transition-delay",
"-moz-transition-delay",
"-ms-transition-delay",
"-o-transition-delay",
"transition-delay",
"-webkit-transition-timing-function",
"-moz-transition-timing-function",
"-ms-transition-timing-function",
"-o-transition-timing-function",
"transition-timing-function",
"-webkit-transition-duration",
"-moz-transition-duration",
"-ms-transition-duration",
"-o-transition-duration",
"transition-duration",
"-webkit-transition-property",
"-moz-transition-property",
"-ms-transition-property",
"-o-transition-property",
"transition-property",
"-webkit-transform",
"-moz-transform",
"-ms-transform",
"-o-transform",
"transform",
"-webkit-transform-origin",
"-moz-transform-origin",
"-ms-transform-origin",
"-o-transform-origin",
"transform-origin",
"-webkit-animation",
"-moz-animation",
"-ms-animation",
"-o-animation",
"animation",
"-webkit-animation-name",
"-moz-animation-name",
"-ms-animation-name",
"-o-animation-name",
"animation-name",
"-webkit-animation-duration",
"-moz-animation-duration",
"-ms-animation-duration",
"-o-animation-duration",
"animation-duration",
"-webkit-animation-play-state",
"-moz-animation-play-state",
"-ms-animation-play-state",
"-o-animation-play-state",
"animation-play-state",
"-webkit-animation-timing-function",
"-moz-animation-timing-function",
"-ms-animation-timing-function",
"-o-animation-timing-function",
"animation-timing-function",
"-webkit-animation-delay",
"-moz-animation-delay",
"-ms-animation-delay",
"-o-animation-delay",
"animation-delay",
"-webkit-animation-iteration-count",
"-moz-animation-iteration-count",
"-ms-animation-iteration-count",
"-o-animation-iteration-count",
"animation-iteration-count",
"-webkit-animation-direction",
"-moz-animation-direction",
"-ms-animation-direction",
"-o-animation-direction",
"animation-direction",
"-webkit-text-orientation",
"-moz-text-orientation",
"-o-text-orientation",
"text-orientation",
"-ms-writing-mode",
"text-rendering",
"-webkit-font-smoothing",
"-moz-osx-font-smoothing",
"font-smoothing",
"direction",
"unicode-bidi"
]
}
</code></pre>
</div>
</div>
@@ -955,8 +95,8 @@ hsla(120, 100%, 50%, 1);</pre></div>
<div class="section" id="{{id}}" data-section="{{section}}" data-heading="{{heading}}">
<div class="comment">
<h1>{{section}}{{#if heading}}/{{heading}}{{/if}}</h1>
{{{comment}}}
<h1 class="CDB-Text CDB-Size-huge is-semibold">{{section}}{{#if heading}}/{{heading}}{{/if}}</h1>
<div class="CDB-Text u-tSpace-xl">{{{comment}}}</div>
</div>
{{#if code}}

View File

@@ -71,6 +71,11 @@
box-shadow: 2px 2px 5px 0px rgba(50, 50, 50, 0.43);
}
.styleguide-list {
list-style: disc;
list-style-position: inside;
}
#styleguide-menu .submenu {
display: none;
background: rgba(0, 0, 0, 0.05);