am35a / s4 Goto Github PK
View Code? Open in Web Editor NEWS4 - this repo is used as a researching for UI system based on Svelte/TS/SASS
Home Page: http://s4-pi.vercel.app
S4 - this repo is used as a researching for UI system based on Svelte/TS/SASS
Home Page: http://s4-pi.vercel.app
"src/components/Precode.svelte"
https://codepen.io/thebabydino/pen/qVQLzm
$track-w: 12.5em;
$track-h: .25em;
$thumb-d: 1.5em;
@mixin track() {
box-sizing: border-box;
border: none;
width: $track-w; height: $track-h;
background: #ccc;
}
@mixin thumb() {
box-sizing: border-box;
border: none;
width: $thumb-d; height: $thumb-d;
border-radius: 50%;
background: #f90;
}
[type='range'] {
&, &::-webkit-slider-thumb {
-webkit-appearance: none;
}
margin: 0;
padding: 0;
width: $track-w; height: $thumb-d;
background: transparent;
font: 1em/1 arial, sans-serif;
&::-webkit-slider-runnable-track {
@include track
}
&::-moz-range-track { @include track }
&::-ms-track { @include track }
&::-webkit-slider-thumb {
margin-top: .5*($track-h - $thumb-d);
@include thumb
}
&::-moz-range-thumb { @include thumb }
&::-ms-thumb {
margin-top: 0;
@include thumb
}
&::-ms-tooltip { display: none }
}
controversial decision for transparency
--positive-color: 0 0% 100%
background-color: hsl(var(--positive-color) / var(--bgc-alfa, 1)) !important
key-name: value = kn-v
align = va
align-content = ac
align-items = ai
align-self = as
justify-content = jc
justify-items = ji
justify-self = js
-positive = -po
-negative = -ne
-primary = -pr
-secondary = -se
-info = -in
-success = -sг
-warning = -wa
-error = -er
border = s (stroke) / b
padding = p
margin = m
-left = -l
-top = -t
-right = -r
-bottom = -b
rounded = radius = r (a, o)
-circle = -c
-pill = -p
--key-size + --fs-offset
--fs-h1: --key-size * --h1 + --fs-offset
from --fs-xxs to --fs-h1
.btn-transparent {
// try to invert default background and font color
}
have to add display: none
for :empty
elements
need for elements which have to recolor
hover:bgc-...
example:
.w-auto { width: auto !important; }
to
.w { width: var(--w, auto) !important; }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.