From 3948ad663323ca479275166658c52fe15e905adc Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Tue, 2 Jun 2020 15:31:53 +0200 Subject: Add additional-listgroup-link component Signed-off-by: Max Magorsch --- package.json | 4 ++-- src/scss/components/additional-listgroup-link.scss | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 src/scss/components/additional-listgroup-link.scss 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 -- cgit v1.2.3-65-gdbad