-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): added visual css bundle
- Loading branch information
1 parent
f9ee054
commit 0d3294d
Showing
9 changed files
with
102 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@mixin size($width, $height) { | ||
width: $width; | ||
height: $height; | ||
} | ||
|
||
@mixin square($size) { | ||
@include size($size, $size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import './body'; | ||
|
||
@mixin mosaic-visual() { | ||
|
||
// include specific mixins | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@import '../styles/typography/variables'; | ||
@import '../styles/common/size'; | ||
|
||
|
||
// HTML & Body reset | ||
html, body { | ||
@include square(100%); | ||
} | ||
|
||
// Document | ||
// | ||
// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`. | ||
// 2. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS. | ||
// 3. Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so | ||
// we force a non-overlapping, non-auto-hiding scrollbar to counteract. | ||
// 4. Change the default tap highlight to be completely transparent in iOS. | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; // 1 | ||
} | ||
|
||
html { | ||
-webkit-text-size-adjust: 100%; // 2 | ||
-ms-text-size-adjust: 100%; // 2 | ||
|
||
-ms-overflow-style: scrollbar; // 3 | ||
|
||
-moz-osx-font-smoothing: grayscale; | ||
|
||
// Helps fonts on OSX looks more consistent with other systems | ||
// Isn't currently in button styles due to performance concerns | ||
-webkit-font-smoothing: antialiased; | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 4 | ||
-webkit-touch-callout: none; | ||
} | ||
|
||
// Body | ||
// | ||
// 1. remove the margin in all browsers. | ||
|
||
body { | ||
font-family: map-get(map-get($fonts, 'base'), font-family); | ||
margin: 0; // 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import '../all-visual'; | ||
|
||
@include mosaic-visual(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters