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

Use color variables and SASS everywhere #581

Merged
merged 3 commits into from
May 1, 2017
Merged
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
1 change: 1 addition & 0 deletions editor/assets/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ $admin-bar-height-big: 46px;
$admin-sidebar-width: 160px;
$admin-sidebar-width-big: 190px;
$admin-sidebar-width-collapsed: 36px;
$shadow-popover: 0px 3px 20px rgba( $dark-gray-900, .1 ), 0px 1px 3px rgba( $dark-gray-900, .1 );

/* Media Queries */

Expand Down
2 changes: 1 addition & 1 deletion editor/assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body.toplevel_page_gutenberg {
background: #fff;
background: $white;

#update-nag, .update-nag {
position: absolute;
Expand Down
8 changes: 4 additions & 4 deletions editor/components/block-switcher/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.editor-block-switcher {
border: 1px solid $light-gray-500;
box-shadow: 0px 3px 20px rgba( 18, 24, 30, .1 ), 0px 1px 3px rgba( 18, 24, 30, .1 );
box-shadow: $shadow-popover;
background-color: $white;
margin-right: 10px;
font-family: $default-font;
Expand Down Expand Up @@ -36,9 +36,9 @@
position: absolute;
top: 43px;
margin-left: -1px;
box-shadow: 0px 3px 20px rgba( 18, 24, 30, .1 ), 0px 1px 3px rgba( 18, 24, 30, .1 );
border: 1px solid #e0e5e9;
background: #fff;
box-shadow: $shadow-popover;
border: 1px solid $light-gray-500;
background: $white;

input {
font-size: 13px;
Expand Down
6 changes: 3 additions & 3 deletions editor/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
transition: color .2s ease;

&:hover {
color: #00aadc;
color: $blue-medium;
}
}

.editor-inserter__menu {
width: 280px;
box-shadow: 0px 3px 20px rgba( 18, 24, 30, .1 ), 0px 1px 3px rgba( 18, 24, 30, .1 );
box-shadow: $shadow-popover;
border: 1px solid $light-gray-500;
position: absolute;
left: -122px;
background: #fff;
background: $white;

&.is-top {
bottom: 42px;
Expand Down
2 changes: 1 addition & 1 deletion editor/components/toolbar/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.editor-toolbar {
margin: 0;
border: 1px solid $light-gray-500;
box-shadow: 0px 3px 20px rgba( 18, 24, 30, .1 ), 0px 1px 3px rgba( 18, 24, 30, .1 );
box-shadow: $shadow-popover;
background-color: $white;
}

Expand Down