0.1.22 • Published 6 years ago
sagira-jss v0.1.22
sagira-jss
this is not ready yet, don't use it!
A jss basic framework with a simple flexbox grid, based on FlexboxGrid and a smart media query selector.
@TODO
- archteture analysis;
- massive refactoring;
- tests;
- unity tests;
- performance;
myStylesheetWithJSS.js
const Sagira = require('../index.js');
const sagira = new Sagira({
horizontal: { xs: 350 },
vertical: { ph: 720 }
});
const { auto, vw, rem, vh } = Sagira;
const stylesheet = {
myComponentZero: auto(
{
padding: [12, '22px', `${vw(10)}`, 22],
margin: 21
},
{
color: 'blue',
display: 'none',
width: `${vh(10, 'xs')}`,
border: `${vh(1, 'xs')} solid #ddaaff`,
[sagira.query.th]: {
padding: rem(22)
},
'&:hover': {
color: 'red'
},
'&:after': {
content: '"after-effects"'
}
}
)
};
sagira.mixStyleSheet(stylesheet);
sagira.toString();
sagira.getRegistry();
0.1.22
6 years ago
0.1.21
6 years ago
0.1.20
6 years ago
0.1.19
6 years ago
0.1.18
6 years ago
0.1.17
6 years ago
0.1.16
6 years ago
0.1.15
6 years ago
0.1.14
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago