github-docs 0.0.2 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_layouts/default.html +17 -3
- data/assets/css/cherry/_base-normalize.scss +274 -0
- data/assets/css/cherry/_buttons.scss +305 -0
- data/assets/css/cherry/_columns.scss +220 -0
- data/assets/css/cherry/_elements.scss +339 -0
- data/assets/css/cherry/_forms-vue-select.scss +250 -0
- data/assets/css/cherry/_forms.scss +567 -0
- data/assets/css/cherry/_functions.scss +201 -0
- data/assets/css/cherry/_index.scss +14 -0
- data/assets/css/cherry/_layout.scss +207 -0
- data/assets/css/cherry/_modal.scss +82 -0
- data/assets/css/cherry/_spacing.scss +56 -0
- data/assets/css/cherry/_tooltips.scss +113 -0
- data/assets/css/cherry/_typography.scss +90 -0
- data/assets/css/cherry/_utilities.scss +552 -0
- data/assets/css/cherry/_variables-computed.scss +79 -0
- data/assets/css/cherry/_variables.scss +48 -0
- data/assets/css/index.scss +9 -7
- data/{_sass/github-docs.scss → assets/css/main.scss} +41 -12
- data/assets/css/primer-markdown/blob-csv.scss +25 -0
- data/assets/css/primer-markdown/code.scss +49 -0
- data/{_sass → assets/css}/primer-markdown/headings.scss +5 -19
- data/{_sass → assets/css}/primer-markdown/images.scss +1 -19
- data/{_sass/primer-markdown/markdown-body.scss → assets/css/primer-markdown/index.scss} +66 -55
- data/assets/css/primer-markdown/lists.scss +42 -0
- data/{_sass → assets/css}/primer-markdown/tables.scss +4 -9
- data/{_sass → assets/css}/rouge.scss +16 -8
- data/readme.md +24 -25
- metadata +54 -62
- data/_sass/primer-base/base.scss +0 -84
- data/_sass/primer-base/index.scss +0 -3
- data/_sass/primer-base/normalize.scss +0 -421
- data/_sass/primer-base/typography-base.scss +0 -86
- data/_sass/primer-layout/columns.scss +0 -54
- data/_sass/primer-layout/container.scss +0 -30
- data/_sass/primer-layout/grid-offset.scss +0 -19
- data/_sass/primer-layout/grid.scss +0 -64
- data/_sass/primer-layout/index.scss +0 -4
- data/_sass/primer-markdown/blob-csv.scss +0 -27
- data/_sass/primer-markdown/code.scss +0 -63
- data/_sass/primer-markdown/index.scss +0 -7
- data/_sass/primer-markdown/lists.scss +0 -76
- data/_sass/primer-support/index.scss +0 -11
- data/_sass/primer-support/mixins/buttons.scss +0 -160
- data/_sass/primer-support/mixins/layout.scss +0 -58
- data/_sass/primer-support/mixins/misc.scss +0 -29
- data/_sass/primer-support/mixins/typography.scss +0 -84
- data/_sass/primer-support/variables/color-system.scss +0 -114
- data/_sass/primer-support/variables/colors.scss +0 -67
- data/_sass/primer-support/variables/layout.scss +0 -78
- data/_sass/primer-support/variables/misc.scss +0 -40
- data/_sass/primer-support/variables/typography.scss +0 -43
- data/_sass/primer-utilities/animations.scss +0 -184
- data/_sass/primer-utilities/borders.scss +0 -100
- data/_sass/primer-utilities/box-shadow.scss +0 -26
- data/_sass/primer-utilities/colors.scss +0 -106
- data/_sass/primer-utilities/details.scss +0 -18
- data/_sass/primer-utilities/flexbox.scss +0 -52
- data/_sass/primer-utilities/index.scss +0 -13
- data/_sass/primer-utilities/layout.scss +0 -85
- data/_sass/primer-utilities/margin.scss +0 -53
- data/_sass/primer-utilities/padding.scss +0 -54
- data/_sass/primer-utilities/typography.scss +0 -215
- data/_sass/primer-utilities/visibility-display.scss +0 -87
@@ -1,26 +0,0 @@
|
|
1
|
-
// Box shadow utilities
|
2
|
-
// stylelint-disable primer/selector-no-utility
|
3
|
-
|
4
|
-
// Box shadows
|
5
|
-
|
6
|
-
.box-shadow {
|
7
|
-
box-shadow: $box-shadow !important;
|
8
|
-
}
|
9
|
-
|
10
|
-
.box-shadow-medium {
|
11
|
-
box-shadow: $box-shadow-medium !important;
|
12
|
-
}
|
13
|
-
|
14
|
-
.box-shadow-large {
|
15
|
-
box-shadow: $box-shadow-large !important;
|
16
|
-
}
|
17
|
-
|
18
|
-
.box-shadow-extra-large {
|
19
|
-
box-shadow: $box-shadow-extra-large !important;
|
20
|
-
}
|
21
|
-
|
22
|
-
// Turn off box shadow
|
23
|
-
|
24
|
-
.box-shadow-none {
|
25
|
-
box-shadow: none !important;
|
26
|
-
}
|
@@ -1,106 +0,0 @@
|
|
1
|
-
// Color utilities
|
2
|
-
// stylelint-disable block-opening-brace-space-before, primer/selector-no-utility
|
3
|
-
// stylelint-disable comment-empty-line-before
|
4
|
-
|
5
|
-
// background colors
|
6
|
-
/* Set the background to $bg-white */
|
7
|
-
.bg-white { background-color: $bg-white !important; }
|
8
|
-
/* Set the background to $bg-blue */
|
9
|
-
.bg-blue { background-color: $bg-blue !important; }
|
10
|
-
/* Set the background to $bg-blue-light */
|
11
|
-
.bg-blue-light { background-color: $bg-blue-light !important; }
|
12
|
-
/* Set the background to $bg-gray-dark */
|
13
|
-
.bg-gray-dark { background-color: $bg-gray-dark !important; }
|
14
|
-
/* Set the background to $bg-gray */
|
15
|
-
.bg-gray { background-color: $bg-gray !important; }
|
16
|
-
/* Set the background to $bg-gray-light */
|
17
|
-
.bg-gray-light { background-color: $bg-gray-light !important; }
|
18
|
-
/* Set the background to $bg-green */
|
19
|
-
.bg-green { background-color: $bg-green !important; }
|
20
|
-
/* Set the background to $bg-green-light */
|
21
|
-
.bg-green-light { background-color: $bg-green-light !important; }
|
22
|
-
/* Set the background to $bg-red */
|
23
|
-
.bg-red { background-color: $bg-red !important; }
|
24
|
-
/* Set the background to $bg-red-light */
|
25
|
-
.bg-red-light { background-color: $bg-red-light !important; }
|
26
|
-
/* Set the background to $bg-yellow */
|
27
|
-
.bg-yellow { background-color: $bg-yellow !important; }
|
28
|
-
/* Set the background to $bg-yellow-light */
|
29
|
-
.bg-yellow-light { background-color: $bg-yellow-light !important; }
|
30
|
-
/* Set the background to $bg-purple */
|
31
|
-
.bg-purple { background-color: $bg-purple !important; }
|
32
|
-
/* Set the background to $bg-purple-light */
|
33
|
-
.bg-purple-light { background-color: $bg-purple-light !important; }
|
34
|
-
|
35
|
-
.bg-shade-gradient {
|
36
|
-
background-image: linear-gradient(180deg, rgba($black, 0.065), rgba($black, 0)) !important;
|
37
|
-
background-repeat: no-repeat !important;
|
38
|
-
background-size: 100% 200px !important;
|
39
|
-
}
|
40
|
-
|
41
|
-
// text colors
|
42
|
-
/* Set the text color to $text-blue */
|
43
|
-
.text-blue { color: $text-blue !important; }
|
44
|
-
/* Set the text color to $text-red */
|
45
|
-
.text-red { color: $text-red !important; }
|
46
|
-
/* Set the text color to $text-gray-light */
|
47
|
-
.text-gray-light { color: $text-gray-light !important; }
|
48
|
-
/* Set the text color to $text-gray */
|
49
|
-
.text-gray { color: $text-gray !important; }
|
50
|
-
/* Set the text color to $text-gray-dark */
|
51
|
-
.text-gray-dark { color: $text-gray-dark !important; }
|
52
|
-
/* Set the text color to $text-green */
|
53
|
-
.text-green { color: $text-green !important; }
|
54
|
-
/* Set the text color to $text-orange */
|
55
|
-
.text-orange { color: $text-orange !important; }
|
56
|
-
/* Set the text color to $text-orange-light */
|
57
|
-
.text-orange-light { color: $text-orange-light !important; }
|
58
|
-
/* Set the text color to $text-purple */
|
59
|
-
.text-purple { color: $text-purple !important; }
|
60
|
-
/* Set the text color to $text-white */
|
61
|
-
.text-white { color: $text-white !important; }
|
62
|
-
/* Set the text color to inherit */
|
63
|
-
.text-inherit { color: inherit !important; }
|
64
|
-
|
65
|
-
// Text states
|
66
|
-
// These can probably all be regular utilities
|
67
|
-
.text-pending { color: $yellow-800 !important; }
|
68
|
-
// Separate text and background colors in future to improve a11y
|
69
|
-
.bg-pending { color: $yellow-700 !important; }
|
70
|
-
|
71
|
-
// Link colors
|
72
|
-
// Sets the links color to $text-gray and $text-blue on hover
|
73
|
-
.link-gray {
|
74
|
-
color: $text-gray !important;
|
75
|
-
|
76
|
-
&:hover {
|
77
|
-
color: $text-blue !important;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
// Sets the links color to $text-gray-dark and $text-blue on hover
|
82
|
-
.link-gray-dark {
|
83
|
-
color: $text-gray-dark !important;
|
84
|
-
|
85
|
-
&:hover {
|
86
|
-
color: $text-blue !important;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
|
90
|
-
/* Set the link color to $text-blue on hover
|
91
|
-
Useful when you want only part of a link to turn blue on hover */
|
92
|
-
.link-hover-blue {
|
93
|
-
&:hover {
|
94
|
-
color: $text-blue !important;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
/* Make a link $text-gray, then $text-blue on hover and removes the underline */
|
99
|
-
.muted-link {
|
100
|
-
color: $text-gray !important;
|
101
|
-
|
102
|
-
&:hover {
|
103
|
-
color: $text-blue !important;
|
104
|
-
text-decoration: none;
|
105
|
-
}
|
106
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// stylelint-disable selector-max-type
|
2
|
-
.details-overlay[open] > summary::before {
|
3
|
-
position: fixed;
|
4
|
-
top: 0;
|
5
|
-
right: 0;
|
6
|
-
bottom: 0;
|
7
|
-
left: 0;
|
8
|
-
z-index: 80;
|
9
|
-
display: block;
|
10
|
-
cursor: default;
|
11
|
-
content: " ";
|
12
|
-
background: transparent;
|
13
|
-
}
|
14
|
-
|
15
|
-
.details-overlay-dark[open] > summary::before {
|
16
|
-
z-index: 99;
|
17
|
-
background: $black-fade-50;
|
18
|
-
}
|
@@ -1,52 +0,0 @@
|
|
1
|
-
// Flex utility classes
|
2
|
-
// stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before
|
3
|
-
// stylelint-disable comment-empty-line-before
|
4
|
-
|
5
|
-
@each $breakpoint, $variant in $responsive-variants {
|
6
|
-
@include breakpoint($breakpoint) {
|
7
|
-
// Flexbox classes
|
8
|
-
// Container
|
9
|
-
.flex#{$variant}-row { flex-direction: row !important; }
|
10
|
-
.flex#{$variant}-row-reverse { flex-direction: row-reverse !important; }
|
11
|
-
.flex#{$variant}-column { flex-direction: column !important; }
|
12
|
-
|
13
|
-
.flex#{$variant}-wrap { flex-wrap: wrap !important; }
|
14
|
-
.flex#{$variant}-nowrap { flex-wrap: nowrap !important; }
|
15
|
-
|
16
|
-
.flex#{$variant}-justify-start { justify-content: flex-start !important; }
|
17
|
-
.flex#{$variant}-justify-end { justify-content: flex-end !important; }
|
18
|
-
.flex#{$variant}-justify-center { justify-content: center !important; }
|
19
|
-
.flex#{$variant}-justify-between { justify-content: space-between !important; }
|
20
|
-
.flex#{$variant}-justify-around { justify-content: space-around !important; }
|
21
|
-
|
22
|
-
.flex#{$variant}-items-start { align-items: flex-start !important; }
|
23
|
-
.flex#{$variant}-items-end { align-items: flex-end !important; }
|
24
|
-
.flex#{$variant}-items-center { align-items: center !important; }
|
25
|
-
.flex#{$variant}-items-baseline { align-items: baseline !important; }
|
26
|
-
.flex#{$variant}-items-stretch { align-items: stretch !important; }
|
27
|
-
|
28
|
-
.flex#{$variant}-content-start { align-content: flex-start !important; }
|
29
|
-
.flex#{$variant}-content-end { align-content: flex-end !important; }
|
30
|
-
.flex#{$variant}-content-center { align-content: center !important; }
|
31
|
-
.flex#{$variant}-content-between { align-content: space-between !important; }
|
32
|
-
.flex#{$variant}-content-around { align-content: space-around !important; }
|
33
|
-
.flex#{$variant}-content-stretch { align-content: stretch !important; }
|
34
|
-
|
35
|
-
// Item
|
36
|
-
.flex#{$variant}-auto { flex: 1 1 auto !important; }
|
37
|
-
.flex#{$variant}-shrink-0 { flex-shrink: 0 !important; }
|
38
|
-
|
39
|
-
.flex#{$variant}-self-auto { align-self: auto !important; }
|
40
|
-
.flex#{$variant}-self-start { align-self: flex-start !important; }
|
41
|
-
.flex#{$variant}-self-end { align-self: flex-end !important; }
|
42
|
-
.flex#{$variant}-self-center { align-self: center !important; }
|
43
|
-
.flex#{$variant}-self-baseline { align-self: baseline !important; }
|
44
|
-
.flex#{$variant}-self-stretch { align-self: stretch !important; }
|
45
|
-
|
46
|
-
// Shorthand for equal width and height cols
|
47
|
-
.flex#{$variant}-item-equal {
|
48
|
-
flex-grow: 1;
|
49
|
-
flex-basis: 0;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// utilities
|
2
|
-
@import "./animations.scss";
|
3
|
-
@import "./borders.scss";
|
4
|
-
@import "./box-shadow.scss";
|
5
|
-
@import "./colors.scss";
|
6
|
-
@import "./details.scss";
|
7
|
-
@import "./flexbox.scss";
|
8
|
-
@import "./layout.scss";
|
9
|
-
@import "./margin.scss";
|
10
|
-
@import "./padding.scss";
|
11
|
-
@import "./typography.scss";
|
12
|
-
// Visibility and display should always come last in the imports so that they override other utilities with !important
|
13
|
-
@import "./visibility-display.scss";
|
@@ -1,85 +0,0 @@
|
|
1
|
-
// Layout
|
2
|
-
// stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, primer/selector-no-utility
|
3
|
-
// stylelint-disable comment-empty-line-before
|
4
|
-
|
5
|
-
/* Set position to static */
|
6
|
-
.position-static { position: static !important; }
|
7
|
-
/* Set position to relative */
|
8
|
-
.position-relative { position: relative !important; }
|
9
|
-
/* Set position to absolute */
|
10
|
-
.position-absolute { position: absolute !important; }
|
11
|
-
/* Set position to fixed */
|
12
|
-
.position-fixed { position: fixed !important; }
|
13
|
-
|
14
|
-
/* Set top 0 */
|
15
|
-
.top-0 { top: 0 !important; }
|
16
|
-
/* Set right 0 */
|
17
|
-
.right-0 { right: 0 !important; }
|
18
|
-
/* Set bottom 0 */
|
19
|
-
.bottom-0 { bottom: 0 !important; }
|
20
|
-
/* Set left 0 */
|
21
|
-
.left-0 { left: 0 !important; }
|
22
|
-
|
23
|
-
/* Vertical align middle */
|
24
|
-
.v-align-middle { vertical-align: middle !important; }
|
25
|
-
/* Vertical align top */
|
26
|
-
.v-align-top { vertical-align: top !important; }
|
27
|
-
/* Vertical align bottom */
|
28
|
-
.v-align-bottom { vertical-align: bottom !important; }
|
29
|
-
/* Vertical align to the top of the text */
|
30
|
-
.v-align-text-top { vertical-align: text-top !important; }
|
31
|
-
/* Vertical align to the bottom of the text */
|
32
|
-
.v-align-text-bottom { vertical-align: text-bottom !important; }
|
33
|
-
/* Vertical align to the parent's baseline */
|
34
|
-
.v-align-baseline { vertical-align: baseline !important; }
|
35
|
-
|
36
|
-
// Overflow utilities
|
37
|
-
// overflow-hidden can also be used to create a new
|
38
|
-
// block formatting context or clear floats.
|
39
|
-
/* Set the overflow hidden */
|
40
|
-
.overflow-hidden { overflow: hidden !important; }
|
41
|
-
/* Set the overflow scroll */
|
42
|
-
.overflow-scroll { overflow: scroll !important; }
|
43
|
-
/* Set the overflow auto */
|
44
|
-
.overflow-auto { overflow: auto !important; }
|
45
|
-
|
46
|
-
// Clear floats
|
47
|
-
/* Clear floats around the element */
|
48
|
-
.clearfix {
|
49
|
-
@include clearfix;
|
50
|
-
}
|
51
|
-
|
52
|
-
// Floats
|
53
|
-
@each $breakpoint, $variant in $responsive-variants {
|
54
|
-
@include breakpoint($breakpoint) {
|
55
|
-
/* Float to the left */
|
56
|
-
.float#{$variant}-left { float: left !important; }
|
57
|
-
/* Float to the right */
|
58
|
-
.float#{$variant}-right { float: right !important; }
|
59
|
-
/* No float */
|
60
|
-
.float#{$variant}-none { float: none !important; }
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
// Width and height utilities, helpful in combination
|
65
|
-
// with display-table utilities and images
|
66
|
-
/* Max width 100% */
|
67
|
-
.width-fit { max-width: 100% !important; }
|
68
|
-
/* Set the width to 100% */
|
69
|
-
.width-full { width: 100% !important; }
|
70
|
-
/* Max height 100% */
|
71
|
-
.height-fit { max-height: 100% !important; }
|
72
|
-
/* Set the height to 100% */
|
73
|
-
.height-full { height: 100% !important; }
|
74
|
-
|
75
|
-
/* Remove min-width from element */
|
76
|
-
.min-width-0 { min-width: 0 !important; }
|
77
|
-
|
78
|
-
@each $breakpoint, $variant in $responsive-variants {
|
79
|
-
@include breakpoint($breakpoint) {
|
80
|
-
/* Set the direction to rtl */
|
81
|
-
.direction#{$variant}-rtl { direction: rtl !important; }
|
82
|
-
/* Set the direction to ltr */
|
83
|
-
.direction#{$variant}-ltr { direction: ltr !important; }
|
84
|
-
}
|
85
|
-
}
|
@@ -1,53 +0,0 @@
|
|
1
|
-
// Margin spacer utilities
|
2
|
-
// stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, primer/selector-no-utility, comment-empty-line-before
|
3
|
-
|
4
|
-
// Loop through the breakpoint values
|
5
|
-
@each $breakpoint, $variant in $responsive-variants {
|
6
|
-
@include breakpoint($breakpoint) {
|
7
|
-
// Loop through the spacer values
|
8
|
-
@for $i from 1 through length($spacers) {
|
9
|
-
$size: nth($spacers, $i); // sm, md, lg, xl
|
10
|
-
$scale: $i - 1; // 0, 1, 2, 3, 4, 5, 6
|
11
|
-
|
12
|
-
/* Set a $size margin to all sides at $breakpoint */
|
13
|
-
.m#{$variant}-#{$scale} { margin: $size !important; }
|
14
|
-
/* Set a $size margin on the top at $breakpoint */
|
15
|
-
.mt#{$variant}-#{$scale} { margin-top: $size !important; }
|
16
|
-
/* Set a $size margin on the right at $breakpoint */
|
17
|
-
.mr#{$variant}-#{$scale} { margin-right: $size !important; }
|
18
|
-
/* Set a $size margin on the bottom at $breakpoint */
|
19
|
-
.mb#{$variant}-#{$scale} { margin-bottom: $size !important; }
|
20
|
-
/* Set a $size margin on the left at $breakpoint */
|
21
|
-
.ml#{$variant}-#{$scale} { margin-left: $size !important; }
|
22
|
-
|
23
|
-
@if ($size != 0) {
|
24
|
-
/* Set a negative $size margin on top at $breakpoint */
|
25
|
-
.mt#{$variant}-n#{$scale} { margin-top : -$size !important; }
|
26
|
-
/* Set a negative $size margin on the right at $breakpoint */
|
27
|
-
.mr#{$variant}-n#{$scale} { margin-right : -$size !important; }
|
28
|
-
/* Set a negative $size margin on the bottom at $breakpoint */
|
29
|
-
.mb#{$variant}-n#{$scale} { margin-bottom: -$size !important; }
|
30
|
-
/* Set a negative $size margin on the left at $breakpoint */
|
31
|
-
.ml#{$variant}-n#{$scale} { margin-left : -$size !important; }
|
32
|
-
}
|
33
|
-
|
34
|
-
/* Set a $size margin on the left & right at $breakpoint */
|
35
|
-
.mx#{$variant}-#{$scale} {
|
36
|
-
margin-right: $size !important;
|
37
|
-
margin-left: $size !important;
|
38
|
-
}
|
39
|
-
|
40
|
-
/* Set a $size margin on the top & bottom at $breakpoint */
|
41
|
-
.my#{$variant}-#{$scale} {
|
42
|
-
margin-top: $size !important;
|
43
|
-
margin-bottom: $size !important;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
/* responsive horizontal auto margins */
|
48
|
-
.mx#{$variant}-auto {
|
49
|
-
margin-right: auto !important;
|
50
|
-
margin-left: auto !important;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
// Padding spacer utilities
|
2
|
-
// stylelint-disable block-opening-brace-space-before, declaration-colon-space-before
|
3
|
-
// stylelint-disable comment-empty-line-before
|
4
|
-
|
5
|
-
// Responsive padding spacer utilities
|
6
|
-
@each $breakpoint, $variant in $responsive-variants {
|
7
|
-
@include breakpoint($breakpoint) {
|
8
|
-
// Loop through the spacer values
|
9
|
-
@for $i from 1 through length($spacers) {
|
10
|
-
$size: nth($spacers, $i); // xs, sm, md, lg, xl
|
11
|
-
$scale: $i - 1; // 0, 1, 2, 3, 4, 5, 6
|
12
|
-
|
13
|
-
/* Set a $size padding to all sides at $breakpoint */
|
14
|
-
.p#{$variant}-#{$scale} { padding: $size !important; }
|
15
|
-
/* Set a $size padding to the top at $breakpoint */
|
16
|
-
.pt#{$variant}-#{$scale} { padding-top: $size !important; }
|
17
|
-
/* Set a $size padding to the right at $breakpoint */
|
18
|
-
.pr#{$variant}-#{$scale} { padding-right: $size !important; }
|
19
|
-
/* Set a $size padding to the bottom at $breakpoint */
|
20
|
-
.pb#{$variant}-#{$scale} { padding-bottom: $size !important; }
|
21
|
-
/* Set a $size padding to the left at $breakpoint */
|
22
|
-
.pl#{$variant}-#{$scale} { padding-left: $size !important; }
|
23
|
-
|
24
|
-
/* Set a $size padding to the left & right at $breakpoint */
|
25
|
-
.px#{$variant}-#{$scale} {
|
26
|
-
padding-right: $size !important;
|
27
|
-
padding-left: $size !important;
|
28
|
-
}
|
29
|
-
|
30
|
-
/* Set a $size padding to the top & bottom at $breakpoint */
|
31
|
-
.py#{$variant}-#{$scale} {
|
32
|
-
padding-top: $size !important;
|
33
|
-
padding-bottom: $size !important;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
// responsive padding for containers
|
40
|
-
// stylelint-disable-next-line primer/selector-no-utility
|
41
|
-
.p-responsive {
|
42
|
-
padding-right: $spacer-3 !important;
|
43
|
-
padding-left: $spacer-3 !important;
|
44
|
-
|
45
|
-
@include breakpoint(sm) {
|
46
|
-
padding-right: $spacer-6 !important;
|
47
|
-
padding-left: $spacer-6 !important;
|
48
|
-
}
|
49
|
-
|
50
|
-
@include breakpoint(lg) {
|
51
|
-
padding-right: $spacer-3 !important;
|
52
|
-
padding-left: $spacer-3 !important;
|
53
|
-
}
|
54
|
-
}
|
@@ -1,215 +0,0 @@
|
|
1
|
-
// stylelint-disable block-closing-brace-space-before, primer/selector-no-utility, selector-list-comma-newline-after
|
2
|
-
// stylelint-disable comment-empty-line-before
|
3
|
-
// Type scale variables found in primer-support/lib/variables.scss
|
4
|
-
// $h00-size-mobile: 40px;
|
5
|
-
// $h0-size-mobile: 32px;
|
6
|
-
// $h1-size-mobile: 26px;
|
7
|
-
// $h2-size-mobile: 22px;
|
8
|
-
// $h3-size-mobile: 18px;
|
9
|
-
// $h00-size: 48px;
|
10
|
-
// $h0-size: 40px;
|
11
|
-
// $h1-size: 32px;
|
12
|
-
// $h2-size: 24px;
|
13
|
-
// $h3-size: 20px;
|
14
|
-
// $h4-size: 16px;
|
15
|
-
// $h5-size: 14px;
|
16
|
-
// $h6-size: 12px;
|
17
|
-
|
18
|
-
/* Set the font size to 26px */
|
19
|
-
.h1 {
|
20
|
-
font-size: $h1-size-mobile !important;
|
21
|
-
|
22
|
-
@include breakpoint(md) { font-size: $h1-size !important; }
|
23
|
-
}
|
24
|
-
|
25
|
-
/* Set the font size to 22px */
|
26
|
-
.h2 {
|
27
|
-
font-size: $h2-size-mobile !important;
|
28
|
-
|
29
|
-
@include breakpoint(md) { font-size: $h2-size !important; }
|
30
|
-
}
|
31
|
-
|
32
|
-
/* Set the font size to 18px */
|
33
|
-
.h3 {
|
34
|
-
font-size: $h3-size-mobile !important;
|
35
|
-
|
36
|
-
@include breakpoint(md) { font-size: $h3-size !important; }
|
37
|
-
}
|
38
|
-
|
39
|
-
/* Set the font size to #{$h4-size} */
|
40
|
-
.h4 {
|
41
|
-
font-size: $h4-size !important;
|
42
|
-
}
|
43
|
-
|
44
|
-
/* Set the font size to #{$h5-size} */
|
45
|
-
.h5 { font-size: $h5-size !important; }
|
46
|
-
|
47
|
-
// Does not include color property like typography base
|
48
|
-
// styles, color should be applied with color utilities.
|
49
|
-
/* Set the font size to #{$h6-size} */
|
50
|
-
.h6 { font-size: $h6-size !important; }
|
51
|
-
|
52
|
-
// Heading utilities
|
53
|
-
.h1, .h2, .h3, .h4, .h5, .h6 { font-weight: $font-weight-bold !important; }
|
54
|
-
|
55
|
-
// Type utilities that match type sale
|
56
|
-
/* Set the font size to 26px */
|
57
|
-
.f1 {
|
58
|
-
font-size: $h1-size-mobile !important;
|
59
|
-
|
60
|
-
@include breakpoint(md) { font-size: $h1-size !important; }
|
61
|
-
}
|
62
|
-
|
63
|
-
/* Set the font size to 22px */
|
64
|
-
.f2 {
|
65
|
-
font-size: $h2-size-mobile !important;
|
66
|
-
|
67
|
-
@include breakpoint(md) { font-size: $h2-size !important; }
|
68
|
-
}
|
69
|
-
|
70
|
-
/* Set the font size to 18px */
|
71
|
-
.f3 {
|
72
|
-
font-size: $h3-size-mobile !important;
|
73
|
-
|
74
|
-
@include breakpoint(md) { font-size: $h3-size !important; }
|
75
|
-
}
|
76
|
-
|
77
|
-
/* Set the font size to #{$h4-size} */
|
78
|
-
.f4 {
|
79
|
-
font-size: $h4-size !important;
|
80
|
-
|
81
|
-
@include breakpoint(md) { font-size: $h4-size !important; }
|
82
|
-
}
|
83
|
-
|
84
|
-
/* Set the font size to #{$h5-size} */
|
85
|
-
.f5 { font-size: $h5-size !important; }
|
86
|
-
/* Set the font size to #{$h6-size} */
|
87
|
-
.f6 { font-size: $h6-size !important; }
|
88
|
-
|
89
|
-
// Type utils with light weight that match type scale
|
90
|
-
/* Set the font size to 40px and weight to light */
|
91
|
-
.f00-light {
|
92
|
-
font-size: $h00-size-mobile !important;
|
93
|
-
font-weight: $font-weight-light !important;
|
94
|
-
|
95
|
-
@include breakpoint(md) { font-size: $h00-size !important; }
|
96
|
-
}
|
97
|
-
|
98
|
-
/* Set the font size to 32px and weight to light */
|
99
|
-
.f0-light {
|
100
|
-
font-size: $h0-size-mobile !important;
|
101
|
-
font-weight: $font-weight-light !important;
|
102
|
-
|
103
|
-
@include breakpoint(md) { font-size: $h0-size !important; }
|
104
|
-
}
|
105
|
-
|
106
|
-
/* Set the font size to 26px and weight to light */
|
107
|
-
.f1-light {
|
108
|
-
font-size: $h1-size-mobile !important;
|
109
|
-
font-weight: $font-weight-light !important;
|
110
|
-
|
111
|
-
@include breakpoint(md) { font-size: $h1-size !important; }
|
112
|
-
}
|
113
|
-
|
114
|
-
/* Set the font size to 22px and weight to light */
|
115
|
-
.f2-light {
|
116
|
-
font-size: $h2-size-mobile !important;
|
117
|
-
font-weight: $font-weight-light !important;
|
118
|
-
|
119
|
-
@include breakpoint(md) { font-size: $h2-size !important; }
|
120
|
-
}
|
121
|
-
|
122
|
-
// Same size and weight as .lead but without color property
|
123
|
-
/* Set the font size to 18px and weight to light */
|
124
|
-
.f3-light {
|
125
|
-
font-size: $h3-size-mobile !important;
|
126
|
-
font-weight: $font-weight-light !important;
|
127
|
-
|
128
|
-
@include breakpoint(md) { font-size: $h3-size !important; }
|
129
|
-
}
|
130
|
-
|
131
|
-
// Smallest text size
|
132
|
-
/* Set the font size to ${#h6-size} */
|
133
|
-
.text-small { font-size: $h6-size !important; } // 12px
|
134
|
-
|
135
|
-
/* Large leading paragraphs */
|
136
|
-
.lead {
|
137
|
-
margin-bottom: 30px;
|
138
|
-
font-size: $h3-size;
|
139
|
-
font-weight: $font-weight-light;
|
140
|
-
color: $gray-600;
|
141
|
-
}
|
142
|
-
|
143
|
-
// Line-height variations
|
144
|
-
// Close to commonly used line-heights. Most line-heights
|
145
|
-
// combined with type size equate to whole pixels.
|
146
|
-
// Will be improved with future typography scale updates.
|
147
|
-
/* Set the line height to ultra condensed */
|
148
|
-
.lh-condensed-ultra { line-height: $lh-condensed-ultra !important; }
|
149
|
-
/* Set the line height to condensed */
|
150
|
-
.lh-condensed { line-height: $lh-condensed !important; }
|
151
|
-
/* Set the line height to default */
|
152
|
-
.lh-default { line-height: $lh-default !important; }
|
153
|
-
/* Set the line height to zero */
|
154
|
-
.lh-0 { line-height: 0 !important; }
|
155
|
-
|
156
|
-
// Text alignments
|
157
|
-
// Responsive text alignment
|
158
|
-
@each $breakpoint, $variant in $responsive-variants {
|
159
|
-
@include breakpoint($breakpoint) {
|
160
|
-
/* Text align to the right */
|
161
|
-
.text#{$variant}-right { text-align: right !important; }
|
162
|
-
/* Text align to the left */
|
163
|
-
.text#{$variant}-left { text-align: left !important; }
|
164
|
-
/* Text align to the center */
|
165
|
-
.text#{$variant}-center { text-align: center !important; }
|
166
|
-
}
|
167
|
-
}
|
168
|
-
|
169
|
-
// Text styles
|
170
|
-
/* Set the font weight to normal */
|
171
|
-
.text-normal { font-weight: $font-weight-normal !important; }
|
172
|
-
/* Set the font weight to bold */
|
173
|
-
.text-bold { font-weight: $font-weight-bold !important;}
|
174
|
-
/* Set the font to italic */
|
175
|
-
.text-italic { font-style: italic !important; }
|
176
|
-
/* Make text uppercase */
|
177
|
-
.text-uppercase { text-transform: uppercase !important; }
|
178
|
-
/* Underline text */
|
179
|
-
.text-underline { text-decoration: underline !important; }
|
180
|
-
/* Don't underline text */
|
181
|
-
.no-underline { text-decoration: none !important; }
|
182
|
-
/* Don't wrap white space */
|
183
|
-
.no-wrap { white-space: nowrap !important; }
|
184
|
-
/* Normal white space */
|
185
|
-
.ws-normal { white-space: normal !important; }
|
186
|
-
/* Allow long lines with no spaces to line break */
|
187
|
-
.wb-break-all { word-break: break-all !important; }
|
188
|
-
|
189
|
-
.text-emphasized {
|
190
|
-
font-weight: $font-weight-bold;
|
191
|
-
color: $text-gray-dark;
|
192
|
-
}
|
193
|
-
|
194
|
-
// List styles
|
195
|
-
.list-style-none { list-style: none !important; }
|
196
|
-
|
197
|
-
// Text Shadows
|
198
|
-
/* Add a dark text shadow */
|
199
|
-
.text-shadow-dark {
|
200
|
-
text-shadow: 0 1px 1px rgba($black, 0.25), 0 1px 25px rgba($black, 0.75);
|
201
|
-
}
|
202
|
-
/* Add a light text shadow */
|
203
|
-
.text-shadow-light {
|
204
|
-
text-shadow: 0 1px 0 rgba($white, 0.5);
|
205
|
-
}
|
206
|
-
|
207
|
-
/* Set to monospace font */
|
208
|
-
.text-mono {
|
209
|
-
font-family: $mono-font;
|
210
|
-
}
|
211
|
-
|
212
|
-
/* Disallow user from selecting text */
|
213
|
-
.user-select-none {
|
214
|
-
user-select: none !important;
|
215
|
-
}
|