0.5.2 • Published 6 years ago

vui.scss v0.5.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

VUI

A dead simple (S)CSS ui kit

VUI (View User Interface, yeah that's the best I can do...) is a simple scss based ui kit. I really love other frameworks out there (bulma, angular material, uikit, spectre, etc...), but I prefer one that style directly the dom, without the clutter of wrapping them on a hell of tags (whenever possible obviously).

DEMO

2018 Update

0.5.2

Tweaks on form tag and select tag for a more consistent view

0.5.1

Small fixes on alignments for navigation bar

0.5.0

Updated the navigation bar, to be more solid on mobile. Removed the surrouding lines around, modified the hamburger menu (now colorable).

Now svgs do not require special char, just insert the color you want, sass will take care of the rest.

Fixed the notification popup in mobile view.

Updated to bulma grid system 0.7.1 ChangeLog

0.4.4

Removed the $font-color variable, it was useless. Notification now have a better naming convention, using top, bottom, left, right. So if you need to show your notification on the top right of the page, use <div class="notification-container top right"> Default margin from the page is 10px. Please edit $notification-margin accordingly.

0.4.3

Added equal column widths on table using flexbox. Now checkboxes and radios have the same color schema as buttons

0.4.2

Updated Bulma columns to 0.7.0. Please read their ChangeLog for up-to-date info about.

0.4.1

Small bug fixes

0.4.0

Some tweaks for notification bar: now the position is fixed, so even if you scroll the bar remain visibile. Now it views better on mobile, and has some new MQ on other screen resolutions. ATTENTION: I renamed the Media Queries mq-mobile and mq-tablet to new names, so these changes will break compilation if your project use these varabiles. Please adjust accordingly (View 'Variables' later in this document).

0.3.5

(yeah, 0.3.4 was a refining release, not enough to have a description) Added responsive table, with some quirks. Thanks StackOverflow for pointing me in the right directions using data- html attributes.

0.3.3

Added experimental notification popup with css transition. I've included a simple javascript to show/hide the popup. Use your own in your project.

0.3.2

Added experimental navigationbar (horizontal only) with the classic hamburger when in mobile.

Grid system

As I said, I love Bulma css framework, so I took from this project it's exceptional grid system. It uses flexbox, like other projects (gridlex is one example, which I used before discovering bulma) and is very simple in it's basic flow. On advanced scenarios, it uses an intelligent naming system for classes to keep your code readable, so if in the future you will switch to another css framework, you can easily remember your design choices and move without almost any pain. Please refer to bulma's documentation on columns system on https://bulma.io/documentation/columns/basics/.

Normalize

The other library this project uses is normalize.scss to normalize style behavior across the browsers. And I keep waiting for the day the gods of internet will drop support for IE.

Installation

You can either download this project in your computer and reference it or use npm to install

npm install --save vui.scss

and use it in your project (plain css)

./node_modules/vui.scss/dist/vui.css

nodemon starting npm run build or nodemon starting npm run build

[nodemon] starting `npm run build`
./node_modules/vui.scss/src/vui
[nodemon] starting `npm run build`

nodemon starting npm run build to reference the scss version. Don't forg nodemon starting npm run buildet to compile!

nodemon starting npm run build

Variables

nodemon starting npm run build To edit one or more variable, import in y nodemon starting npm run buildour scss

./node_modules/vui.scss/src/_settings

and redefine one of following variables:

NameDescriptionDefault
$body-fontfont family for bodysans-serif
$body-line-heightdefault line height for body1.2
$body-font-weightbody font weight400
$heading-fontheading (h1,h2...) fontserif
$heading-line-heightheading line height1.4
$heading-font-weightheading font weight500
$accent:highlight color#2ca8ff
$green:green color (buttons, alert)#2ecc71
$yellow:yellow color (buttons, alert)#f1c40f
$orange:orange color (buttons, alert)#e67e22
$red:red color (buttons, alert)#cf2b1a
$gray:gray color (ui)#cdcdcd

Responsiveness breaks

changed in 0.4.0

NameDescriptionDefault
$mq-568when MQ breaks on mobile35.5em
$mq-768when MQ breaks on tablet (landscape)35.5em
$mq-1024when MQ breaks on tablet64em
$mq-1280when MQ breaks on laptop80em

Variables for experimental features

Navigation bar

NameDescriptionDefault
$nav-hamburger-colorHamburger color#cf2b1a
$nav-arrow-colordropdown arrow color#e67e22
$nav-hover-colorcolor when hovering items#2ecc71
$nav-text-coloritems text color#2ca8ff
$nav-text-hover-coloritems text color when hovering#fff

Notification

changed in 0.4.4

NameDescriptionDefault
$notification-font-sizefont size.85em
$notification-widthwidth of the notification30%
$notification-width-tabletwidth of the notification in tablet mode70%
$notification-widthwidth of the notification in latpop mode30%
$notification-marginmargin10px
$notification-border-radiuscontainer border radius10px
$notification-transitionappear transition.8s ease-in-out
$notification-default-colordefault color#cdcdcd

Documentation

I have not much time to write a proper documentation. Sorry for that. In docs you can find a simple html page with all the tags this css styles and, whenever necessary, a brief explanation on why I used that particular way of code.

Contributing

Fork the project and do your code! Then open a pull request. Please avoid to PR the master branch. Create a feature branch and PR that. I'll review and merge on the master.

Many thanks to

Bulma

normalize.scss

Pure CSS Fancy Checkbox/Radio by Raúl Barrera

License

Code 2017/2018 Valerio Fornito. Code released under the MIT license.

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.1.0

6 years ago