docker: avoid rebuilding CSS/JS assets on every commit.
Restructure the Dockerfile and the CSS/JS files so that we only rebuild the CSS and JS when they change, not on every commit. Before it took several minutes to rebuild the Docker image after every commit, even when the JS/CSS files didn't change. This also made pulling images slower. This requires refactoring the CSS and JS to not use embedded Ruby (ERB) templates, since this made the CSS and JS dependent on the Ruby codebase, which is why we had to rebuild the assets after every Ruby change.
This commit is contained in:
27
app/javascript/src/styles/specific/mod_queue.scss
Normal file
27
app/javascript/src/styles/specific/mod_queue.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
div#c-modqueue {
|
||||
div.post {
|
||||
padding: 1em;
|
||||
overflow: hidden;
|
||||
|
||||
aside.column {
|
||||
@media (min-width: 660px) {
|
||||
padding-right: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
section.column {
|
||||
span.info {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
.quick-mod {
|
||||
display: inline-block;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.post-flags-row {
|
||||
margin-top: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user