forked from pattern-lab/patternlab-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpattern-lab.scss
executable file
·125 lines (108 loc) · 3.05 KB
/
pattern-lab.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*------------------------------------*\
#PATTERN LAB STYLES
\*------------------------------------*/
/**
* NOTES:
* 1) These styles are specific to Pattern Lab and should not be modified.
* All project styles should be modified in /source/css/
*
* 2) Any !important declarations are to prevent brand styles from overriding
* pattern lab-specific styles
*/
/*------------------------------------*\
#TABLE OF CONTENTS
\*------------------------------------*/
/**
* ABSTRACTS.................Variables and mixins
* BASE......................Reset & Base elements
* VENDOR....................Styles out of PL control
* COMPONENTS................Components
* THEMES....................Theming variations
* UTILITIES.................Helper classes
*/
/*------------------------------------*\
#ABSTRACTS
\*------------------------------------*/
@import 'scss/01-abstracts/variables';
@import 'scss/01-abstracts/mixins';
/*------------------------------------*\
#BASE
\*------------------------------------*/
@import 'scss/02-base/reset';
@import 'scss/02-base/body';
/*------------------------------------*\
#VENDOR
\*------------------------------------*/
@import 'scss/03-vendor/prism';
/*------------------------------------*\
#COMPONENTS
\*------------------------------------*/
@import '../scripts/components/pl-nav/pl-nav.scss';
@import '../scripts/components/pl-search/pl-search.scss';
@import 'scss/04-components/annotations';
@import 'scss/04-components/breadcrumbs';
@import 'scss/04-components/pattern-category';
@import 'scss/04-components/pattern-info';
@import 'scss/04-components/pattern-lineage';
@import 'scss/04-components/pattern-states';
@import 'scss/04-components/pattern';
@import 'scss/04-components/tabs';
@import 'scss/04-components/text-passage';
.pl-c-code-copy-btn {
display: inline-block;
position: absolute;
top: 0.4rem;
right: 0.5rem;
padding: 0.2rem 0.4rem;
background-color: $pl-color-gray-07;
color: $pl-color-gray-87;
border: 1px solid $pl-color-gray-13;
border-radius: $pl-border-radius-med;
font-family: $pl-font;
font-size: $pl-font-size-norm;
text-transform: lowercase;
line-height: 1;
cursor: pointer;
z-index: 2;
transition: background-color $pl-animate-quick ease-out;
&:hover,
&:focus {
background-color: $pl-color-gray-20;
}
}
.pl-c-code-copy-btn__icon {
height: 1em;
width: 1em;
}
.pl-c-code-copy-btn__icon--paste {
display: none;
.is-copied & {
display: inline-block;
}
}
.pl-c-code-copy-btn__icon--copy {
display: inline-block;
.is-copied & {
display: none;
}
}
.pl-c-body {
overflow: hidden;
}
.pl-c-main {
overflow-x: hidden;
min-height: 100vh;
max-width: 100vw;
padding-left: .5rem;
padding-right: .5rem;
}
/*------------------------------------*\
#THEMES
\*------------------------------------*/
@import 'scss/05-themes/light-theme';
@import 'scss/05-themes/density-theme';
@import 'scss/05-themes/sidebar-theme';
/*------------------------------------*\
#UTILITIES
\*------------------------------------*/
@import 'scss/06-utilities/visibility';