Skip to content

Commit

Permalink
Lint scss files, Add Github actions for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Apr 18, 2021
1 parent 97eb54b commit aa791c8
Show file tree
Hide file tree
Showing 10 changed files with 1,721 additions and 679 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Frontend

on:
push:
branches:
- 3.x
- master
paths:
- assets/**
- package.json
- yarn.lock
pull_request:
paths:
- assets/**
- package.json
- yarn.lock

jobs:
webpack-encore:
name: Webpack Encore

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Node 14
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install NPM dependencies
run: yarn install --frozen-lockfile

- name: Run Webpack Encore
run: yarn encore production
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
}
30 changes: 15 additions & 15 deletions assets/scss/flashmessage.scss
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
.read-more-state {
display: none;
display: none;
}

.read-more-target {
opacity: 0;
display: none;
max-height: 0;
font-size: 0;
transition: .40s ease;
opacity: 0;
display: none;
max-height: 0;
font-size: 0;
transition: 0.4s ease;
}

.read-more-state:checked ~ .read-more-wrap .read-more-target {
opacity: 1;
display: block;
font-size: inherit;
max-height: 999em;
opacity: 1;
display: block;
font-size: inherit;
max-height: 999em;
}

.read-more-trigger {
cursor: pointer;
margin: auto;
cursor: pointer;
margin: auto;
}

.alert .read-more-trigger {
position: relative;
left: calc(50% - 1rem);
}
position: relative;
left: calc(50% - 1rem);
}
Loading

0 comments on commit aa791c8

Please sign in to comment.