@gospore/theme 1.0.76 → 1.0.77

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.
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- html,body,p,div,h1,h2,h3,h4,h5,h6,ul,ol,dl,img,pre,form,fieldset{margin:0;padding:0}img,fieldset{border:0}body,html,#app{height:100%;width:100%}body{background-color:#fff;color:#091e42;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:23px}input,select,textarea,button{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:25px}p,ul,ol,dl,h1,h2,h3,h4,h5,h6,blockquote,pre,form,table{margin:16px 0 0}a{color:#0052cc;text-decoration:none;border-radius:2px;cursor:pointer}a:hover{color:#0065ff;text-decoration:underline}a:active{color:#052fad}h1{font-size:2.07142857em;font-style:normal;line-height:1.10344828em;color:#172b4d;font-weight:600;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] h1{color:#b8c7e0}h1:first-child{margin-top:0}h2{font-size:1.71428571em;font-style:normal;line-height:1.16666667em;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] h2{color:#b8c7e0}h2:first-child{margin-top:0}h3{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px}[dark-mode=true] h3{color:#b8c7e0}h3:first-child{margin-top:0}h4{font-size:1.14285714em;font-style:normal;line-height:1.25em;color:#172b4d;font-weight:600;letter-spacing:-.006em;margin-top:24px}[dark-mode=true] h4{color:#b8c7e0}h4:first-child{margin-top:0}h5{font-size:1em;font-style:normal;line-height:1.14285714em;color:#172b4d;font-weight:600;letter-spacing:-.003em;margin-top:16px}[dark-mode=true] h5{color:#b8c7e0}h5:first-child{margin-top:0}h6{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#172b4d;font-weight:600;margin-top:20px;text-transform:uppercase}[dark-mode=true] h6{color:#b8c7e0}h6:first-child{margin-top:0}hr{background-color:#dfe1e6;height:2px;border-style:none;margin:40px 0}ul,ol,dl{padding-left:40px}dd,dd+dt,li+li{margin-top:4px}ul ul:not(:first-child),ol ul:not(:first-child),ul ol:not(:first-child),ol ol:not(:first-child){margin-top:4px}p:first-child,ul:first-child,ol:first-child,dl:first-child,h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child,blockquote:first-child,pre:first-child,form:first-child,table:first-child{margin-top:0}:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}[data-whatintent=mouse] :focus{outline:none;box-shadow:none}pre{font-family:SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Consolas,Courier,monospace;white-space:pre-wrap;padding:8px 16px;border-radius:5px;background:#f4f5f7;font-size:.8rem;overflow-x:auto}blockquote{white-space:pre-wrap;border-left:3px solid #dfe1e6;padding-left:8px;font-style:italic}p code{font-family:SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Consolas,Courier,monospace;padding:0 8px;border-radius:3px;background:#dfe1e6}table{border-collapse:collapse;width:100%}thead,tbody,tfoot{border-bottom:2px solid #dfe1e6}td,th{border:none;padding:4px 8px;text-align:left}th{font-size:.78571429em;font-style:normal;line-height:1.45454545em;color:#6b778c;font-weight:700;margin-top:16px;line-height:inherit}[dark-mode=true] th{color:#8c9cb8}th:first-child{margin-top:0}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}tr{transition:background .1s ease-out,box-shadow .15s cubic-bezier(.47,.03,.49,1.38)}tbody tr:hover{background-color:#f4f5f7}caption{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px;margin-bottom:8px;text-align:left}[dark-mode=true] caption{color:#b8c7e0}caption:first-child{margin-top:0}[dark-mode=true] body{background-color:#1b2638;color:#b8c7e0}[dark-mode=true] h1,[dark-mode=true] h2,[dark-mode=true] h3,[dark-mode=true] h4,[dark-mode=true] h5{color:#b8c7e0}[dark-mode=true] h6{color:#8c9cb8}[dark-mode=true] a{color:#4c9aff}[dark-mode=true] a:hover{color:#2684ff}[dark-mode=true] a:active{color:#4c9aff}[dark-mode=true] hr{background-color:#3b475c}[dark-mode=true] pre{background:#283447}[dark-mode=true] p code{background:#3b475c}[dark-mode=true] blockquote{border-left:3px solid #3b475c}[dark-mode=true] thead,[dark-mode=true] tbody,[dark-mode=true] tfoot{border-bottom:2px solid #3b475c}[dark-mode=true] tbody tr:hover{background-color:#283447}.heading-900{font-size:2.5em;font-style:normal;line-height:1.14285714em;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:52px}[dark-mode=true] .heading-900{color:#b8c7e0}.heading-900:first-child{margin-top:0}.heading-800{font-size:2.07142857em;font-style:normal;line-height:1.10344828em;color:#172b4d;font-weight:600;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] .heading-800{color:#b8c7e0}.heading-800:first-child{margin-top:0}.heading-700{font-size:1.71428571em;font-style:normal;line-height:1.16666667em;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] .heading-700{color:#b8c7e0}.heading-700:first-child{margin-top:0}.heading-600{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px}[dark-mode=true] .heading-600{color:#b8c7e0}.heading-600:first-child{margin-top:0}.heading-500{font-size:1.14285714em;font-style:normal;line-height:1.25em;color:#172b4d;font-weight:600;letter-spacing:-.006em;margin-top:24px}[dark-mode=true] .heading-500{color:#b8c7e0}.heading-500:first-child{margin-top:0}.heading-400{font-size:1em;font-style:normal;line-height:1.14285714em;color:#172b4d;font-weight:600;letter-spacing:-.003em;margin-top:16px}[dark-mode=true] .heading-400{color:#b8c7e0}.heading-400:first-child{margin-top:0}.heading-300{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#172b4d;font-weight:600;margin-top:20px;text-transform:uppercase}[dark-mode=true] .heading-300{color:#b8c7e0}.heading-300:first-child{margin-top:0}.heading-200{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#6b778c;font-weight:600;margin-top:16px}[dark-mode=true] .heading-200{color:#8c9cb8}.heading-200:first-child{margin-top:0}.heading-100{font-size:.78571429em;font-style:normal;line-height:1.45454545em;color:#6b778c;font-weight:700;margin-top:16px}[dark-mode=true] .heading-100{color:#8c9cb8}.heading-100:first-child{margin-top:0}.text-caption{font-size:12px;font-weight:400;color:#7a869a}.text-caption-bold{font-size:12px;font-weight:600;color:#091e42}.text-prominent{font-size:14px;font-weight:600;color:#091e42}.error{color:#ff5630}[dark-mode=true] .text-caption{color:#7988a3}[dark-mode=true] .text-caption-bold,[dark-mode=true] .text-prominent{color:#b8c7e0}[dark-mode=true] .error{color:#ff5630}
1
+ .heading-900{font-size:2.5em;font-style:normal;line-height:1.14285714em;color:#000;font-weight:500;letter-spacing:-.01em;margin-top:52px}[dark-mode=true] .heading-900{color:#e6edfa}.heading-900:first-child{margin-top:0}.heading-800{font-size:2.07142857em;font-style:normal;line-height:1.10344828em;color:#000;font-weight:600;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] .heading-800{color:#e6edfa}.heading-800:first-child{margin-top:0}.heading-700{font-size:1.71428571em;font-style:normal;line-height:1.16666667em;color:#000;font-weight:500;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] .heading-700{color:#e6edfa}.heading-700:first-child{margin-top:0}.heading-600{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#000;font-weight:500;letter-spacing:-.008em;margin-top:28px}[dark-mode=true] .heading-600{color:#e6edfa}.heading-600:first-child{margin-top:0}.heading-500{font-size:1.14285714em;font-style:normal;line-height:1.25em;color:#000;font-weight:600;letter-spacing:-.006em;margin-top:24px}[dark-mode=true] .heading-500{color:#e6edfa}.heading-500:first-child{margin-top:0}.heading-400{font-size:1em;font-style:normal;line-height:1.14285714em;color:#000;font-weight:600;letter-spacing:-.003em;margin-top:16px}[dark-mode=true] .heading-400{color:#e6edfa}.heading-400:first-child{margin-top:0}.heading-300{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#000;font-weight:600;margin-top:20px;text-transform:uppercase}[dark-mode=true] .heading-300{color:#e6edfa}.heading-300:first-child{margin-top:0}.heading-200{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#6b778c;font-weight:600;margin-top:16px}[dark-mode=true] .heading-200{color:#8c9cb8}.heading-200:first-child{margin-top:0}.heading-100{font-size:.78571429em;font-style:normal;line-height:1.45454545em;color:#6b778c;font-weight:700;margin-top:16px}[dark-mode=true] .heading-100{color:#8c9cb8}.heading-100:first-child{margin-top:0}.text-caption{font-size:12px;font-weight:400;color:#7a869a}.text-caption-bold{font-size:12px;font-weight:600;color:#000}.text-prominent{font-size:14px;font-weight:600;color:#000}.error{color:#ff5630}[dark-mode=true] .text-caption{color:#7988a3}[dark-mode=true] .text-caption-bold,[dark-mode=true] .text-prominent{color:#e6edfa}[dark-mode=true] .error{color:#ff5630}html,body,p,div,h1,h2,h3,h4,h5,h6,ul,ol,dl,img,pre,form,fieldset{margin:0;padding:0}img,fieldset{border:0}body,html,#app{height:100%;width:100%}body{background-color:#fff;color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:23px}input,select,textarea,button{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:25px}p,ul,ol,dl,h1,h2,h3,h4,h5,h6,blockquote,pre,form,table{margin:16px 0 0}a{color:#0052cc;text-decoration:none;border-radius:2px;cursor:pointer}a:hover{color:#0065ff;text-decoration:underline}a:active{color:#0747a6}h1{font-size:2.07142857em;font-style:normal;line-height:1.10344828em;color:#000;font-weight:600;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] h1{color:#e6edfa}h1:first-child{margin-top:0}h2{font-size:1.71428571em;font-style:normal;line-height:1.16666667em;color:#000;font-weight:500;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] h2{color:#e6edfa}h2:first-child{margin-top:0}h3{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#000;font-weight:500;letter-spacing:-.008em;margin-top:28px}[dark-mode=true] h3{color:#e6edfa}h3:first-child{margin-top:0}h4{font-size:1.14285714em;font-style:normal;line-height:1.25em;color:#000;font-weight:600;letter-spacing:-.006em;margin-top:24px}[dark-mode=true] h4{color:#e6edfa}h4:first-child{margin-top:0}h5{font-size:1em;font-style:normal;line-height:1.14285714em;color:#000;font-weight:600;letter-spacing:-.003em;margin-top:16px}[dark-mode=true] h5{color:#e6edfa}h5:first-child{margin-top:0}h6{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#000;font-weight:600;margin-top:20px;text-transform:uppercase}[dark-mode=true] h6{color:#e6edfa}h6:first-child{margin-top:0}ul,ol,dl{padding-left:40px}dd,dd+dt,li+li{margin-top:4px}ul ul:not(:first-child),ol ul:not(:first-child),ul ol:not(:first-child),ol ol:not(:first-child){margin-top:4px}p:first-child,ul:first-child,ol:first-child,dl:first-child,h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child,blockquote:first-child,pre:first-child,form:first-child,table:first-child{margin-top:0}:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}[data-whatintent=mouse] :focus{outline:none;box-shadow:none}table{border-collapse:collapse;width:100%}thead,tbody,tfoot{border-bottom:2px solid #dfe1e6}td,th{border:none;padding:4px 8px;text-align:left}th{font-size:.78571429em;font-style:normal;line-height:1.45454545em;color:#6b778c;font-weight:700;margin-top:16px;line-height:inherit}[dark-mode=true] th{color:#8c9cb8}th:first-child{margin-top:0}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}tr{transition:background .1s ease-out,box-shadow .15s cubic-bezier(.47,.03,.49,1.38)}tbody tr:hover{background-color:#f4f5f7}hr{background-color:#dfe1e6;height:2px;border-style:none;margin:40px 0}pre{font-family:SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Consolas,Courier,monospace;white-space:pre-wrap;padding:8px 16px;border-radius:6px;background:#f4f5f7;font-size:.8rem;overflow-x:auto}blockquote{white-space:pre-wrap;border-left:3px solid #dfe1e6;padding-left:8px;font-style:italic}p code{font-family:SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Consolas,Courier,monospace;padding:0 8px;border-radius:3px;background:#dfe1e6}caption{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#000;font-weight:500;letter-spacing:-.008em;margin-top:28px;margin-bottom:8px;text-align:left}[dark-mode=true] caption{color:#e6edfa}caption:first-child{margin-top:0}[dark-mode=true] body{background-color:#0d1424;color:#e6edfa}[dark-mode=true] h1,[dark-mode=true] h2,[dark-mode=true] h3,[dark-mode=true] h4,[dark-mode=true] h5{color:#e6edfa}[dark-mode=true] h6{color:#8c9cb8}[dark-mode=true] a{color:#4c9aff}[dark-mode=true] a:hover{color:#2684ff}[dark-mode=true] a:active{color:#4c9aff}[dark-mode=true] hr{background-color:#3b475c}[dark-mode=true] pre{background:#283447}[dark-mode=true] p code{background:#3b475c}[dark-mode=true] blockquote{border-left:3px solid #3b475c}[dark-mode=true] thead,[dark-mode=true] tbody,[dark-mode=true] tfoot{border-bottom:2px solid #3b475c}[dark-mode=true] tbody tr:hover{background-color:#283447}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gospore/theme",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "",
5
5
  "author": "Gospore",
6
6
  "files": [
@@ -26,5 +26,5 @@
26
26
  "@vitejs/plugin-vue": "^2.2.2",
27
27
  "vite": "^2.8.4"
28
28
  },
29
- "gitHead": "c1e6ea7a643af4a9c2dcc3e11228e0cc4967ab60"
29
+ "gitHead": "7946ca073b98051601f818429d8e2502703f6c23"
30
30
  }
package/src/Theme.vue CHANGED
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- // Global imports - Accessibility & Stylesheets
8
+ // Global imports - accessibility & stylesheets
9
9
  import "what-input";
10
10
  import "./index.less";
11
11
 
package/src/borders.less CHANGED
@@ -1,5 +1,6 @@
1
- @borderRadius: 3px;
2
- @borderRadiusLarge: 6px;
3
- @borderWidth: @borderWidth2;
4
- @borderWidth1: 1px;
5
- @borderWidth2: 2px;
1
+ @border-radius-regular: 3px;
2
+ @border-radius-large: 6px;
3
+ @border-width: @border-width-2;
4
+ @border-width-1: 1px;
5
+ @border-width-2: 2px;
6
+ @border-width-3: 3px;
package/src/colors.less CHANGED
@@ -23,6 +23,7 @@
23
23
  @go-color-n700: #253858;
24
24
  @go-color-n800: #172b4d;
25
25
  @go-color-n900: #091e42;
26
+ @go-color-n1000: hsl(0, 0%, 0%);
26
27
 
27
28
  // Dark Mode Neutrals
28
29
  @go-color-dn0: #0d1424;
@@ -80,6 +81,7 @@
80
81
  @go-color-b300: #0065ff;
81
82
  @go-color-b400: #0052cc;
82
83
  @go-color-b500: #0747a6;
84
+ @go-color-b600: #061f80;
83
85
 
84
86
  // Purples
85
87
  @go-color-p50: #eae6ff;
@@ -130,11 +132,11 @@
130
132
  };
131
133
  @background-color: {
132
134
  light: @go-color-n0;
133
- dark: @go-color-dn30;
135
+ dark: @go-color-dn0;
134
136
  };
135
137
  @text-color: {
136
- light: @go-color-n900;
137
- dark: @go-color-dn600;
138
+ light: @go-color-n1000;
139
+ dark: @go-color-dn900;
138
140
  };
139
141
  @placeholder-color: {
140
142
  light: @go-color-n100;
@@ -142,8 +144,8 @@
142
144
  };
143
145
  #heading-color() {
144
146
  .default() {
145
- light: @go-color-n800;
146
- dark: @go-color-dn600;
147
+ light: @go-color-n1000;
148
+ dark: @go-color-dn900;
147
149
  }
148
150
  .subtle() {
149
151
  light: @go-color-n200;
@@ -188,49 +190,4 @@
188
190
  @blockquote-border-color: {
189
191
  light: @go-color-n40;
190
192
  dark: @go-color-dn70;
191
- };
192
-
193
- // // Neutrals
194
- // @go-color-n0: hsl(0, 0%, 100%);
195
- // @go-color-n5: hsl(0, 0%, 98%);
196
- // @go-color-n10: hsl(210, 25%, 98%);
197
- // @go-color-n20: hsl(220, 16%, 96%);
198
- @go-color-n25: hsl(210, 7%, 95%);
199
- // @go-color-n30: hsl(228, 14%, 93%);
200
- // @go-color-n40: hsl(223, 12%, 89%);
201
- // @go-color-n70: hsl(217, 13%, 69%);
202
- // @go-color-n80: hsl(218, 13%, 64%);
203
- // @go-color-n90: hsl(218, 13%, 59%);
204
- // @go-color-n100: hsl(218, 14%, 54%);
205
- // @go-color-n200: hsl(218, 14%, 49%);
206
- // @go-color-n300: hsl(218, 17%, 44%);
207
- // @go-color-n400: hsl(218, 20%, 39%);
208
- // @go-color-n500: hsla(0,0%,10%,.6);
209
- // @go-color-n800: hsla(0,0%,10%,.9);
210
- // // @go-color-n900: hsl(218, 54%, 20%);
211
- // @go-color-n900: hsl(240, 7%, 6%);
212
- @go-color-n1000: hsl(0, 0%, 0%);
213
-
214
- // Blues
215
- @go-color-b900: hsl(225, 90%, 16%);
216
- // @go-color-b700: #000e7f;
217
- @go-color-b600: #061f80;
218
- @go-color-b500: hsl(225, 94%, 35%);
219
- // @go-color-b550: #131ff2;
220
- // @go-color-b500: #001dff;
221
- // @go-color-b400: #3333ff;
222
- // @go-color-b400: #06c;
223
- // @go-color-b300: hsl(210, 100%, 50%);
224
- // @go-color-b200: hsl(210, 100%, 93%);
225
- // @go-color-b100: hsl(225, 100%, 96%);
226
-
227
- // // Reds
228
- // @go-color-r400: hsl(12, 91%, 46%);
229
- // @go-color-r300: hsl(11, 100%, 59%);
230
-
231
- // // Yellows
232
- // @go-color-y300: hsl(40, 100%, 50%);
233
- // @go-color-y200: hsl(46, 100%, 50%);
234
-
235
- // // Greens
236
- // @go-color-g500: hsl(120, 100%, 25%);
193
+ }; ; ;
@@ -5,4 +5,4 @@
5
5
  @import "sizing.less";
6
6
  @import "layering.less";
7
7
  @import "elevation.less";
8
- @import "transitions.less";
8
+ @import "transitions.less";
@@ -21,6 +21,6 @@
21
21
  }
22
22
  .avatar() {
23
23
  light: inset 0 0 10px fade(@go-color-n900, 5%);
24
- dark: inset 0 0 10px fade(@go-color-n900, 5%)
24
+ dark: inset 0 0 10px fade(@go-color-n900, 5%);
25
25
  }
26
- }; ;
26
+ }
package/src/fonts.less CHANGED
@@ -3,10 +3,10 @@
3
3
  @font-family-code: "SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono",
4
4
  "Ubuntu Mono", Menlo, Consolas, Courier, monospace;
5
5
 
6
- @font-style: normal;
6
+ @font-style-normal: normal;
7
+ @font-style-italic: italic;
7
8
 
8
9
  @font-size-default: @font-size-14;
9
- // @font-size-11: 11px;
10
10
  @font-size-12: 12px;
11
11
  @font-size-14: 14px;
12
12
  @font-size-15: 15px;
package/src/index.less CHANGED
@@ -1,10 +1,271 @@
1
- @import "reset.less";
2
- @import "colors.less";
3
- @import "base.less";
4
- @import "tables.less";
5
- @import "borders.less";
6
- @import "elevation.less";
7
- @import "sizing.less";
8
- @import "layering.less";
9
- @import "transitions.less";
10
- @import "styles.less";
1
+ // Reset
2
+ html,
3
+ body,
4
+ p,
5
+ div,
6
+ h1,
7
+ h2,
8
+ h3,
9
+ h4,
10
+ h5,
11
+ h6,
12
+ ul,
13
+ ol,
14
+ dl,
15
+ img,
16
+ pre,
17
+ form,
18
+ fieldset {
19
+ margin: 0;
20
+ padding: 0;
21
+ }
22
+ img,
23
+ fieldset {
24
+ border: 0;
25
+ }
26
+
27
+ body,
28
+ html,
29
+ #app {
30
+ height: 100%;
31
+ width: 100%;
32
+ }
33
+ body {
34
+ background-color: @background-color[light];
35
+ color: @text-color[light];
36
+ font-family: @font-family;
37
+ font-size: @font-size-default;
38
+ font-style: @font-style-normal;
39
+ font-weight: @font-weight-regular;
40
+ line-height: 23px;
41
+ }
42
+
43
+ input,
44
+ select,
45
+ textarea,
46
+ button {
47
+ font-family: inherit;
48
+ font-size: inherit;
49
+ font-weight: inherit;
50
+ line-height: 25px;
51
+ }
52
+
53
+ // Default margins
54
+ p,
55
+ ul,
56
+ ol,
57
+ dl,
58
+ h1,
59
+ h2,
60
+ h3,
61
+ h4,
62
+ h5,
63
+ h6,
64
+ blockquote,
65
+ pre,
66
+ form,
67
+ table {
68
+ margin: (@grid-size * 2px) @size0 @size0 @size0;
69
+ }
70
+
71
+ // Links
72
+ a {
73
+ color: #link-color.default[light];
74
+ text-decoration: @link-text-decoration[default];
75
+ border-radius: @border-width;
76
+ cursor: pointer;
77
+
78
+ &:hover {
79
+ color: #link-color.hover[light];
80
+ text-decoration: @link-text-decoration[hover];
81
+ }
82
+ &:active {
83
+ color: #link-color.active[light];
84
+ }
85
+ }
86
+
87
+ // Headings
88
+ h1 {
89
+ .heading-800;
90
+ }
91
+ h2 {
92
+ .heading-700;
93
+ }
94
+ h3 {
95
+ .heading-600;
96
+ }
97
+ h4 {
98
+ .heading-500;
99
+ }
100
+ h5 {
101
+ .heading-400;
102
+ }
103
+ h6 {
104
+ .heading-300;
105
+ }
106
+
107
+ // Lists
108
+ ul,
109
+ ol,
110
+ dl {
111
+ padding-left: (@grid-size * 5px);
112
+ }
113
+ dd,
114
+ dd + dt,
115
+ li + li {
116
+ margin-top: (@grid-size / 2px);
117
+ }
118
+ ul,
119
+ ol {
120
+ ul,
121
+ ol {
122
+ &:not(:first-child) {
123
+ margin-top: (@grid-size / 2px);
124
+ }
125
+ }
126
+ }
127
+
128
+ // Remove top margin for first element
129
+ p:first-child,
130
+ ul:first-child,
131
+ ol:first-child,
132
+ dl:first-child,
133
+ h1:first-child,
134
+ h2:first-child,
135
+ h3:first-child,
136
+ h4:first-child,
137
+ h5:first-child,
138
+ h6:first-child,
139
+ blockquote:first-child,
140
+ pre:first-child,
141
+ form:first-child,
142
+ table:first-child {
143
+ margin-top: @size0;
144
+ }
145
+
146
+ // Outline
147
+ :focus {
148
+ outline: none;
149
+ box-shadow: @size0 @size0 @size0 @focus-outline-width @focus-outline-color;
150
+ }
151
+ [data-whatintent="mouse"] :focus {
152
+ outline: none;
153
+ box-shadow: none;
154
+ }
155
+
156
+ // Tables
157
+ table {
158
+ border-collapse: collapse;
159
+ width: 100%;
160
+ }
161
+ thead,
162
+ tbody,
163
+ tfoot {
164
+ border-bottom: @border-width solid @table-border-color[light];
165
+ }
166
+ td,
167
+ th {
168
+ border: none;
169
+ padding: (@grid-size / 2) * 1px @grid-size * 1px;
170
+ text-align: left;
171
+ }
172
+ th {
173
+ .heading-100;
174
+ line-height: inherit;
175
+ }
176
+ td:first-child,
177
+ th:first-child {
178
+ padding-left: @size0;
179
+ }
180
+ td:last-child,
181
+ th:last-child {
182
+ padding-right: @size0;
183
+ }
184
+ tr {
185
+ transition: background 0.1s ease-out,
186
+ box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);
187
+ }
188
+ tbody tr:hover {
189
+ background-color: @table-hover-color[light];
190
+ }
191
+
192
+ // Other elements
193
+ hr {
194
+ background-color: @horizontal-rule-color[light];
195
+ height: 2px;
196
+ border-style: none;
197
+ margin: 40px @size0;
198
+ }
199
+ pre {
200
+ font-family: @font-family-code;
201
+ white-space: pre-wrap;
202
+ padding: @size8 @size16;
203
+ border-radius: @border-radius-large;
204
+ background: @code-block-color[light];
205
+ font-size: 0.8rem;
206
+ overflow-x: auto;
207
+ }
208
+ blockquote {
209
+ white-space: pre-wrap;
210
+ border-left: @border-width-3 solid @blockquote-border-color[light];
211
+ padding-left: @size8;
212
+ font-style: @font-style-italic;
213
+ }
214
+ p code {
215
+ font-family: @font-family-code;
216
+ padding: @size0 @size8;
217
+ border-radius: @border-radius-regular;
218
+ background: @code-color[light];
219
+ }
220
+ caption {
221
+ .heading-600;
222
+ margin-bottom: @size8;
223
+ text-align: left;
224
+ }
225
+
226
+ [dark-mode="true"] {
227
+ body {
228
+ background-color: @background-color[dark];
229
+ color: @text-color[dark];
230
+ }
231
+ h1,
232
+ h2,
233
+ h3,
234
+ h4,
235
+ h5 {
236
+ color: #heading-color.default[dark];
237
+ }
238
+ h6 {
239
+ color: #heading-color.subtle[dark];
240
+ }
241
+ a {
242
+ color: #link-color.default[dark];
243
+
244
+ &:hover {
245
+ color: #link-color.hover[dark];
246
+ }
247
+ &:active {
248
+ color: #link-color.active[dark];
249
+ }
250
+ }
251
+ hr {
252
+ background-color: @horizontal-rule-color[dark];
253
+ }
254
+ pre {
255
+ background: @code-block-color[dark];
256
+ }
257
+ p code {
258
+ background: @code-color[dark];
259
+ }
260
+ blockquote {
261
+ border-left: @border-width-3 solid @blockquote-border-color[dark];
262
+ }
263
+ thead,
264
+ tbody,
265
+ tfoot {
266
+ border-bottom: @border-width solid @table-border-color[dark];
267
+ }
268
+ tbody tr:hover {
269
+ background-color: @table-hover-color[dark];
270
+ }
271
+ }
package/src/styles.less CHANGED
@@ -1,13 +1,18 @@
1
- @import "grid.less";
1
+ @grid-size: 8;
2
+ @focus-outline-width: 2px;
3
+ @link-text-decoration: {
4
+ default: none;
5
+ hover: underline;
6
+ };
2
7
 
3
8
  .heading-900 {
4
9
  font-size: unit((35px / @font-size-default), em);
5
- font-style: @font-style;
10
+ font-style: @font-style-normal;
6
11
  line-height: unit((40px / 35px), em);
7
12
  color: #heading-color.default[light];
8
13
  font-weight: @font-weight-medium;
9
14
  letter-spacing: -0.01em;
10
- margin-top: @gridSize * 6.5px;
15
+ margin-top: @grid-size * 6.5px;
11
16
 
12
17
  [dark-mode="true"] & {
13
18
  color: #heading-color.default[dark];
@@ -18,12 +23,12 @@
18
23
  }
19
24
  .heading-800 {
20
25
  font-size: unit((29px / @font-size-default), em);
21
- font-style: @font-style;
26
+ font-style: @font-style-normal;
22
27
  line-height: unit((32px / 29px), em);
23
28
  color: #heading-color.default[light];
24
29
  font-weight: @font-weight-semibold;
25
30
  letter-spacing: -0.01em;
26
- margin-top: @gridSize * 5px;
31
+ margin-top: @grid-size * 5px;
27
32
 
28
33
  [dark-mode="true"] & {
29
34
  color: #heading-color.default[dark];
@@ -34,12 +39,12 @@
34
39
  }
35
40
  .heading-700 {
36
41
  font-size: unit((24px / @font-size-default), em);
37
- font-style: @font-style;
42
+ font-style: @font-style-normal;
38
43
  line-height: unit((28px / 24px), em);
39
44
  color: #heading-color.default[light];
40
45
  font-weight: @font-weight-medium;
41
46
  letter-spacing: -0.01em;
42
- margin-top: @gridSize * 5px;
47
+ margin-top: @grid-size * 5px;
43
48
 
44
49
  [dark-mode="true"] & {
45
50
  color: #heading-color.default[dark];
@@ -50,12 +55,12 @@
50
55
  }
51
56
  .heading-600 {
52
57
  font-size: unit((20px / @font-size-default), em);
53
- font-style: @font-style;
58
+ font-style: @font-style-normal;
54
59
  line-height: unit((24px / 20px), em);
55
60
  color: #heading-color.default[light];
56
61
  font-weight: @font-weight-medium;
57
62
  letter-spacing: -0.008em;
58
- margin-top: @gridSize * 3.5px;
63
+ margin-top: @grid-size * 3.5px;
59
64
 
60
65
  [dark-mode="true"] & {
61
66
  color: #heading-color.default[dark];
@@ -66,12 +71,12 @@
66
71
  }
67
72
  .heading-500 {
68
73
  font-size: unit((16px / @font-size-default), em);
69
- font-style: @font-style;
74
+ font-style: @font-style-normal;
70
75
  line-height: unit((20px / 16px), em);
71
76
  color: #heading-color.default[light];
72
77
  font-weight: @font-weight-semibold;
73
78
  letter-spacing: -0.006em;
74
- margin-top: @gridSize * 3px;
79
+ margin-top: @grid-size * 3px;
75
80
 
76
81
  [dark-mode="true"] & {
77
82
  color: #heading-color.default[dark];
@@ -82,12 +87,12 @@
82
87
  }
83
88
  .heading-400 {
84
89
  font-size: unit((14px / @font-size-default), em);
85
- font-style: @font-style;
90
+ font-style: @font-style-normal;
86
91
  line-height: unit((16px / 14px), em);
87
92
  color: #heading-color.default[light];
88
93
  font-weight: @font-weight-semibold;
89
94
  letter-spacing: -0.003em;
90
- margin-top: @gridSize * 2px;
95
+ margin-top: @grid-size * 2px;
91
96
 
92
97
  [dark-mode="true"] & {
93
98
  color: #heading-color.default[dark];
@@ -98,11 +103,11 @@
98
103
  }
99
104
  .heading-300 {
100
105
  font-size: unit((12px / @font-size-default), em);
101
- font-style: @font-style;
106
+ font-style: @font-style-normal;
102
107
  line-height: unit((16px / 12px), em);
103
108
  color: #heading-color.default[light];
104
109
  font-weight: @font-weight-semibold;
105
- margin-top: @gridSize * 2.5px;
110
+ margin-top: @grid-size * 2.5px;
106
111
  text-transform: uppercase;
107
112
 
108
113
  [dark-mode="true"] & {
@@ -114,11 +119,11 @@
114
119
  }
115
120
  .heading-200 {
116
121
  font-size: unit((12px / @font-size-default), em);
117
- font-style: @font-style;
122
+ font-style: @font-style-normal;
118
123
  line-height: unit((16px / 12px), em);
119
124
  color: #heading-color.subtle[light];
120
125
  font-weight: @font-weight-semibold;
121
- margin-top: @gridSize * 2px;
126
+ margin-top: @grid-size * 2px;
122
127
 
123
128
  [dark-mode="true"] & {
124
129
  color: #heading-color.subtle[dark];
@@ -129,11 +134,11 @@
129
134
  }
130
135
  .heading-100 {
131
136
  font-size: unit((11px / @font-size-default), em);
132
- font-style: @font-style;
137
+ font-style: @font-style-normal;
133
138
  line-height: unit((16px / 11px), em);
134
139
  color: #heading-color.subtle[light];
135
140
  font-weight: @font-weight-bold;
136
- margin-top: @gridSize * 2px;
141
+ margin-top: @grid-size * 2px;
137
142
 
138
143
  [dark-mode="true"] & {
139
144
  color: #heading-color.subtle[dark];
package/src/base.less DELETED
@@ -1,255 +0,0 @@
1
- @import "./fonts.less";
2
- @import "./grid.less";
3
-
4
- @link-text-decoration: {
5
- default: none;
6
- hover: underline;
7
- };
8
-
9
- body,
10
- html,
11
- #app {
12
- height: 100%;
13
- width: 100%;
14
- }
15
- body {
16
- background-color: @background-color[light];
17
- color: @text-color[light];
18
- font-family: @font-family;
19
- font-size: @font-size-default;
20
- font-style: normal;
21
- font-weight: @font-weight-regular;
22
- line-height: 23px;
23
- }
24
-
25
- input,
26
- select,
27
- textarea,
28
- button {
29
- font-family: inherit;
30
- font-size: inherit;
31
- font-weight: inherit;
32
- line-height: 25px;
33
- }
34
-
35
- // Default margins
36
- p,
37
- ul,
38
- ol,
39
- dl,
40
- h1,
41
- h2,
42
- h3,
43
- h4,
44
- h5,
45
- h6,
46
- blockquote,
47
- pre,
48
- form,
49
- table {
50
- margin: (@gridSize * 2px) 0 0 0;
51
- }
52
-
53
- // Links
54
- a {
55
- color: #link-color.default[light];
56
- text-decoration: @link-text-decoration[default];
57
- border-radius: @borderWidth;
58
- cursor: pointer;
59
-
60
- &:hover {
61
- color: #link-color.hover[light];
62
- text-decoration: @link-text-decoration[hover];
63
- }
64
- &:active {
65
- color: #link-color.active[light];
66
- }
67
- }
68
-
69
- // Headings
70
- h1 {
71
- .heading-800;
72
- }
73
- h2 {
74
- .heading-700;
75
- }
76
- h3 {
77
- .heading-600;
78
- }
79
- h4 {
80
- .heading-500;
81
- }
82
- h5 {
83
- .heading-400;
84
- }
85
- h6 {
86
- .heading-300;
87
- }
88
-
89
- hr {
90
- background-color: @horizontal-rule-color[light];
91
- height: 2px;
92
- border-style: none;
93
- margin: 40px 0;
94
- }
95
-
96
- // Lists
97
- ul,
98
- ol,
99
- dl {
100
- padding-left: (@gridSize * 5px);
101
- }
102
- dd,
103
- dd + dt,
104
- li + li {
105
- margin-top: (@gridSize / 2px);
106
- }
107
- ul,
108
- ol {
109
- ul,
110
- ol {
111
- &:not(:first-child) {
112
- margin-top: (@gridSize / 2px);
113
- }
114
- }
115
- }
116
-
117
- // remove top margin for first element
118
- p:first-child,
119
- ul:first-child,
120
- ol:first-child,
121
- dl:first-child,
122
- h1:first-child,
123
- h2:first-child,
124
- h3:first-child,
125
- h4:first-child,
126
- h5:first-child,
127
- h6:first-child,
128
- blockquote:first-child,
129
- pre:first-child,
130
- form:first-child,
131
- table:first-child {
132
- margin-top: 0;
133
- }
134
-
135
- :focus {
136
- outline: none;
137
- box-shadow: 0px 0px 0px @focus-outline-width @focus-outline-color;
138
- }
139
- [data-whatintent="mouse"] :focus {
140
- outline: none;
141
- box-shadow: none;
142
- }
143
-
144
- pre {
145
- font-family: @font-family-code;
146
- white-space: pre-wrap;
147
- padding: @size8 @size16;
148
- border-radius: 5px;
149
- background: @code-block-color[light];
150
- font-size: 0.8rem;
151
- overflow-x: auto;
152
- }
153
-
154
- blockquote {
155
- white-space: pre-wrap;
156
- border-left: 3px solid @blockquote-border-color[light];
157
- padding-left: @size8;
158
- font-style: italic;
159
- }
160
-
161
- p code {
162
- font-family: @font-family-code;
163
- padding: @size0 @size8;
164
- border-radius: @borderRadius;
165
- background: @code-color[light];
166
- }
167
-
168
- table {
169
- border-collapse: collapse;
170
- width: 100%;
171
- }
172
-
173
- thead,
174
- tbody,
175
- tfoot {
176
- border-bottom: @borderWidth solid @table-border-color[light];
177
- }
178
- td,
179
- th {
180
- border: none;
181
- padding: (@gridSize / 2) * 1px @gridSize*1px;
182
- text-align: left;
183
- }
184
- th {
185
- .heading-100;
186
- line-height: inherit;
187
- }
188
- td:first-child,
189
- th:first-child {
190
- padding-left: 0;
191
- }
192
- td:last-child,
193
- th:last-child {
194
- padding-right: 0;
195
- }
196
- tr {
197
- transition: background 0.1s ease-out,
198
- box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);
199
- }
200
- tbody tr:hover {
201
- background-color: @table-hover-color[light];
202
- }
203
- caption {
204
- .heading-600;
205
-
206
- margin-bottom: @gridSize * 1px;
207
- text-align: left;
208
- }
209
-
210
- [dark-mode="true"] {
211
- body {
212
- background-color: @background-color[dark];
213
- color: @text-color[dark];
214
- }
215
- h1,
216
- h2,
217
- h3,
218
- h4,
219
- h5 {
220
- color: #heading-color.default[dark];
221
- }
222
- h6 {
223
- color: #heading-color.subtle[dark];
224
- }
225
- a {
226
- color: #link-color.default[dark];
227
-
228
- &:hover {
229
- color: #link-color.hover[dark];
230
- }
231
- &:active {
232
- color: #link-color.active[dark];
233
- }
234
- }
235
- hr {
236
- background-color: @horizontal-rule-color[dark];
237
- }
238
- pre {
239
- background: @code-block-color[dark];
240
- }
241
- p code {
242
- background: @code-color[dark];
243
- }
244
- blockquote {
245
- border-left: 3px solid @blockquote-border-color[dark];
246
- }
247
- thead,
248
- tbody,
249
- tfoot {
250
- border-bottom: @borderWidth solid @table-border-color[dark];
251
- }
252
- tbody tr:hover {
253
- background-color: @table-hover-color[dark];
254
- }
255
- }
package/src/grid.less DELETED
@@ -1,2 +0,0 @@
1
- @gridSize: 8;
2
- @focus-outline-width: 2px;
package/src/reset.less DELETED
@@ -1,25 +0,0 @@
1
- // Reset
2
- html,
3
- body,
4
- p,
5
- div,
6
- h1,
7
- h2,
8
- h3,
9
- h4,
10
- h5,
11
- h6,
12
- ul,
13
- ol,
14
- dl,
15
- img,
16
- pre,
17
- form,
18
- fieldset {
19
- margin: 0;
20
- padding: 0;
21
- }
22
- img,
23
- fieldset {
24
- border: 0;
25
- }
package/src/tables.less DELETED
File without changes