mod-base 1.0.0
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/.editorconfig +17 -0
- package/.sass-lint.yml +165 -0
- package/CHANGELOG.md +5 -0
- package/README.md +42 -0
- package/package.json +7 -0
- package/src/fonts/modstyle-icons/modicons-basic/Read Me.txt +7 -0
- package/src/fonts/modstyle-icons/modicons-basic/demo-files/demo.css +152 -0
- package/src/fonts/modstyle-icons/modicons-basic/demo-files/demo.js +30 -0
- package/src/fonts/modstyle-icons/modicons-basic/demo.html +346 -0
- package/src/fonts/modstyle-icons/modicons-basic/fonts/modicons-basic.eot +0 -0
- package/src/fonts/modstyle-icons/modicons-basic/fonts/modicons-basic.svg +32 -0
- package/src/fonts/modstyle-icons/modicons-basic/fonts/modicons-basic.ttf +0 -0
- package/src/fonts/modstyle-icons/modicons-basic/fonts/modicons-basic.woff +0 -0
- package/src/fonts/modstyle-icons/modicons-basic/selection.json +1 -0
- package/src/fonts/modstyle-icons/modicons-basic/style.css +93 -0
- package/src/fonts/modstyle-icons/modicons-fill/Read Me.txt +7 -0
- package/src/fonts/modstyle-icons/modicons-fill/demo-files/demo.css +152 -0
- package/src/fonts/modstyle-icons/modicons-fill/demo-files/demo.js +30 -0
- package/src/fonts/modstyle-icons/modicons-fill/demo.html +626 -0
- package/src/fonts/modstyle-icons/modicons-fill/fonts/modicons-fill.eot +0 -0
- package/src/fonts/modstyle-icons/modicons-fill/fonts/modicons-fill.svg +52 -0
- package/src/fonts/modstyle-icons/modicons-fill/fonts/modicons-fill.ttf +0 -0
- package/src/fonts/modstyle-icons/modicons-fill/fonts/modicons-fill.woff +0 -0
- package/src/fonts/modstyle-icons/modicons-fill/selection.json +1 -0
- package/src/fonts/modstyle-icons/modicons-fill/style.css +194 -0
- package/src/fonts/modstyle-icons/modicons-stroke/Read Me.txt +7 -0
- package/src/fonts/modstyle-icons/modicons-stroke/demo-files/demo.css +152 -0
- package/src/fonts/modstyle-icons/modicons-stroke/demo-files/demo.js +30 -0
- package/src/fonts/modstyle-icons/modicons-stroke/demo.html +990 -0
- package/src/fonts/modstyle-icons/modicons-stroke/fonts/modicons-stroke.eot +0 -0
- package/src/fonts/modstyle-icons/modicons-stroke/fonts/modicons-stroke.svg +79 -0
- package/src/fonts/modstyle-icons/modicons-stroke/fonts/modicons-stroke.ttf +0 -0
- package/src/fonts/modstyle-icons/modicons-stroke/fonts/modicons-stroke.woff +0 -0
- package/src/fonts/modstyle-icons/modicons-stroke/selection.json +1 -0
- package/src/fonts/modstyle-icons/modicons-stroke/style.css +290 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/Read Me.txt +7 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/demo-files/demo.css +152 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/demo-files/demo.js +30 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/demo.html +122 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/fonts/modicons-stroke-md.eot +0 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/fonts/modicons-stroke-md.svg +16 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/fonts/modicons-stroke-md.ttf +0 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/fonts/modicons-stroke-md.woff +0 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/selection.json +1 -0
- package/src/fonts/modstyle-icons/modicons-stroke-md/style.css +51 -0
- package/src/styles/base/_breakpoint-mixins.scss +30 -0
- package/src/styles/base/_colors.scss +115 -0
- package/src/styles/base/_flex.scss +7 -0
- package/src/styles/base/_fonts.scss +49 -0
- package/src/styles/base/_reset.scss +152 -0
- package/src/styles/base/index.scss +6 -0
- package/src/styles/icons/_basics.scss +6 -0
- package/src/styles/icons/_fill.scss +6 -0
- package/src/styles/icons/_font-face-basic.scss +10 -0
- package/src/styles/icons/_font-face-fill.scss +10 -0
- package/src/styles/icons/_font-face-stroke-md.scss +10 -0
- package/src/styles/icons/_font-face-stroke.scss +10 -0
- package/src/styles/icons/_icon-classes-basic.scss +163 -0
- package/src/styles/icons/_icon-classes-fill.scss +262 -0
- package/src/styles/icons/_icon-classes-stroke-md.scss +46 -0
- package/src/styles/icons/_icon-classes-stroke.scss +424 -0
- package/src/styles/icons/_mixin-basic.scss +6 -0
- package/src/styles/icons/_mixin-fill.scss +6 -0
- package/src/styles/icons/_mixin-stroke-md.scss +6 -0
- package/src/styles/icons/_mixin-stroke.scss +6 -0
- package/src/styles/icons/_stroke-md.scss +6 -0
- package/src/styles/icons/_stroke.scss +6 -0
- package/src/styles/icons/index.scss +4 -0
- package/src/styles/templates/_dark-mode.scss +346 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
|
|
3
|
+
root = true
|
|
4
|
+
|
|
5
|
+
[*]
|
|
6
|
+
charset = utf-8
|
|
7
|
+
indent_style = tab
|
|
8
|
+
end_of_line = lf
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
trim_trailing_whitespace = true
|
|
11
|
+
|
|
12
|
+
[*.md]
|
|
13
|
+
trim_trailing_whitespace = false
|
|
14
|
+
|
|
15
|
+
[{.jshintrc,*.json,*.yml}]
|
|
16
|
+
indent_style = space
|
|
17
|
+
indent_size = 2
|
package/.sass-lint.yml
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
files:
|
|
2
|
+
include: '**/*.scss'
|
|
3
|
+
options:
|
|
4
|
+
formatter: stylish
|
|
5
|
+
merge-default-rules: false
|
|
6
|
+
rules:
|
|
7
|
+
bem-depth:
|
|
8
|
+
- 0
|
|
9
|
+
- max-depth: 1
|
|
10
|
+
border-zero:
|
|
11
|
+
- 1
|
|
12
|
+
- convention: 0
|
|
13
|
+
brace-style:
|
|
14
|
+
- 1
|
|
15
|
+
- allow-single-line: true
|
|
16
|
+
class-name-format:
|
|
17
|
+
- 1
|
|
18
|
+
- convention: hyphenatedbem
|
|
19
|
+
clean-import-paths:
|
|
20
|
+
- 1
|
|
21
|
+
- filename-extension: false
|
|
22
|
+
leading-underscore: false
|
|
23
|
+
empty-line-between-blocks:
|
|
24
|
+
- 1
|
|
25
|
+
- ignore-single-line-rulesets: true
|
|
26
|
+
extends-before-declarations: 1
|
|
27
|
+
extends-before-mixins: 1
|
|
28
|
+
final-newline:
|
|
29
|
+
- 1
|
|
30
|
+
- include: true
|
|
31
|
+
force-attribute-nesting: 1
|
|
32
|
+
force-element-nesting: 1
|
|
33
|
+
force-pseudo-nesting: 1
|
|
34
|
+
function-name-format:
|
|
35
|
+
- 1
|
|
36
|
+
- allow-leading-underscore: true
|
|
37
|
+
convention: hyphenatedlowercase
|
|
38
|
+
hex-length:
|
|
39
|
+
- 1
|
|
40
|
+
- style: short
|
|
41
|
+
hex-notation:
|
|
42
|
+
- 1
|
|
43
|
+
- style: uppercase
|
|
44
|
+
id-name-format:
|
|
45
|
+
- 1
|
|
46
|
+
- convention: hyphenatedlowercase
|
|
47
|
+
indentation:
|
|
48
|
+
- 2
|
|
49
|
+
-
|
|
50
|
+
size: tab
|
|
51
|
+
leading-zero:
|
|
52
|
+
- 1
|
|
53
|
+
- include: false
|
|
54
|
+
mixin-name-format:
|
|
55
|
+
- 1
|
|
56
|
+
- allow-leading-underscore: true
|
|
57
|
+
convention: hyphenatedlowercase
|
|
58
|
+
mixins-before-declarations: 1
|
|
59
|
+
nesting-depth:
|
|
60
|
+
- 1
|
|
61
|
+
- max-depth: 5
|
|
62
|
+
no-color-keywords: 1
|
|
63
|
+
no-color-literals: 0
|
|
64
|
+
no-css-comments: 0
|
|
65
|
+
no-debug: 1
|
|
66
|
+
no-duplicate-properties: 1
|
|
67
|
+
no-empty-rulesets: 1
|
|
68
|
+
no-extends: 0
|
|
69
|
+
no-ids: 1
|
|
70
|
+
no-important: 0
|
|
71
|
+
no-invalid-hex: 1
|
|
72
|
+
no-mergeable-selectors: 1
|
|
73
|
+
no-misspelled-properties:
|
|
74
|
+
- 1
|
|
75
|
+
- extra-properties: []
|
|
76
|
+
no-qualifying-elements:
|
|
77
|
+
- 1
|
|
78
|
+
- allow-element-with-attribute: false
|
|
79
|
+
allow-element-with-class: false
|
|
80
|
+
allow-element-with-id: false
|
|
81
|
+
no-trailing-zero: 1
|
|
82
|
+
no-transition-all: 0
|
|
83
|
+
no-url-protocols: 1
|
|
84
|
+
no-vendor-prefixes:
|
|
85
|
+
- 1
|
|
86
|
+
- additional-identifiers: []
|
|
87
|
+
excluded-identifiers: []
|
|
88
|
+
placeholder-in-extend: 1
|
|
89
|
+
placeholder-name-format:
|
|
90
|
+
- 1
|
|
91
|
+
- convention: hyphenatedlowercase
|
|
92
|
+
property-sort-order:
|
|
93
|
+
- 1
|
|
94
|
+
- ignore-custom-properties: false
|
|
95
|
+
property-units:
|
|
96
|
+
- 1
|
|
97
|
+
- global:
|
|
98
|
+
- ch
|
|
99
|
+
- em
|
|
100
|
+
- ex
|
|
101
|
+
- rem
|
|
102
|
+
- cm
|
|
103
|
+
- in
|
|
104
|
+
- mm
|
|
105
|
+
- pc
|
|
106
|
+
- pt
|
|
107
|
+
- px
|
|
108
|
+
- q
|
|
109
|
+
- vh
|
|
110
|
+
- vw
|
|
111
|
+
- vmin
|
|
112
|
+
- vmax
|
|
113
|
+
- deg
|
|
114
|
+
- grad
|
|
115
|
+
- rad
|
|
116
|
+
- turn
|
|
117
|
+
- ms
|
|
118
|
+
- s
|
|
119
|
+
- Hz
|
|
120
|
+
- kHz
|
|
121
|
+
- dpi
|
|
122
|
+
- dpcm
|
|
123
|
+
- dppx
|
|
124
|
+
- '%'
|
|
125
|
+
per-property: {}
|
|
126
|
+
quotes:
|
|
127
|
+
- 1
|
|
128
|
+
- style: single
|
|
129
|
+
shorthand-values:
|
|
130
|
+
- 1
|
|
131
|
+
- allowed-shorthands:
|
|
132
|
+
- 1
|
|
133
|
+
- 2
|
|
134
|
+
- 3
|
|
135
|
+
- 4
|
|
136
|
+
single-line-per-selector: 1
|
|
137
|
+
space-after-bang:
|
|
138
|
+
- 1
|
|
139
|
+
- include: false
|
|
140
|
+
space-after-colon:
|
|
141
|
+
- 1
|
|
142
|
+
- include: true
|
|
143
|
+
space-after-comma:
|
|
144
|
+
- 1
|
|
145
|
+
- include: true
|
|
146
|
+
space-before-bang:
|
|
147
|
+
- 1
|
|
148
|
+
- include: true
|
|
149
|
+
space-before-brace:
|
|
150
|
+
- 1
|
|
151
|
+
- include: true
|
|
152
|
+
space-before-colon: 1
|
|
153
|
+
space-between-parens:
|
|
154
|
+
- 1
|
|
155
|
+
- include: false
|
|
156
|
+
trailing-semicolon: 1
|
|
157
|
+
url-quotes: 1
|
|
158
|
+
variable-for-property:
|
|
159
|
+
- 0
|
|
160
|
+
- properties: []
|
|
161
|
+
variable-name-format:
|
|
162
|
+
- 1
|
|
163
|
+
- allow-leading-underscore: true
|
|
164
|
+
convention: hyphenatedlowercase
|
|
165
|
+
zero-unit: 1
|
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# About The Mod Base Design System
|
|
2
|
+
|
|
3
|
+
Mod Base is a design system package for use on Modernize's S3
|
|
4
|
+
microsites. This differs from our mod-style library because we will be removing the use of bootstrap, and will no longer house "component styles." Component styles will live with their shared component HTML / JS.
|
|
5
|
+
|
|
6
|
+
## File Structure of Mod Base
|
|
7
|
+
|
|
8
|
+
src / fonts / modstyle-icons/ - icon font folder
|
|
9
|
+
- modicons-basic
|
|
10
|
+
- modicons-fill
|
|
11
|
+
- modicons-stroke
|
|
12
|
+
|
|
13
|
+
styles /
|
|
14
|
+
|
|
15
|
+
base /
|
|
16
|
+
- \_breakpoint-mixins
|
|
17
|
+
- \_colors
|
|
18
|
+
- \_flex
|
|
19
|
+
- \_fonts
|
|
20
|
+
- \_reset
|
|
21
|
+
- index
|
|
22
|
+
|
|
23
|
+
icons /
|
|
24
|
+
- \_basics
|
|
25
|
+
- \_fill
|
|
26
|
+
- \_stroke
|
|
27
|
+
- index
|
|
28
|
+
|
|
29
|
+
templates /
|
|
30
|
+
- \_dark-mode
|
|
31
|
+
|
|
32
|
+
.editorconfig - rules for code editors based on company's code guidelines
|
|
33
|
+
|
|
34
|
+
.sass-lint.yml - configuration for SASS/SCSS linter
|
|
35
|
+
|
|
36
|
+
package.json - Node modules used in mod-base
|
|
37
|
+
|
|
38
|
+
## Updating Mod Base
|
|
39
|
+
|
|
40
|
+
When updating mod-base, you will want to create a beta version to pull into a site for testing purposes (before publishing a new, stable version).
|
|
41
|
+
|
|
42
|
+
For more detailed instructions on updating NPM packages — checkout our documentation! [How to Update NPM Packages](https://quinstreet.atlassian.net/wiki/spaces/FEE/pages/7844036993/Npm+Packages#How-to-update-a-package)
|
package/package.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
|
|
2
|
+
|
|
3
|
+
To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
|
|
4
|
+
|
|
5
|
+
You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
|
|
6
|
+
|
|
7
|
+
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
body {
|
|
2
|
+
padding: 0;
|
|
3
|
+
margin: 0;
|
|
4
|
+
font-family: sans-serif;
|
|
5
|
+
font-size: 1em;
|
|
6
|
+
line-height: 1.5;
|
|
7
|
+
color: #555;
|
|
8
|
+
background: #fff;
|
|
9
|
+
}
|
|
10
|
+
h1 {
|
|
11
|
+
font-size: 1.5em;
|
|
12
|
+
font-weight: normal;
|
|
13
|
+
}
|
|
14
|
+
small {
|
|
15
|
+
font-size: .66666667em;
|
|
16
|
+
}
|
|
17
|
+
a {
|
|
18
|
+
color: #e74c3c;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
}
|
|
21
|
+
a:hover, a:focus {
|
|
22
|
+
box-shadow: 0 1px #e74c3c;
|
|
23
|
+
}
|
|
24
|
+
.bshadow0, input {
|
|
25
|
+
box-shadow: inset 0 -2px #e7e7e7;
|
|
26
|
+
}
|
|
27
|
+
input:hover {
|
|
28
|
+
box-shadow: inset 0 -2px #ccc;
|
|
29
|
+
}
|
|
30
|
+
input, fieldset {
|
|
31
|
+
font-family: sans-serif;
|
|
32
|
+
font-size: 1em;
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0;
|
|
35
|
+
border: 0;
|
|
36
|
+
}
|
|
37
|
+
input {
|
|
38
|
+
color: inherit;
|
|
39
|
+
line-height: 1.5;
|
|
40
|
+
height: 1.5em;
|
|
41
|
+
padding: .25em 0;
|
|
42
|
+
}
|
|
43
|
+
input:focus {
|
|
44
|
+
outline: none;
|
|
45
|
+
box-shadow: inset 0 -2px #449fdb;
|
|
46
|
+
}
|
|
47
|
+
.glyph {
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
width: 15em;
|
|
50
|
+
padding-bottom: 1em;
|
|
51
|
+
margin-right: 4em;
|
|
52
|
+
margin-bottom: 1em;
|
|
53
|
+
float: left;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
.liga {
|
|
57
|
+
width: 80%;
|
|
58
|
+
width: calc(100% - 2.5em);
|
|
59
|
+
}
|
|
60
|
+
.talign-right {
|
|
61
|
+
text-align: right;
|
|
62
|
+
}
|
|
63
|
+
.talign-center {
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
.bgc1 {
|
|
67
|
+
background: #f1f1f1;
|
|
68
|
+
}
|
|
69
|
+
.fgc1 {
|
|
70
|
+
color: #999;
|
|
71
|
+
}
|
|
72
|
+
.fgc0 {
|
|
73
|
+
color: #000;
|
|
74
|
+
}
|
|
75
|
+
p {
|
|
76
|
+
margin-top: 1em;
|
|
77
|
+
margin-bottom: 1em;
|
|
78
|
+
}
|
|
79
|
+
.mvm {
|
|
80
|
+
margin-top: .75em;
|
|
81
|
+
margin-bottom: .75em;
|
|
82
|
+
}
|
|
83
|
+
.mtn {
|
|
84
|
+
margin-top: 0;
|
|
85
|
+
}
|
|
86
|
+
.mtl, .mal {
|
|
87
|
+
margin-top: 1.5em;
|
|
88
|
+
}
|
|
89
|
+
.mbl, .mal {
|
|
90
|
+
margin-bottom: 1.5em;
|
|
91
|
+
}
|
|
92
|
+
.mal, .mhl {
|
|
93
|
+
margin-left: 1.5em;
|
|
94
|
+
margin-right: 1.5em;
|
|
95
|
+
}
|
|
96
|
+
.mhmm {
|
|
97
|
+
margin-left: 1em;
|
|
98
|
+
margin-right: 1em;
|
|
99
|
+
}
|
|
100
|
+
.mls {
|
|
101
|
+
margin-left: .25em;
|
|
102
|
+
}
|
|
103
|
+
.ptl {
|
|
104
|
+
padding-top: 1.5em;
|
|
105
|
+
}
|
|
106
|
+
.pbs, .pvs {
|
|
107
|
+
padding-bottom: .25em;
|
|
108
|
+
}
|
|
109
|
+
.pvs, .pts {
|
|
110
|
+
padding-top: .25em;
|
|
111
|
+
}
|
|
112
|
+
.unit {
|
|
113
|
+
float: left;
|
|
114
|
+
}
|
|
115
|
+
.unitRight {
|
|
116
|
+
float: right;
|
|
117
|
+
}
|
|
118
|
+
.size1of2 {
|
|
119
|
+
width: 50%;
|
|
120
|
+
}
|
|
121
|
+
.size1of1 {
|
|
122
|
+
width: 100%;
|
|
123
|
+
}
|
|
124
|
+
.clearfix:before, .clearfix:after {
|
|
125
|
+
content: " ";
|
|
126
|
+
display: table;
|
|
127
|
+
}
|
|
128
|
+
.clearfix:after {
|
|
129
|
+
clear: both;
|
|
130
|
+
}
|
|
131
|
+
.hidden-true {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
.textbox0 {
|
|
135
|
+
width: 3em;
|
|
136
|
+
background: #f1f1f1;
|
|
137
|
+
padding: .25em .5em;
|
|
138
|
+
line-height: 1.5;
|
|
139
|
+
height: 1.5em;
|
|
140
|
+
}
|
|
141
|
+
#testDrive {
|
|
142
|
+
display: block;
|
|
143
|
+
padding-top: 24px;
|
|
144
|
+
line-height: 1.5;
|
|
145
|
+
}
|
|
146
|
+
.fs0 {
|
|
147
|
+
font-size: 16px;
|
|
148
|
+
}
|
|
149
|
+
.fs1 {
|
|
150
|
+
font-size: 32px;
|
|
151
|
+
}
|
|
152
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
if (!('boxShadow' in document.body.style)) {
|
|
2
|
+
document.body.setAttribute('class', 'noBoxShadow');
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
document.body.addEventListener("click", function(e) {
|
|
6
|
+
var target = e.target;
|
|
7
|
+
if (target.tagName === "INPUT" &&
|
|
8
|
+
target.getAttribute('class').indexOf('liga') === -1) {
|
|
9
|
+
target.select();
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
(function() {
|
|
14
|
+
var fontSize = document.getElementById('fontSize'),
|
|
15
|
+
testDrive = document.getElementById('testDrive'),
|
|
16
|
+
testText = document.getElementById('testText');
|
|
17
|
+
function updateTest() {
|
|
18
|
+
testDrive.innerHTML = testText.value || String.fromCharCode(160);
|
|
19
|
+
if (window.icomoonLiga) {
|
|
20
|
+
window.icomoonLiga(testDrive);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function updateSize() {
|
|
24
|
+
testDrive.style.fontSize = fontSize.value + 'px';
|
|
25
|
+
}
|
|
26
|
+
fontSize.addEventListener('change', updateSize, false);
|
|
27
|
+
testText.addEventListener('input', updateTest, false);
|
|
28
|
+
testText.addEventListener('change', updateTest, false);
|
|
29
|
+
updateSize();
|
|
30
|
+
}());
|