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

Commit 82dcbec

Browse files
committed
updating & reorganizing the core styleguide
1 parent d2a3fe6 commit 82dcbec

30 files changed

+2044
-343
lines changed

core/styleguide/assets/icons.dev.svg

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

core/styleguide/assets/icons.eot

-2.23 KB
Binary file not shown.

core/styleguide/assets/icons.svg

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

core/styleguide/assets/icons.ttf

-2.08 KB
Binary file not shown.

core/styleguide/assets/icons.woff

-1.99 KB
Binary file not shown.

core/styleguide/css/states.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.sg-pattern-state:before {
2+
margin-right: 4px;
3+
content: "\2022";
4+
display: inline-block;
5+
margin-bottom: -4px;
6+
font-size: 18px;
7+
vertical-align: bottom;
8+
}
9+
10+
.sg-nav .sg-pattern-state:before {
11+
margin-top: -4px;
12+
margin-bottom: 0;
13+
margin-left: -4px;
14+
height: 20px;
15+
display: block;
16+
float: left;
17+
}
18+
19+
.sg-sub-nav .sg-pattern-state:before {
20+
margin-left: -11px;
21+
margin-right: 4px;
22+
}
23+
24+
.inprogress:before {
25+
color: #FF4136 !important;
26+
}
27+
28+
.inreview:before {
29+
color: #FFCC00 !important;
30+
}
31+
32+
.complete:before {
33+
color: #2ECC40 !important;
34+
}

core/styleguide/css/styleguide.css

Lines changed: 112 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@
224224
min-width: 0; }
225225
.sg-controls .sg-nav-phases .sg-acc-panel.active {
226226
max-height: none; }
227-
@media all and (min-width: 69.5em) {
228-
.sg-controls {
229-
width: 41.5em; } }
230227

231228
.sg-control-trigger {
232229
border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
@@ -263,7 +260,7 @@
263260
.sg-current-size:hover .sg-input {
264261
background: #999999;
265262
color: #000; }
266-
@media all and (min-width: 69.5em) {
263+
@media all and (min-width: 72.5em) {
267264
.sg-current-size {
268265
float: left; } }
269266

@@ -273,7 +270,7 @@
273270
.sg-size {
274271
width: auto; } }
275272

276-
@media all and (min-width: 69.5em) {
273+
@media all and (min-width: 72.5em) {
277274
.sg-size-options {
278275
float: left;
279276
position: static;
@@ -312,7 +309,7 @@
312309
top: 2em;
313310
left: 0; }
314311

315-
.sg-checkbox:before {
312+
.sg-iconitem:before {
316313
display: inline-block;
317314
margin-right: 0.4em; }
318315

@@ -348,6 +345,7 @@
348345
bottom: 0;
349346
left: 0;
350347
right: 0;
348+
background-color: white;
351349
}
352350
#sg-viewport.hay-mode {
353351
-webkit-transition: all 40s linear;
@@ -503,14 +501,16 @@
503501
-o-transition: bottom 0.3s ease-out;
504502
transition: bottom 0.3s ease-out; }
505503

504+
.sg-view-close {
505+
width: 100%;
506+
margin-bottom: -10px; }
507+
506508
.sg-view-close-btn {
507509
color: #fff;
508-
position: absolute;
509-
top: 1em;
510-
right: 1em;
511510
text-transform: uppercase;
512511
text-decoration: none;
513-
text-align: right; }
512+
text-align: right;
513+
display: block; }
514514

515515
.has-annotation {
516516
cursor: help !important;
@@ -585,47 +585,118 @@
585585
color: gray;
586586
font-size: 1em; }
587587

588-
/* Pattern Lab icon fonts */
589-
@font-face {
590-
font-family: 'icons';
591-
src: url("../assets/icons.eot");
592-
src: url("../assets/icons.eot?#iefix") format("embedded-opentype"), url("../assets/icons.woff") format("woff"), url("../assets/icons.ttf") format("truetype"), url("../assets/icons.svg#icons") format("svg");
593-
font-weight: normal;
594-
font-style: normal; }
588+
#sg-code-markup {
589+
padding-top: 10px; }
595590

596-
.icon-reload, .icon-cog, .icon-minus, .icon-plus, .icon-menu, .icon-checkbox-unchecked, .sg-checkbox, .icon-checkbox-checked, .sg-checkbox.active, .icon-eye {
597-
font-family: 'icons';
598-
speak: none;
599-
font-style: normal;
600-
font-weight: normal;
601-
font-variant: normal;
602-
text-transform: none;
603-
line-height: 1;
604-
-webkit-font-smoothing: antialiased; }
591+
#sg-code-tabs {
592+
list-style: none;
593+
margin: 0;
594+
padding: 0; }
605595

606-
.icon-reload:before {
607-
content: "\e002"; }
596+
#sg-code-tabs li {
597+
float: left;
598+
background-color: #333;
599+
font-size: 1.3em;
600+
font-weight: bold;
601+
padding: 5px 15px;
602+
border-top: 2px solid #666;
603+
margin-right: 2px;
604+
cursor: pointer; }
608605

609-
.icon-cog:before {
610-
content: "\e000"; }
606+
.sg-code-title-active {
607+
color: #bbb;
608+
background-color: #272822 !important; }
611609

612-
.icon-minus:before {
613-
content: "\e003"; }
610+
div.clear {
611+
clear: both; }
614612

615-
.icon-plus:before {
616-
content: "\e004"; }
613+
.sg-code-patternname {
614+
color: #aaa; }
617615

618-
.icon-menu:before {
619-
content: "\e005"; }
616+
#sg-code-loader {
617+
display: none;
618+
position: absolute;
619+
left: 45%;
620+
top: 20%;
621+
width: 150px;
622+
padding: 10px;
623+
text-align: center;
624+
border-radius: 10px;
625+
background-color: #000;
626+
z-index: 100; }
627+
628+
.spinner {
629+
height: 30px;
630+
width: 30px;
631+
margin-left: auto; margin-right: auto;
632+
background-position: center center;
633+
background-repeat: no-repeat;
634+
background: url('../images/spinner.gif');
635+
border-radius: 50%;
636+
opacity: .7; }
620637

621-
.icon-checkbox-unchecked:before, .sg-checkbox:before {
622-
content: "\e006"; }
638+
/* Pattern Lab icon fonts */
639+
@font-face {
640+
font-family: 'icomoon';
641+
src:url('../fonts/icomoon.eot?srsv7g');
642+
src:url('../fonts/icomoon.eot?#iefixsrsv7g') format('embedded-opentype'),
643+
url('../fonts/icomoon.woff?srsv7g') format('woff'),
644+
url('../fonts/icomoon.ttf?srsv7g') format('truetype'),
645+
url('../fonts/icomoon.svg?srsv7g#icomoon') format('svg');
646+
font-weight: normal;
647+
font-style: normal;
648+
}
623649

624-
.icon-checkbox-checked:before, .sg-checkbox.active:before {
625-
content: "\e007"; }
650+
.icon-search, .icon-cog, .icon-minus, .icon-plus, .icon-menu, .icon-radio-checked, .icon-radio-unchecked, .icon-file, .icon-link, .icon-keyboard, .icon-qrcode, .icon-eye, .sg-iconitem {
651+
font-family: 'icomoon';
652+
speak: none;
653+
font-style: normal;
654+
font-weight: normal;
655+
font-variant: normal;
656+
text-transform: none;
657+
line-height: 1;
658+
659+
/* Better Font Rendering =========== */
660+
-webkit-font-smoothing: antialiased;
661+
-moz-osx-font-smoothing: grayscale;
662+
}
626663

664+
.icon-search:before {
665+
content: "\e600";
666+
}
667+
.icon-cog:before {
668+
content: "\e601";
669+
}
670+
.icon-minus:before {
671+
content: "\e602";
672+
}
673+
.icon-plus:before {
674+
content: "\e603";
675+
}
676+
.icon-menu:before {
677+
content: "\e604";
678+
}
679+
.icon-radio-checked:before, .sg-checkbox.active:before {
680+
content: "\e605";
681+
}
682+
.icon-radio-unchecked:before, .sg-checkbox:before {
683+
content: "\e606";
684+
}
685+
.icon-file:before {
686+
content: "\e607";
687+
}
688+
.icon-link:before {
689+
content: "\e608";
690+
}
691+
.icon-keyboard:before {
692+
content: "\e609";
693+
}
694+
.icon-qrcode:before {
695+
content: "\e60a";
696+
}
627697
.icon-eye:before {
628-
content: "\e001"; }
698+
content: "\e60b";
699+
}
629700

630701
/******************************************************************/
631702
/* End Pattern Lab Interface code */

0 commit comments

Comments
 (0)