diff options
author | mismith0227 <doraepon2216@gmail.com> | 2017-08-11 05:46:36 +0300 |
---|---|---|
committer | mismith0227 <doraepon2216@gmail.com> | 2017-08-11 05:46:36 +0300 |
commit | 75064f32359058fbea10b3c7420a880b142e628a (patch) | |
tree | f9a841a064896ad061a24e66df104df5f6898b1a /src/css | |
parent | 28ee15d595b4eaec7e15c58c071721f8589b8acd (diff) |
header
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/foundation/base/base.css | 19 | ||||
-rw-r--r-- | src/css/foundation/base/normalize.css | 447 | ||||
-rw-r--r-- | src/css/foundation/variable/breakpoint.css | 4 | ||||
-rw-r--r-- | src/css/foundation/variable/color.css | 6 | ||||
-rw-r--r-- | src/css/foundation/variable/font-family.css | 3 | ||||
-rw-r--r-- | src/css/layout/header.css | 6 | ||||
-rw-r--r-- | src/css/object/component/links.css | 24 | ||||
-rw-r--r-- | src/css/object/project/icon.css | 4 | ||||
-rw-r--r-- | src/css/object/project/subtitle.css | 5 | ||||
-rw-r--r-- | src/css/object/project/title.css | 8 | ||||
-rw-r--r-- | src/css/style.css | 26 |
11 files changed, 540 insertions, 12 deletions
diff --git a/src/css/foundation/base/base.css b/src/css/foundation/base/base.css new file mode 100644 index 0000000..5246d21 --- /dev/null +++ b/src/css/foundation/base/base.css @@ -0,0 +1,19 @@ +body { + font-size: 62.5%; + font-family: var(--SanFrancisco); +} + +a { + color: var(--link-color); + text-decoration: none; +} + +ul, +ol { + margin: 0; + padding: 0; +} + +li { + list-style: none; +} diff --git a/src/css/foundation/base/normalize.css b/src/css/foundation/base/normalize.css new file mode 100644 index 0000000..fa4e73d --- /dev/null +++ b/src/css/foundation/base/normalize.css @@ -0,0 +1,447 @@ +/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in + * IE on Windows Phone and in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers (opinionated). + */ + +body { + margin: 0; +} + +/** + * Add the correct display in IE 9-. + */ + +article, +aside, +footer, +header, +nav, +section { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + * 1. Add the correct display in IE. + */ + +figcaption, +figure, +main { /* 1 */ + display: block; +} + +/** + * Add the correct margin in IE 8. + */ + +figure { + margin: 1em 40px; +} + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * 1. Remove the gray background on active links in IE 10. + * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. + */ + +a { + background-color: transparent; /* 1 */ + -webkit-text-decoration-skip: objects; /* 2 */ +} + +/** + * 1. Remove the bottom border in Chrome 57- and Firefox 39-. + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Prevent the duplicate application of `bolder` by the next rule in Safari 6. + */ + +b, +strong { + font-weight: inherit; +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font style in Android 4.3-. + */ + +dfn { + font-style: italic; +} + +/** + * Add the correct background and color in IE 9-. + */ + +mark { + background-color: #ff0; + color: #000; +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +audio, +video { + display: inline-block; +} + +/** + * Add the correct display in iOS 4-7. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Remove the border on images inside links in IE 10-. + */ + +img { + border-style: none; +} + +/** + * Hide the overflow in IE. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers (opinionated). + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: sans-serif; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` + * controls in Android 4. + * 2. Correct the inability to style clickable types in iOS and Safari. + */ + +button, +html [type="button"], /* 1 */ +[type="reset"], +[type="submit"] { + -webkit-appearance: button; /* 2 */ +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * 1. Add the correct display in IE 9-. + * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Remove the default vertical scrollbar in IE. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10-. + * 2. Remove the padding in IE 10-. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-cancel-button, +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in IE 9-. + * 1. Add the correct display in Edge, IE, and Firefox. + */ + +details, /* 1 */ +menu { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Scripting + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +canvas { + display: inline-block; +} + +/** + * Add the correct display in IE. + */ + +template { + display: none; +} + +/* Hidden + ========================================================================== */ + +/** + * Add the correct display in IE 10-. + */ + +[hidden] { + display: none; +} diff --git a/src/css/foundation/variable/breakpoint.css b/src/css/foundation/variable/breakpoint.css new file mode 100644 index 0000000..626ef91 --- /dev/null +++ b/src/css/foundation/variable/breakpoint.css @@ -0,0 +1,4 @@ +@custom-media --lg (min-width:1024px); +@custom-media --lmd (min-width:768px); +@custom-media --md (max-width:767px); +@custom-media --sm (min-width:640px); diff --git a/src/css/foundation/variable/color.css b/src/css/foundation/variable/color.css new file mode 100644 index 0000000..d6f447f --- /dev/null +++ b/src/css/foundation/variable/color.css @@ -0,0 +1,6 @@ +:root { + --bg-color: #fff; + --color-text: #555; + --link-color: #337ab7; + --link-hover: #137b75; +} diff --git a/src/css/foundation/variable/font-family.css b/src/css/foundation/variable/font-family.css new file mode 100644 index 0000000..7091c1c --- /dev/null +++ b/src/css/foundation/variable/font-family.css @@ -0,0 +1,3 @@ +:root { + --SanFrancisco: -apple-system, 'BlinkMacSystemFont', "Helvetica Neue", Helvetica, "Roboto", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; +} diff --git a/src/css/layout/header.css b/src/css/layout/header.css new file mode 100644 index 0000000..c13f710 --- /dev/null +++ b/src/css/layout/header.css @@ -0,0 +1,6 @@ +.l-header { + display: block; + padding: 20px 0; + text-align: center; + background: #111; +} diff --git a/src/css/object/component/links.css b/src/css/object/component/links.css new file mode 100644 index 0000000..154d2c7 --- /dev/null +++ b/src/css/object/component/links.css @@ -0,0 +1,24 @@ +.c-links { + display: flex; + justify-content: center; + flex-wrap: wrap; + margin-top: 8px; + & a { + display: flex; + justify-content: center; + align-items: center; + width: 30px; + height: 30px; + border: 1px solid #ccc; + border-radius: 50%; + color: #ccc; + } + &__item { + margin: 16px 8px 0; + } + &__icon { + width: 16px; + height: 16px; + fill: currentColor; + } +} diff --git a/src/css/object/project/icon.css b/src/css/object/project/icon.css new file mode 100644 index 0000000..c3d8809 --- /dev/null +++ b/src/css/object/project/icon.css @@ -0,0 +1,4 @@ +.icon { + width: 32px; + height: 32px; +} diff --git a/src/css/object/project/subtitle.css b/src/css/object/project/subtitle.css new file mode 100644 index 0000000..e8a8139 --- /dev/null +++ b/src/css/object/project/subtitle.css @@ -0,0 +1,5 @@ +.p-subtitle { + margin: 12px 0 0 0; + color: #fff; + font-size: 1.2rem; +} diff --git a/src/css/object/project/title.css b/src/css/object/project/title.css new file mode 100644 index 0000000..d841f26 --- /dev/null +++ b/src/css/object/project/title.css @@ -0,0 +1,8 @@ +.p-title { + margin: 0; + font-size: 2.0rem; + &__link { + color: #fff; + font-weight: normal; + } +} diff --git a/src/css/style.css b/src/css/style.css index 61adc09..85c0365 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -1,14 +1,16 @@ -body { - background: #fff; -} +/* foundation */ +@import "foundation/variable/breakpoint.css"; +@import "foundation/variable/color.css"; +@import "foundation/variable/font-family.css"; +@import "foundation/base/normalize.css"; +@import "foundation/base/base.css"; -h1 { - & a { - color: #333; - } -} +/* layout */ +@import "layout/header.css"; -svg { - width: 32px; - height: 32px; -} +/* object */ +@import "object/component/links.css"; + +@import "object/project/title.css"; +@import "object/project/subtitle.css"; +@import "object/project/icon.css"; |