Skip to content

Commit 9d458e3

Browse files
committed
Pattern Category Styles
Pattern categories appear on the view all page and delineate a new category. It contains a pattern category title and optional description.
1 parent 518efb0 commit 9d458e3

File tree

3 files changed

+88
-7
lines changed

3 files changed

+88
-7
lines changed

dist/styleguide/css/styleguide.css

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@charset "UTF-8";
22
/*------------------------------------*\
3-
$PATTERN LAB STYLES
3+
#PATTERN LAB STYLES
44
\*------------------------------------*/
55
/**
66
* NOTES:
@@ -43,7 +43,7 @@
4343
* -----Code View
4444
*/
4545
/*------------------------------------*\
46-
#PATTERN LAB VARIABLES
46+
#VARIABLES
4747
\*------------------------------------*/
4848
/**
4949
* These variables are specific to the Pattern Lab shell and exist
@@ -903,7 +903,7 @@
903903
.sg-pattern-desc {
904904
margin-bottom: 1em;
905905
padding-bottom: 1em;
906-
border-bottom: 1px solid #808080;
906+
border-bottom: 1px solid #ccc;
907907
}
908908
.sg-pattern-desc p:last-child {
909909
margin: 0;
@@ -965,6 +965,45 @@
965965
}
966966
}
967967

968+
/**
969+
* Pattern Category
970+
* 1) This appears in the index page and delineates a major section,
971+
* such as "global", "blocks", "etc".
972+
* 2) The category contains a title and optional description
973+
*/
974+
.sg-pattern-category {
975+
margin-top: 6rem;
976+
font: "HelveticaNeue", "Helvetica", "Arial", sans-serif !important;
977+
}
978+
.sg-pattern-category:first-of-type {
979+
margin-top: 2rem;
980+
}
981+
982+
/**
983+
* Pattern Category Title
984+
*/
985+
.sg-pattern-category-title {
986+
font-size: 1.4rem !important;
987+
color: #222 !important;
988+
margin: 0 0 0.2rem;
989+
}
990+
.sg-pattern-category-title a {
991+
-webkit-transition: color 0.1s ease-out;
992+
transition: color 0.1s ease-out;
993+
}
994+
995+
/**
996+
* Pattern Category Description
997+
* 1) This is an optional description that sits below the category title.
998+
*/
999+
.sg-pattern-category-body {
1000+
font-size: 80%;
1001+
line-height: 1.3;
1002+
}
1003+
.sg-pattern-category-body:empty {
1004+
display: none;
1005+
}
1006+
9681007
/*------------------------------------*\
9691008
#TABS
9701009
\*------------------------------------*/
@@ -980,6 +1019,7 @@
9801019
-webkit-box-direction: normal;
9811020
-ms-flex-direction: column;
9821021
flex-direction: column;
1022+
font: "HelveticaNeue", "Helvetica", "Arial", sans-serif !important;
9831023
}
9841024

9851025
.sg-tabs-list {

0 commit comments

Comments
 (0)