GithubHelp home page GithubHelp logo

morganbarrett / vanilla-semantic-ui Goto Github PK

View Code? Open in Web Editor NEW
102.0 19.0 3.0 65.56 MB

Semantic UI component framework without jQuery

License: MIT License

JavaScript 56.65% CSS 42.55% HTML 0.80%
semantic-ui vanilla-javascript vanilla-js vanilla vanilla-semantic-ui

vanilla-semantic-ui's Introduction

Vanilla Semantic UI

Vanilla Semantic UI removes the jQuery dependency from Semantic, a UI framework designed for theming.

Features

  • 50+ UI elements
  • 3000+ CSS variables
  • 3 Levels of variable inheritance (similar to SublimeText)
  • Built with EM values for responsive design
  • Flexbox friendly

Semantic allows developers to build beautiful websites fast, with concise HTML, intuitive javascript, and simplified debugging, helping make front-end development a delightful experience. Semantic is responsively designed allowing your website to scale on multiple devices.

Vanilla Semantic UI is not yet production ready, but will soon have all the power of Semantic UI without jQuery as a dependency.

Browser Support

  • Last 2 Versions FF, Chrome, Safari Mac
  • IE 11+
  • Android 4.4+, Chrome for Android 44+
  • iOS Safari 7+
  • Microsoft Edge 12+

Although some components will work in IE9, grids and other flexbox components are not supported by IE9 and may not appear correctly.

Installation

NPM

$ npm i vanilla-semantic-ui

Yarn

$ yarn add vanilla-semantic-ui

CDN

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vanilla-semantic.min.css">

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vanilla-semantic.min.js"></script>

Usage

Old (jQuery) way

$('.star.rating').rating({
	initialRating: 3
});

New (Vanilla) way

ui('.star.rating').rating({
	initialRating: 3
});

To Do

Behaviors

  • api.js
  • form.js
  • visibility.js

Globals

  • site.js

Modules

  • accordion.js
  • checkbox.js
  • dimmer.js
  • dropdown.js
  • embed.js
  • modal.js
  • nag.js
  • popup.js
  • progress.js
  • rating.js
  • search.js
  • shape.js
  • sidebar.js
  • sticky.js
  • tab.js
  • transition.js

vanilla-semantic-ui's People

Contributors

andreiho avatar anotherzero avatar avalanche1 avatar awgv avatar brigand avatar davialexandre avatar deneuxa avatar dos1 avatar edumucelli avatar eibrahim avatar frontdevde avatar jlukic avatar jsoref avatar lemartialou avatar maturanomx avatar mdehoog avatar mishak87 avatar mohammadyounes avatar morganbarrett avatar nielslerches avatar nsmith avatar pcj avatar psyton avatar quirkyjack avatar romuloctba avatar sami-t avatar splendido avatar tbracken avatar tomsseisums avatar vsn4ik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vanilla-semantic-ui's Issues

CDN

can we get a this loaded on CDN

[Dimmer] mouse out called when hovering child element

Describe the bug
The mouse out even is called when hovering child elements of the dimmer.

To Reproduce
Steps to reproduce the behavior:

  1. Create a dimmer with child elements such as a buttton
  2. Hover over the dimmers children
  3. See flickering dimmer

Expected behavior
No flickering

  • OS: macOS High Sierra
  • Browser: Chrome
  • Version: 65

[Accordion] error 'targets is not defined' on click event

Describe the bug
An error is show 'targets is not defined' on the click event of titles in accordions.

To Reproduce
Steps to reproduce the behavior:

  1. Create an accordion
  2. Click on a closed title
  3. See accordion not update
  4. Check log for error

Expected behavior
Accordion should update to expected state and error should not be shown.

  • OS: macOS High Sierra
  • Browser: Chrome
  • Version: 65

dropdown.js is slow

dear Vanilla-Semantic-UI, please keep up the fight for better performance

this is a copy-paste from Semantic-UI issue 6703

Semantic-UI should run faster. jQuery is slow. prefer native JS

Expected Result

run faster

Actual Result

running slow : P

Version

2.4.2

Desc

this concerns the abuse of jQuery.

when i see code like ...

              module.debug('Creating entire dropdown from select');
              $module = $('<div />')
                .attr('class', $input.attr('class') )
                .addClass(className.selection)
                .addClass(className.dropdown)
                .html( templates.dropdown(selectValues) )
                .insertBefore($input)
              ;

in src/definitions/modules/dropdown.js line 360

... i suspect: this cant be fast.

and its not:

etc ...

templates.dropdown is fast, cos it only concats strings
in src/definitions/modules/dropdown.js line 3900

references

https://ilikekillnerds.com/2015/02/stop-writing-slow-javascript/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.