Skip to content

Commit

Permalink
rename phoenix.scss to phoenix.css to avoid needing a pre-processor #61
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Oct 15, 2021
1 parent 1505878 commit eb4bd83
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 4 deletions.
51 changes: 51 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* This file is for your main application css. */
@import "./phoenix.css";

html {
height: 100%;
box-sizing: border-box;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

body {
position: relative;
margin: 0;
padding-bottom: 1rem;
min-height: 100%;
font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Alerts and form errors */
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}
.alert-info {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1;
}
.alert-warning {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #faebcc;
}
.alert-danger {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}
.alert p {
margin-bottom: 0;
}
.alert:empty {
display: none;
}

3 changes: 0 additions & 3 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* This file is for your main application css. */
@import "./phoenix.css";

html {
height: 100%;
box-sizing: border-box;
Expand Down
3 changes: 2 additions & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// We need to import the CSS so that webpack will load it.
// The MiniCssExtractPlugin is used to separate it out into
// its own CSS file.
import "../css/app.scss"
import "../css/phoenix.css"
import "../css/app.css"

// webpack automatically bundles all modules in your
// entry points. Those entry points can be configured
Expand Down

0 comments on commit eb4bd83

Please sign in to comment.