Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds box-sizing: border-box; as a wildcard to base.css. Removes box-s… #529

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/base/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@
* Extra rules that Pure adds on top of Normalize.css
*/

/**
* Adds box-sizing: border-box; to html.
* Then applies inherit value to the universal selector,
* allowing for module-specific box-sizing overrides.
*/
html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*,
*:before,
*:after {
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit;
}

/**
* Always hide an element when it has the `hidden` HTML attribute.
*/
Expand Down
3 changes: 0 additions & 3 deletions src/buttons/css/buttons-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

/* Firefox: Get rid of the inner focus border */
Expand Down
6 changes: 0 additions & 6 deletions src/forms/css/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ so we can ignore the csslint warning.
box-shadow: inset 0 1px 3px #ddd;
border-radius: 4px;
vertical-align: middle;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

/*
Expand All @@ -43,9 +40,6 @@ since IE8 won't execute CSS that contains a CSS3 selector.
border: 1px solid #ccc;
box-shadow: inset 0 1px 3px #ddd;
border-radius: 4px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}


Expand Down
6 changes: 0 additions & 6 deletions src/menus/css/menus-core.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
/*csslint adjoining-classes: false, box-model:false*/
.pure-menu {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

.pure-menu-fixed {
position: fixed;
left: 0;
Expand Down