Skip to content

Commit

Permalink
feat:: default bulma styling (only light for now, like bulma)
Browse files Browse the repository at this point in the history
  • Loading branch information
Espi committed Oct 1, 2020
1 parent 0721ae2 commit de97e79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Version](https://img.shields.io/npm/v/bulmaselect?color=orange)][PACKAGE]

## About
Bulmaselect is a fast multiselect library for the web. While styled like [Bulma][BULMA], it can work anywhere and has a variety of options to choose from.
Bulmaselect is a fast multiselect library for the web written in vanilla JavaScript. While styled like [Bulma][BULMA], it can work anywhere and has a variety of options to choose from.

## Example

Expand All @@ -25,7 +25,7 @@ Bulmaselect is a fast multiselect library for the web. While styled like [Bulma]
// Locale options used for strings
const englishLocale = {
btnNoSelection: "Nothing selected", // When no items are selected
searchPlaceholder: "Filter", // The placeholder text in the search bar
searchPlaceholder: "Search", // The placeholder text in the search bar
}
// List of options. These are the current defaults. Only specify what you want to differ from the default.
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@
"multi",
"multiple",
"multipleselect",
"multiple.select",
"multiselect",
"multi.select",
"multiselection",
"multi.selection",
"multiselections",
"multi.selections"
"multiselections"
],
"scripts": {
"build": "terser --compress --mangle --output dist/bulmaselect.min.js src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

const englishLocale = {
btnNoSelection: "Nothing selected",
searchPlaceholder: "Filter",
searchPlaceholder: "Search",
};

const defaultStyle =
".ms-ul{padding:0;margin:0;list-style-type:none}.ms-li{padding:none}#ms > div > ul > label{width:100%;display:block;cursor:pointer}.ms-button{background-color:#363636;color:#fff;border-color:transparent;cursor:pointer;border-width:1px;border-radius:4px;border-radius:4px;border-style:solid;height:2.5em;line-height:1.5;width:185px}.ms-drop{background-color:#363636;position:absolute;margin-top:-1px;border:1px solid #aaa;width:183px;max-height:249px;font-weight:400;border-style:solid;border-color:transparent;border-top-color:#000;border-radius:4px;color:#fff;max-height:250px;overflow:auto}.ms-group{font-weight:700}";
".ms-textbox{width:270px;align-items:middle;justify-content:center;justify-self:center;text-align:center;display:block;margin-top:5px;margin-left:5px;margin-right:5px}.ms-ul{list-style-type:none;margin-left:5px!important;margin-top:3px!important;margin-bottom:3px}.ms-button{color:#fff;height:2.5em;line-height:1.5;width:300px;height:40px;text-align:left;font-size:1em;background-color:#fff;border-color:#dbdbdb;border-radius:4px;color:#363636;z-index:55}.ms-drop{background-color:#fff;position:absolute;color:#363636;width:300px;height:300px;max-width:300px;max-height:300px;overflow:auto!important;z-index:55}.select:after{z-index:0!important}.ms-group{font-weight:700}.ms-span{margin-left:5px}.ms-label{text-overflow:ellipsis!important;display:block}";

// TODO: Implement themes and an auto theme with prefers-media-scheme or whatever it's called.
/* const defaultLightStyle = "";
Expand Down

0 comments on commit de97e79

Please sign in to comment.