Skip to content

Commit

Permalink
Move alerts into new CSS file from custom
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRubocki committed Mar 2, 2022
1 parent 78a795f commit 5f00118
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 81 deletions.
42 changes: 42 additions & 0 deletions app/assets/stylesheets/alerts.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.alert {
ul {
margin: 0 0 30px 0;
}
}

.alert .alert-heading {
margin: 0 0 10px 0;
}

.alert ul {
margin: 0px;
}

// Devise alerts
.alert-error {
background-color: #f2dede;
border-color: #eed3d7;
color: #b94a48;
text-align: left;
}

.alert-alert {
background-color: #f2dede;
border-color: #eed3d7;
color: #b94a48;
text-align: left;
}

.alert-success {
background-color: #dff0d8;
border-color: #d6e9c6;
color: #468847;
text-align: left;
}

.alert-notice {
background-color: #dff0d8;
border-color: #d6e9c6;
color: #468847;
text-align: left;
}
81 changes: 0 additions & 81 deletions app/assets/stylesheets/custom.css.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,49 +46,6 @@ ul.pagination {
}
}

.alert {
ul {
margin: 0 0 30px 0;
}
}

.alert .alert-heading {
margin: 0 0 10px 0;
}

.alert ul {
margin: 0px;
}

// Devise alerts

.alert-error {
background-color: #f2dede;
border-color: #eed3d7;
color: #b94a48;
text-align: left;
}

.alert-alert {
background-color: #f2dede;
border-color: #eed3d7;
color: #b94a48;
text-align: left;
}

.alert-success {
background-color: #dff0d8;
border-color: #d6e9c6;
color: #468847;
text-align: left;
}

.alert-notice {
background-color: #dff0d8;
border-color: #d6e9c6;
color: #468847;
text-align: left;
}

// Header

Expand Down Expand Up @@ -119,44 +76,6 @@ a.navbar-brand img {
}
}

// Forms

<%# input, textarea, select, .uneditable-input {
border: 1px solid #bbb;
width: 100%;
margin-bottom: 15px;
@include box_sizing;
} %>

<%# input[type="checkbox"] {
margin-bottom: 15px;
box-shadow: none !important;
} %>

<%# textarea {
resize: vertical;
} %>

<%# .field_with_errors {
@extend .has-error;
.form-control {
color: $state-danger-text;
}
} %>

<%# .g-recaptcha {
margin-bottom: 15px;
} %>

<%# form img {
margin-bottom: 20px;
}
label.form-label-photo {
display: block;
} %>


// Model indexes

ul.indexing {
Expand Down

0 comments on commit 5f00118

Please sign in to comment.