Fixing some bugs

This commit is contained in:
Fabian 2019-07-03 23:11:31 +02:00
parent 0161220d5a
commit 68284de6bf
3 changed files with 6 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/theme",
"version": "1.0.3",
"version": "1.0.6",
"description": "",
"main": " ",
"files": [
@ -9,7 +9,8 @@
],
"scripts": {
"build": "sass src/base.scss:out/base.css src/dark.scss:out/dark.css src/light.scss:out/light.css",
"watch": "sass --watch src/base.scss:out/base.css src/dark.scss:out/dark.css src/light.scss:out/light.css"
"watch": "sass --watch src/base.scss:out/base.css src/dark.scss:out/dark.css src/light.scss:out/light.css",
"prepublishOnly": "npm run build"
},
"author": "Fabian Stamm <dev@fabianstamm.de>",
"license": "ISC",

View File

@ -20,8 +20,8 @@ $button-color: #CCCCCC !default;
}
:root {
--background: $background;
--on-background: $on-background;
--background: #{$background};
--on-background: #{$on-background};
}
$default-font-size: 1rem;
@ -34,8 +34,6 @@ $default-font-size: 1rem;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
font-size: $default-font-size;
transition: .2s ease-in-out;
}
html,

View File

@ -5,7 +5,7 @@ $on-background: white;
$disabled-brightness: 1.1;
@mixin Elevation ($dp) {
background: lighten($background, floor(($dp + 3) * 1%));
background: lighten($background, 10% + floor($dp * .7%));
z-index: $dp;
}