diff --git a/src/assets/copy.svg b/src/assets/copy.svg new file mode 100644 index 0000000..bbd8468 --- /dev/null +++ b/src/assets/copy.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/colors.json b/src/colors.json new file mode 100644 index 0000000..eccf297 --- /dev/null +++ b/src/colors.json @@ -0,0 +1,10 @@ +{ + "red": "#D2134B", + "green": "#116e5e", + "blue": "#106a87", + "yellow": "#f8d139", + "cyan": "", + "magenta": "", + "color": "#2D8685", + "color2": "#caa455" +} \ No newline at end of file diff --git a/src/example/Example.vue b/src/example/Example.vue index 6f24535..66b2638 100644 --- a/src/example/Example.vue +++ b/src/example/Example.vue @@ -1,18 +1,16 @@ diff --git a/src/example/app.styl b/src/example/app.styl new file mode 100644 index 0000000..9edfda4 --- /dev/null +++ b/src/example/app.styl @@ -0,0 +1,70 @@ + @import '../vars.styl' + .header + display block + margin 0 0 2em 0 + .title + color color + .subtitle + font-size .625em + font-style italic + font-weight normal + + .footer + display flex + flex 1 + min-width 100% + margin 3em 0 0 0 + justify-content center + align-items center + background $txt-color + div + display flex + justify-content center + align-items center + + #app, .row + display flex + justify-content center + align-items center + + #app + user-select none + flex-flow column wrap + min-height 100vh + + .row + display flex + flex-flow row wrap + flex 1 1 100% + position relative + + .links + display flex + list-style none + align-self flex-end + margin 0 + .top + justify-content flex-end + + .icon + svg + width 2em + height @width + fill $color + margin 0 + + &:hover + svg + fill $color2 + + a .icon + display inline + + .console + display block + max-width 20em + position fixed + margin 5em + right 0 + bottom 0 + color $dark \ No newline at end of file diff --git a/src/example/html.styl b/src/example/html.styl index ad86106..8a06521 100644 --- a/src/example/html.styl +++ b/src/example/html.styl @@ -1,13 +1,23 @@ + @import '../vars.styl' + + body,html + margin 0 + padding 0 + max-width 100% + width 100% body - background-color: #e6ede9 + background-color: $bg font-size: 16px + font-family 'Arial', sans-serif + color $txt-color label font-size: .8em display:block margin-bottom: .5em a + text-decoration none color: $color - &:hover + &:hover, &:visited:hover color:$color2 &:visited color: $color @@ -15,7 +25,6 @@ button, select, option border: none box-shadow: none - background-color: white outline: 0 &:focus outline: 0 @@ -42,6 +51,11 @@ 1px 1.5em; background-repeat: no-repeat + textarea + background $bg + color $color + border 1px solid $txt-color + button.btn padding: .5em 2em font-size: 1em @@ -53,3 +67,30 @@ color: $color font-weight:bold background-color: white + + h1,h2 + margin 0 + +// Scrolbars + + $scrollbar-width = 8px + +::-webkit-scrollbar-track + box-shadow $inset-sh + background-color $darkness + +::-webkit-scrollbar + width $scrollbar-width + background-color $gray + + +::-webkit-scrollbar-thumb + // box-shadow $box-sh + // box-shadow 0px 0px 30px rgba(255,255,255,.5), 1px 1px 20px $color + background-color $color + border-radius ($scrollbar-width / 2) + + ::-webkit-resizer + background-color $color + // box-shadow inset 1px 0px 1px rgba(0, 0, 0, 0.5) + background linear-gradient(135deg, $darkness 50%, $color 50%) \ No newline at end of file diff --git a/src/vars.styl b/src/vars.styl index 164d163..4aa42bf 100644 --- a/src/vars.styl +++ b/src/vars.styl @@ -1,16 +1,16 @@ -$color2 = #caa455 -$color = #1aad8d +json('../colors.json') +$color2 = color2 +$color = color // $color2 = #E3A826 $white = lightness($color, 92%) $dark = lightness($color, 27%) $darkness = #225057 -$bg = saturation(lightness($color,25%),30%) -//$bg = saturation(lightness($color,30%),20%) -$bg = saturation(lightness($color,80%),15%) +$bg = lightness($color,6%) $bg-plus = saturation(lightness($color,75%),30%) -$warn = #be385d +$warn =red $light = #f5fffc $mid = lightness($color, 55%) +$txt-color = $darkness $border = $color solid 2px $txt-sh = 1px 1px 1px rgba(0,0,0,.5)