Skip to content

Commit

Permalink
Move more common styles to _base
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Jul 12, 2018
1 parent a066a79 commit 76979d2
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 263 deletions.
42 changes: 42 additions & 0 deletions src/css/_base.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "./mixins/cancel-link";
@import "./mixins/pie-clearfix";
@import "./mixins/inline-block";
@import "./mixins/shepherd-button";
@import "./helpers/popper";
@import "./helpers/popper-theme-arrows";

Expand Down Expand Up @@ -53,5 +54,46 @@
@include cancel-link;
}
}

footer {
padding: 0 1em 1em;

.#{$theme-prefix}-buttons {
list-style: none;
margin: 0;
padding: 0;
text-align: right;

li {
display: inline;
margin: 0;
padding: 0;

.shepherd-button {
@include inline-block;

cursor: pointer;
margin: 0 0.5em 0 0;
}

&:last-child .shepherd-button {
margin-right: 0;
}
}
}
}

.#{$theme-prefix}-text {
padding: 1em;

p {
line-height: 1.3em;
margin: 0 0 0.5em;

&:last-child {
margin-bottom: 0;
}
}
}
}
}
19 changes: 19 additions & 0 deletions src/css/mixins/_shepherd-button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@import '../variables';

@mixin shepherd-button {
background: #3288e6;
border: 0;
border-radius: 3px;
color: $color-white;
font-family: inherit;
font-size: 0.8em;
letter-spacing: 0.1em;
line-height: 1em;
padding: 0.75em 2em;
text-transform: uppercase;

&.shepherd-button-secondary {
background: #eeeeee;
color: $color-grey;
}
}
32 changes: 0 additions & 32 deletions src/css/shepherd-theme-arrows-plain-buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,44 +16,12 @@ $use-drop-shadow: true;
border-radius: 5px 5px 0 0;
}

.#{$theme-prefix}-text {
padding: 1em;

p {
line-height: 1.3em;
margin: 0 0 0.5em;

&:last-child {
margin-bottom: 0;
}
}
}

footer {
padding: 0 1em 1em;

.#{$theme-prefix}-buttons {
list-style: none;
margin: 0;
padding: 0;
text-align: right;

li {
display: inline;
margin: 0;
padding: 0;

.shepherd-button {
@include inline-block;

cursor: pointer;
margin: 0 0.5em 0 0;
text-decoration: none;
}

&:last-child .shepherd-button {
margin-right: 0;
}
}
}
}
Expand Down
48 changes: 1 addition & 47 deletions src/css/shepherd-theme-arrows.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,57 +16,11 @@ $use-drop-shadow: true;
border-radius: 5px 5px 0 0;
}

.#{$theme-prefix}-text {
padding: 1em;

p {
line-height: 1.3em;
margin: 0 0 0.5em;

&:last-child {
margin-bottom: 0;
}
}
}

footer {
padding: 0 1em 1em;

.#{$theme-prefix}-buttons {
list-style: none;
margin: 0;
padding: 0;
text-align: right;

li {
display: inline;
margin: 0;
padding: 0;

.shepherd-button {
@include inline-block;

background: #3288e6;
border: 0;
border-radius: 3px;
color: $color-white;
cursor: pointer;
font-family: inherit;
font-size: 0.8em;
letter-spacing: 0.1em;
line-height: 1em;
margin: 0 0.5em 0 0;
padding: 0.75em 2em;
text-transform: uppercase;

&.shepherd-button-secondary {
background: #eeeeee;
color: $color-grey;
}
}

&:last-child .shepherd-button {
margin-right: 0;
@include shepherd-button;
}
}
}
Expand Down
48 changes: 1 addition & 47 deletions src/css/shepherd-theme-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,57 +22,11 @@ $use-drop-shadow: false;
border-radius: 5px 5px 0 0;
}

.#{$theme-prefix}-text {
padding: 1em;

p {
line-height: 1.3em;
margin: 0 0 0.5em;

&:last-child {
margin-bottom: 0;
}
}
}

footer {
padding: 0 1em 1em;

.#{$theme-prefix}-buttons {
list-style: none;
margin: 0;
padding: 0;
text-align: right;

li {
display: inline;
margin: 0;
padding: 0;

.shepherd-button {
@include inline-block;

background: #3288e6;
border: 0;
border-radius: 3px;
color: $color-white;
cursor: pointer;
font-family: inherit;
font-size: 0.8em;
letter-spacing: 0.1em;
line-height: 1em;
margin: 0 0.5em 0 0;
padding: 0.75em 2em;
text-transform: uppercase;

&.shepherd-button-secondary {
background: #eeeeee;
color: $color-grey;
}
}

&:last-child .shepherd-button {
margin-right: 0;
@include shepherd-button;
}
}
}
Expand Down
48 changes: 1 addition & 47 deletions src/css/shepherd-theme-default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,57 +22,11 @@ $use-drop-shadow: false;
border-radius: 5px 5px 0 0;
}

.#{$theme-prefix}-text {
padding: 1em;

p {
line-height: 1.3em;
margin: 0 0 0.5em;

&:last-child {
margin-bottom: 0;
}
}
}

footer {
padding: 0 1em 1em;

.#{$theme-prefix}-buttons {
list-style: none;
margin: 0;
padding: 0;
text-align: right;

li {
display: inline;
margin: 0;
padding: 0;

.shepherd-button {
@include inline-block;

background: #3288e6;
border: 0;
border-radius: 3px;
color: $color-white;
cursor: pointer;
font-family: inherit;
font-size: 0.8em;
letter-spacing: 0.1em;
line-height: 1em;
margin: 0 0.5em 0 0;
padding: 0.75em 2em;
text-transform: uppercase;

&.shepherd-button-secondary {
background: #eeeeee;
color: $color-grey;
}
}

&:last-child .shepherd-button {
margin-right: 0;
@include shepherd-button;
}
}
}
Expand Down
46 changes: 1 addition & 45 deletions src/css/shepherd-theme-square-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,57 +24,13 @@ $use-drop-shadow: false;
border-radius: 0;
}

.#{$theme-prefix}-text {
padding: 1em;

p {
line-height: 1.3em;
margin: 0 0 0.5em;

&:last-child {
margin-bottom: 0;
}
}
}

footer {
padding: 0 1em 1em;

.#{$theme-prefix}-buttons {
list-style: none;
margin: 0;
padding: 0;
text-align: right;

li {
display: inline;
margin: 0;
padding: 0;

.shepherd-button {
@include inline-block;
@include shepherd-button;

background: #3288e6;
border: 0;
border-radius: 0;
color: $color-white;
cursor: pointer;
font-family: inherit;
font-size: 0.8em;
letter-spacing: 0.1em;
line-height: 1em;
margin: 0 0.5em 0 0;
padding: 0.75em 2em;
text-transform: uppercase;

&.shepherd-button-secondary {
background: #eeeeee;
color: $color-grey;
}
}

&:last-child .shepherd-button {
margin-right: 0;
}
}
}
Expand Down
Loading

0 comments on commit 76979d2

Please sign in to comment.