Skip to content

Commit

Permalink
Clean up SCSS as suggested by scss-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinalim committed Sep 5, 2018
1 parent 9258e8c commit 25d5112
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
@import '../variables';

.reveal-modal.product-image-upload {
width: 300px;
a.close-reveal-modal {

.close-reveal-modal {
color: $modal-close-button-color;
font-size: 23px;
color: #de6060;
right: 0.45rem;
top: 0.35rem;
right: .45rem;
top: .35rem;

:hover {
color: #bf4545;
color: $modal-close-button-hover-color;
}
}
div.image-preview {
//float: left;
}

label {
margin-top: 20px;
}
Expand Down
3 changes: 3 additions & 0 deletions app/assets/stylesheets/admin/variables.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ $medium-grey: #919191;
$pale-blue: #cee1f4;

$admin-table-border: $pale-blue;

$modal-close-button-color: #de6060;
$modal-close-button-hover-color: #bf4545;
1 change: 1 addition & 0 deletions app/assets/stylesheets/darkswarm/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import 'foundation';
@import 'foundation-icons';

@import 'base/*';
@import '*';
@import 'pages/*';

Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/darkswarm/base/colors.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$modal-background-color: #efefef;
$modal-content-background-color: #fff;
$modal-alert-link-color: #fff;
$modal-alert-link-hover-color: rgba(255, 255, 255, .7);
2 changes: 1 addition & 1 deletion app/assets/stylesheets/darkswarm/modals.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ dialog

// Medium and up - when modal IS NOT full screen
@media only screen and (min-width: 641px) {
top: 5%;
max-height: 90%;
top: 5%;
}
}

Expand Down
22 changes: 11 additions & 11 deletions app/assets/stylesheets/darkswarm/pages/login_modal.css.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
@import '../base/colors';

// Styling for login modal to style tabs
.reveal-modal.login-modal {
border-bottom-color: #efefef;
border-bottom-color: $modal-background-color;
}

.login-modal {
background: #efefef;
background: $modal-background-color;

.tabs-content {
background: #fff;
background: $modal-content-background-color;
padding-top: 10px;
}

.alert-box {
a {
color: white;
text-decoration: underline;
.alert-box a {
color: $modal-alert-link-color;
text-decoration: underline;

&:hover {
color: rgba(255, 255, 255, 0.7);
text-decoration: underline;
}
&:hover {
color: $modal-alert-link-hover-color;
text-decoration: underline;
}
}
}

0 comments on commit 25d5112

Please sign in to comment.