Skip to content

Commit

Permalink
Repalce sass loader by stylus loader
Browse files Browse the repository at this point in the history
  • Loading branch information
bierdok committed Mar 18, 2019
1 parent bc4f7ec commit a8cbfa9
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 824 deletions.
136 changes: 0 additions & 136 deletions assets/css/app.scss

This file was deleted.

94 changes: 94 additions & 0 deletions assets/css/app.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
[v-cloak]
display: none
*
user-select: none
cursor: default
&:focus
outline: none
body
margin: 0
position: relative
height: 100%
background-color: #000
overflow: hidden
.btn
position: fixed
border-radius: 50%
background: #fff
color: #495057
border: 0
margin: .5rem
padding: 10px
z-index: 20
&.next,
&.previous
visibility: hidden
@media (min-width: 576px)
&.next,
&.previous
visibility: visible
top: 50%
transform: translate(0, -50%)
right: 0
&.previous
left: 0
&.fullscreen
bottom: 0
left: 0
&.close
top: 0
right: 0
&.download
bottom: 0
right: 0
.preview
position: fixed
top: 0
right: 0
bottom: 0
left: 0
z-index: 2
background-color: #000
.progressive-image
position: absolute
top: 50%
left: 50%
z-index: 3
transform: translate(-50%, -50%)
.gallery
position: fixed
top: 0
bottom: 0
left: 0
right: 0
height: 100%
overflow: auto
background: #000
select
position: fixed
bottom: 8px
right: 24px
z-index: 1
display: block
height: calc(1.5em + .75rem + 2px)
padding: .375rem .75rem
font-size: 1rem
font-weight: 400
line-height: 1.5
color: #495057
background-color: #fff
background-clip: padding-box
border: 1px solid #ced4da
border-radius: .25rem
word-wrap: normal
text-transform: none
img
display: inline-block
vertical-align: top
width: 33.3333%
@media (min-width: 576px)
width: 25%
@media (min-width: 768px)
width: 20%
@media (min-width: 992px)
width: 10%
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../css/app.scss'
import '../css/app.styl'

import {sprintf} from 'sprintf-js'
import FastClick from 'fastclick'
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@
"filesize": "^4.1.2",
"image-preloader": "^1.1.1",
"moment": "^2.24.0",
"node-sass": "^4.11.0",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"sass-loader": "^7.1.0",
"sprintf-js": "^1.1.2",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"vue": "^2.6.8",
"vue-fullscreen": "^2.1.5",
"vue-lazyload": "^1.2.6",
"vue-loader": "^15.0.11",
"vue-material-icon": "^1.0.1",
"vue-progressive-image": "^3.2.0",
"vue-template-compiler": "^2.6.8",
"vue2-touch": "^1.0.8",
"vue2-touch": "^1.0.8"
},
"devDependencies": {
"webpack-notifier": "^1.6.0"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Encore
.setOutputPath('public/build/')
.setPublicPath('/build')
.addEntry('app', './assets/js/app.js')
.enableSassLoader()
.enableStylusLoader()
.enablePostCssLoader()
.enableVueLoader()
.splitEntryChunks()
Expand Down
Loading

0 comments on commit a8cbfa9

Please sign in to comment.