Skip to content

Commit

Permalink
Button refactor
Browse files Browse the repository at this point in the history
Refs #3101 & #916
  • Loading branch information
PaulAdamDavis committed Jul 15, 2014
1 parent 1fead26 commit b070d61
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 37 deletions.
7 changes: 2 additions & 5 deletions core/client/assets/sass/layouts/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ body.zen {
right: -3px;
}

button {
.button-save {
min-height: 30px;
height: 30px;
line-height: 12px;
Expand All @@ -473,15 +473,12 @@ body.zen {
border-top: rgba(255,255,255,0.4) 1px solid;
}

.button-link {
border-top: none;
}

.options {
width: 30px;
min-height: 30px;
height: 30px;
margin-top: 5px;
border-top: rgba(255,255,255,0.4) 1px solid;
}

.splitbutton-save,
Expand Down
6 changes: 6 additions & 0 deletions core/client/assets/sass/layouts/modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,10 @@
line-height: 16px;
}

}

.modal-footer {
.reject-button-class {
@extend .button;
}
}
4 changes: 2 additions & 2 deletions core/client/assets/sass/layouts/post-settings-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
@include transition;
position: relative;
top: 1px;
cursor: pointer;

&:hover,
&.active {
Expand Down Expand Up @@ -160,7 +159,8 @@
.delete {
display: block;
padding: 10px 15px;
cursor: pointer;
width: 100%;
text-align: left;
@include icon($i-trash) {
position: relative;
top: -1px;
Expand Down
2 changes: 1 addition & 1 deletion core/client/assets/sass/layouts/users.scss
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@
border-radius: 100%;
overflow: hidden;
padding: 3px;
// border: 5px solid #fff;
background: #fff;
z-index: 2;

Expand Down Expand Up @@ -304,6 +303,7 @@
.edit-user-image {
@include position(absolute, 3px 3px 3px 3px);
border-radius: 100%;
width: calc(100% - 6px);
background: rgba(0,0,0,0.5);
opacity: 0;
color: #fff;
Expand Down
39 changes: 25 additions & 14 deletions core/client/assets/sass/modules/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,24 @@
*
* Table of Contents
*
* Button Reset
* Buttons
* Split Buttons
*/


/* ==========================================================================
Button Reset
========================================================================== */

button {
border: 0;
padding: 0;
background: transparent;
@include transition(all 0.15s ease-in-out);
}


/* ==========================================================================
Buttons
========================================================================== */
Expand All @@ -18,8 +31,6 @@
display: inline-block;
padding: 0.9em 1.37em;

cursor: pointer;

text-decoration: none;
color: #fff;
font-size: 11px; // Hack because Firefox sucks.
Expand Down Expand Up @@ -109,9 +120,9 @@


// This is the default button style
.button,
button,
input[type="button"] {
.button {
// button,
// input[type="button"] {
@extend %btn;
color:#777;
font-weight: normal;
Expand All @@ -138,9 +149,9 @@ input[type="button"] {
}

// Button for save/next/continue/confirm actions
.button-save,
button[type="submit"],
input[type="submit"] {
.button-save {
// button[type="submit"],
// input[type="submit"] {
@extend %btn;
background: $blue;
box-shadow: none;
Expand All @@ -151,9 +162,9 @@ input[type="submit"] {
}

// Button for actions which add stuff
.button-add,
button[type="submit"].button-add,
input[type="submit"].button-add {
.button-add {
// button[type="submit"].button-add,
// input[type="submit"].button-add {
@extend %btn;
background: $green;
&:hover,
Expand All @@ -163,9 +174,9 @@ input[type="submit"].button-add {
}

// Button for deleting/removing stuff
.button-delete,
button[type="reset"],
input[type="reset"] {
.button-delete {
// button[type="reset"],
// input[type="reset"] {
@extend %btn;
background: $red;
box-shadow: none;
Expand Down
5 changes: 0 additions & 5 deletions core/client/assets/sass/modules/dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@

} // .dropdown

a.dropdown,
button.dropdown {
cursor: pointer;
}


/* ==========================================================================
Dropdown Show & Hide
Expand Down
5 changes: 3 additions & 2 deletions core/client/assets/sass/modules/floatingheaders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
//Transparent gradient to make bg fade out as it goes out the top.
@include linear-gradient(top, white 0%, white 25%, rgba(255,255,255,0.9) 100%, $fallback: transparent);

button,
// button,
.button {
display: inline-block;
font-size: 10px;
Expand Down Expand Up @@ -60,7 +60,8 @@
font-size: 0.85em;
}

a {
a,
button {
color: $brown;
&:hover {
color: $darkgrey;
Expand Down
1 change: 0 additions & 1 deletion core/client/assets/sass/modules/notifications.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
right: 9px;
};
color: rgba(255,255,255,0.6);
cursor: pointer;
&:hover {
color: #fff;
}
Expand Down
14 changes: 7 additions & 7 deletions core/client/docs/dist/css/ghost-ui.min.css

Large diffs are not rendered by default.

0 comments on commit b070d61

Please sign in to comment.