Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 6cf6821

Browse files
committed
Remove states.css and rolled into styleguide.css
1 parent 8342f39 commit 6cf6821

File tree

4 files changed

+91
-58
lines changed

4 files changed

+91
-58
lines changed

core/styleguide/css/states.css

Lines changed: 0 additions & 47 deletions
This file was deleted.

core/styleguide/css/styleguide.css

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,46 @@
317317
display: inline-block;
318318
margin-right: 0.4em; }
319319

320+
/* basic styling */
321+
.sg-pattern-state:before {
322+
margin-right: 4px;
323+
content: "\2022";
324+
display: inline-block;
325+
margin-bottom: -4px;
326+
font-size: 18px;
327+
vertical-align: bottom; }
328+
329+
/* nav styling */
330+
.sg-nav .sg-pattern-state:before {
331+
margin-top: -4px;
332+
margin-bottom: 0;
333+
margin-left: -4px;
334+
height: 20px;
335+
display: block;
336+
float: left; }
337+
338+
.sg-sub-nav .sg-pattern-state:before {
339+
margin-left: -11px;
340+
margin-right: 4px; }
341+
342+
/* call out for pattern's pattern state */
343+
span.sg-pattern-state {
344+
color: #999; }
345+
346+
span.sg-pattern-state:before {
347+
margin-bottom: -3px;
348+
margin-left: 4px; }
349+
350+
/* pattern states */
351+
.inprogress:before {
352+
color: #FF4136 !important; }
353+
354+
.inreview:before {
355+
color: #FFCC00 !important; }
356+
357+
.complete:before {
358+
color: #2ECC40 !important; }
359+
320360
/*------------------------------------*\
321361
$PATTERN LAB VIEWPORT
322362
\*------------------------------------*/
@@ -438,10 +478,6 @@
438478
.sg-pattern-head a:hover {
439479
color: #222222; }
440480

441-
/* Clean View */
442-
.sg-clean .sg-main {
443-
padding: 0; }
444-
445481
.sg-colors {
446482
overflow: hidden; }
447483
.sg-colors li {

core/styleguide/css/styleguide.scss

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,56 @@ $animate-quick: 0.2s;
467467
}
468468
}
469469

470+
//Pattern States (active, inprogress, complete, etc)
471+
472+
/* basic styling */
473+
.sg-pattern-state:before {
474+
margin-right: 4px;
475+
content: "\2022";
476+
display: inline-block;
477+
margin-bottom: -4px;
478+
font-size: 18px;
479+
vertical-align: bottom;
480+
}
481+
482+
/* nav styling */
483+
.sg-nav .sg-pattern-state:before {
484+
margin-top: -4px;
485+
margin-bottom: 0;
486+
margin-left: -4px;
487+
height: 20px;
488+
display: block;
489+
float: left;
490+
}
491+
492+
.sg-sub-nav .sg-pattern-state:before {
493+
margin-left: -11px;
494+
margin-right: 4px;
495+
}
496+
497+
/* call out for pattern's pattern state */
498+
span.sg-pattern-state {
499+
color: #999;
500+
}
501+
502+
span.sg-pattern-state:before {
503+
margin-bottom: -3px;
504+
margin-left: 4px;
505+
}
506+
507+
/* pattern states */
508+
.inprogress:before {
509+
color: #FF4136 !important;
510+
}
511+
512+
.inreview:before {
513+
color: #FFCC00 !important;
514+
}
515+
516+
.complete:before {
517+
color: #2ECC40 !important;
518+
}
519+
470520

471521

472522
/*------------------------------------*\
@@ -627,11 +677,6 @@ $animate-quick: 0.2s;
627677
}
628678
}
629679

630-
/* Clean View */
631-
.sg-clean .sg-main {
632-
padding: 0;
633-
}
634-
635680
// Style Guide color swatches
636681
.sg-colors {
637682
overflow: hidden;
@@ -724,7 +769,7 @@ $animate-quick: 0.2s;
724769
display: block;
725770
}
726771

727-
//Visually emphasize annotated elements
772+
//Annotated elements Styles
728773
.has-annotation {
729774
cursor: help !important;
730775
box-shadow: 0 0 10px $sg-secondary;

core/templates/index.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1515
<link rel="stylesheet" href="styleguide/css/styleguide.css?{{ cacheBuster }}" media="all" />
1616
<link rel="stylesheet" href="styleguide/css/vendor/typeahead.css?{{ cacheBuster }}" media="all" />
17-
<link rel="stylesheet" href="styleguide/css/states.css?{{ cacheBuster }}" media="all" />
1817
<link rel="stylesheet" href="styleguide/css/vendor/prism.css?{{ cacheBuster }}" media="all" />
1918

2019
<script src="styleguide/js/vendor/jquery.js"></script>

0 commit comments

Comments
 (0)