Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint scss files, Add Github actions for frontend #7081

Merged
merged 3 commits into from
Apr 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
jordisala1991 marked this conversation as resolved.
Show resolved Hide resolved

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
uses: bahmutov/npm-install@v1

- 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