diff options
author | 2020-06-02 15:31:53 +0200 | |
---|---|---|
committer | 2020-06-02 15:31:53 +0200 | |
commit | 3948ad663323ca479275166658c52fe15e905adc (patch) | |
tree | 875934476f94825bc7e2a76e17d18198fb2cab79 | |
parent | Fix the links to the static assets in the example (diff) | |
download | tyrian-theme-3948ad663323ca479275166658c52fe15e905adc.tar.gz tyrian-theme-3948ad663323ca479275166658c52fe15e905adc.tar.bz2 tyrian-theme-3948ad663323ca479275166658c52fe15e905adc.zip |
Add additional-listgroup-link component
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r-- | package.json | 4 | ||||
-rw-r--r-- | src/scss/components/additional-listgroup-link.scss | 19 |
2 files changed, 21 insertions, 2 deletions
diff --git a/package.json b/package.json index 7a7cd1a..b12f82e 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "clean:dist": "rm -rf dist && mkdir -p dist", "css:tyrian:dist": "npm-run-all css:tyrian:build css:tyrian:prefix css:tyrian:minify", "css:tyrian:build": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js src/scss/ -o dist", - "css:tyrian:prefix": "postcss dist/tyrian.css --use autoprefixer --replace && postcss dist/components/searchbars.css --use autoprefixer --replace", - "css:tyrian:minify": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/tyrian.min.css dist/tyrian.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/components/searchbars.min.css dist/components/searchbars.css", + "css:tyrian:prefix": "postcss dist/tyrian.css --use autoprefixer --replace && postcss dist/components/searchbars.css --use autoprefixer --replace && postcss dist/components/additional-listgroup-link.css --use autoprefixer --replace", + "css:tyrian:minify": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/tyrian.min.css dist/tyrian.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/components/searchbars.min.css dist/components/searchbars.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/components/additional-listgroup-link.min.css dist/components/additional-listgroup-link.css", "copy:assets": "npm-run-all copy:js copy:img copy:fonts copy:tyrian:assets", "copy:js": "cp src/js/*.js dist", "copy:img": "cp src/img/*.* dist", diff --git a/src/scss/components/additional-listgroup-link.scss b/src/scss/components/additional-listgroup-link.scss new file mode 100644 index 0000000..b5ddc13 --- /dev/null +++ b/src/scss/components/additional-listgroup-link.scss @@ -0,0 +1,19 @@ +.list-group-item-additional-link { + cursor: pointer; + color: black; + text-decoration: none; + position: absolute; + display: inline-block; + right: 10px; + top: 5px; + z-index: 9999; +} + +.list-group-item-base-link, .list-group-item-base-link:hover { + cursor: pointer; + color: black; + text-decoration: none; + width: 100%; + display: block; + padding: 10px 15px; +}
\ No newline at end of file |