added settings modal for mail

This commit is contained in:
Kevin Froman 2020-02-09 03:11:41 -06:00
parent dee531fd51
commit 559f6bed49
12 changed files with 695 additions and 202 deletions

View file

@ -0,0 +1,116 @@
<a name="1.0.2"></a>
## [1.0.2](https://github.com/Wikiki/bulma-switch/compare/1.0.1...1.0.2) (2018-05-12)
### Bug Fixes
* [#16](https://github.com/Wikiki/bulma-switch/issues/16) : add visual feedback for :focus ([000fc55](https://github.com/Wikiki/bulma-switch/commit/000fc55))
<a name="1.0.1"></a>
## [1.0.1](https://github.com/Wikiki/bulma-switch/compare/1.0.0...1.0.1) (2018-02-11)
### Bug Fixes
* **gulp:** Remove Bulmas important from distsass ([a0794dc](https://github.com/Wikiki/bulma-switch/commit/a0794dc))
<a name="1.0.0"></a>
# [1.0.0](https://github.com/Wikiki/bulma-switch/compare/0.1.12...1.0.0) (2018-02-10)
<a name="0.1.12"></a>
## [0.1.12](https://github.com/Wikiki/bulma-switch/compare/0.1.11...0.1.12) (2018-02-10)
<a name="0.1.11"></a>
## [0.1.11](https://github.com/Wikiki/bulma-switch/compare/0.1.10...0.1.11) (2018-02-10)
### Bug Fixes
* **gulp:** Use UMD modules style ([f9d1597](https://github.com/Wikiki/bulma-switch/commit/f9d1597))
<a name="0.1.10"></a>
## [0.1.10](https://github.com/Wikiki/bulma-switch/compare/0.1.9...0.1.10) (2018-02-10)
### Bug Fixes
* **gulp:** Correct dist filenames ([9ba0e1b](https://github.com/Wikiki/bulma-switch/commit/9ba0e1b))
<a name="0.1.9"></a>
## [0.1.9](https://github.com/Wikiki/bulma-switch/compare/0.1.8...0.1.9) (2018-02-09)
<a name="0.1.8"></a>
## [0.1.8](https://github.com/Wikiki/bulma-switch/compare/0.1.7...0.1.8) (2018-02-09)
<a name="0.1.7"></a>
## [0.1.7](https://github.com/Wikiki/bulma-switch/compare/0.1.6...0.1.7) (2018-02-09)
<a name="0.1.6"></a>
## [0.1.6](https://github.com/Wikiki/bulma-switch/compare/0.1.2...0.1.6) (2018-02-09)
### Bug Fixes
* **bower:** Add missing version ([c860841](https://github.com/Wikiki/bulma-switch/commit/c860841))
### Features
* **gulp:** Add gulp dependencies ([4155c63](https://github.com/Wikiki/bulma-switch/commit/4155c63))
* **gulp:** Add release task ([24451c6](https://github.com/Wikiki/bulma-switch/commit/24451c6))
# Change Log
## [Unreleased](https://github.com/wikiki/bulma-switch/tree/HEAD)
[Full Changelog](https://github.com/wikiki/bulma-switch/compare/0.1.2...HEAD)
**Merged pull requests:**
- TravisBuddy Integration [\#10](https://github.com/Wikiki/bulma-switch/pull/10) ([TravisBuddy](https://github.com/TravisBuddy))
## [0.1.2](https://github.com/wikiki/bulma-switch/tree/0.1.2) (2017-11-30)
**Implemented enhancements:**
- Indentation 2 levels deeper causes sass compile error [\#6](https://github.com/Wikiki/bulma-switch/issues/6)
**Fixed bugs:**
- Weird bug [\#8](https://github.com/Wikiki/bulma-switch/issues/8)
- Indentation 2 levels deeper causes sass compile error [\#6](https://github.com/Wikiki/bulma-switch/issues/6)
**Closed issues:**
- Make package include the compiled CSS [\#9](https://github.com/Wikiki/bulma-switch/issues/9)
- input checkbox absolute position not always correct [\#4](https://github.com/Wikiki/bulma-switch/issues/4)
- About import bulma-switch into angular project [\#3](https://github.com/Wikiki/bulma-switch/issues/3)
- Make label optional [\#2](https://github.com/Wikiki/bulma-switch/issues/2)
**Merged pull requests:**
- Allow for keyboard interaction with the checkbox and add state styles [\#7](https://github.com/Wikiki/bulma-switch/pull/7) ([jmfederico](https://github.com/jmfederico))
- Add color modifier for the unchecked state [\#5](https://github.com/Wikiki/bulma-switch/pull/5) ([madmatah](https://github.com/madmatah))
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*

View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Wikiki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1,13 @@
# bulma-switch
Bulma's extension to display checkbox as a toggle button
(find all my bulma's extensions [here](https://wikiki.github.io/))
[![npm](https://img.shields.io/npm/v/bulma-switch.svg)](https://www.npmjs.com/package/bulma-switch)
[![npm](https://img.shields.io/npm/dm/bulma-switch.svg)](https://www.npmjs.com/package/bulma-switch)
[![Build Status](https://travis-ci.org/Wikiki/bulma-switch.svg?branch=master)](https://travis-ci.org/Wikiki/bulma-switch)
![Switch example](switch-example.png)
Documentation & Demo
---
You can find the Documentation and a demo [here](https://wikiki.github.io/form/switch/)

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,194 @@
$switch-background: $grey-light !default
$switch-border: .1rem solid transparent !default
$switch-background-active: $primary !default
$switch-radius: $radius !default
$switch-paddle-background: $white !default
$switch-paddle-background-active: $primary !default
$switch-paddle-offset: 0.25rem !default
$switch-paddle-transition: all 0.25s ease-out !default
$switch-focus: 1px dotted $grey-light !default
=switch-size($size)
$switch-height: $size * 1.5
$switch-width: $switch-height * 2
$paddle-height: $switch-height - ($switch-paddle-offset * 2)
$paddle-width: $switch-height - ($switch-paddle-offset * 2)
$paddle-active-offest: $switch-width - $paddle-width - ($switch-paddle-offset * 1.5)
+ label
position: relative
display: initial
font-size: $size
line-height: initial
padding-left: $switch-width + .5
padding-top: .2rem
cursor: pointer
&::before,
&:before
position: absolute
display: block
top: 0
left: 0
width: $switch-width
height: $switch-height
border: $switch-border
border-radius: $switch-radius
background: $switch-background
content: ''
&::after,
&:after
display: block
position: absolute
top: ( $switch-height / 2 ) - ( $paddle-height / 2 )
left: $switch-paddle-offset
width: $paddle-width
height: $paddle-height
transform: translate3d(0, 0, 0)
border-radius: $switch-radius
background: $switch-paddle-background
transition: $switch-paddle-transition
content: ''
&.is-rtl
+ label
padding-left: 0
padding-right: $switch-width + .5
&::before,
&:before
left: auto
right: 0
&::after,
&:after
left: auto
right: $switch-paddle-offset
&:checked
+ label
&::before,
&:before
background: $switch-background-active
&::after
left: $paddle-active-offest
&.is-rtl
+ label
&::after,
&:after
left: auto
right: $paddle-active-offest
&.is-outlined
+ label
&::before,
&:before
background-color: transparent
border-color: $switch-background
&::after,
&:after
background: $switch-background
&:checked
+ label
&::before,
&:before
background-color: transparent
border-color: $switch-background-active
&::after,
&:after
background: $switch-paddle-background-active
&.is-thin
+ label
&::before,
&:before
top: $switch-height / 2.75
height: $switch-height / 4
&::after,
&:after
box-shadow: 0px 0px 3px $grey
&.is-rounded
+ label
&::before,
&:before
border-radius: $radius-large * 4
&::after,
&:after
border-radius: 50%
.switch[type="checkbox"]
outline: 0
user-select: none
display: inline-block
position: absolute
opacity: 0
&:focus
+ label
&::before,
&:before,
&::after,
&:after
outline: $switch-focus
&[disabled]
cursor: not-allowed
+ label
opacity: 0.5
&::before,
&:before
opacity: 0.5
&::after,
&:after
opacity: 0.5
&:hover
cursor: not-allowed
+switch-size($size-normal)
&.is-small
+switch-size($size-small)
&.is-medium
+switch-size($size-medium)
&.is-large
+switch-size($size-large)
@each $name, $pair in $colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
&:checked
+ label
&::before,
&:before
background: $color
&.is-outlined
&:checked
+ label
&::before,
&:before
background-color: transparent
border-color: $color !important
&::after,
&:after
background: $color
&.is-thin
&.is-outlined
+ label
&::after,
&:after
box-shadow: none
&.is-unchecked-#{$name}
+ label
&::before,
&:before
background: $color
&.is-outlined
+ label
&::before,
&:before
background-color: transparent
border-color: $color !important
&::after,
&:after
background: $color

View file

@ -0,0 +1,100 @@
{
"_from": "bulma-switch",
"_id": "bulma-switch@2.0.0",
"_inBundle": false,
"_integrity": "sha512-myD38zeUfjmdduq+pXabhJEe3x2hQP48l/OI+Y0fO3HdDynZUY/VJygucvEAJKRjr4HxD5DnEm4yx+oDOBXpAA==",
"_location": "/bulma-switch",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "bulma-switch",
"name": "bulma-switch",
"escapedName": "bulma-switch",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/bulma-switch/-/bulma-switch-2.0.0.tgz",
"_shasum": "7a187cd1bb8073e9a542478d936b89315f1ffcd8",
"_spec": "bulma-switch",
"_where": "/home/anonymous/programming/onionr/static-data/www/shared/css",
"author": {
"name": "Wikiki",
"email": "wikiki@protonmail.com",
"url": "https://wikiki.github.io/bulma-extensions/overview"
},
"bugs": {
"url": "https://github.com/Wikiki/bulma-switch/issues"
},
"bundleDependencies": false,
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"deprecated": false,
"description": "Display classic checkbox as a switch button, in different colors, sizes, and states ",
"devDependencies": {
"ansi-colors": "^2.0.1",
"autoprefixer": "^8.6.2",
"babel-core": "^6.26.3",
"babel-jest": "^23.0.1",
"babel-loader": "^7.1.4",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.7.0",
"bulma": "^0.7.1",
"camelcase": "^5.0.0",
"commitizen": "^2.10.1",
"cz-conventional-changelog": "^2.1.0",
"del": "^3.0.0",
"fancy-log": "^1.3.2",
"gulp": "^4.0.0",
"gulp-autoprefixer": "^5.0.0",
"gulp-clean-css": "^3.9.4",
"gulp-concat": "^2.6.1",
"gulp-nop": "0.0.3",
"gulp-postcss": "^7.0.1",
"gulp-sass": "^4.0.1",
"gulp-uglify": "^3.0.0",
"jest": "^23.1.0",
"regenerator-runtime": "^0.11.1",
"semantic-release": "^15.5.2",
"travis-deploy-once": "^5.0.0",
"webpack": "^4.12.0",
"webpack-stream": "^4.0.3"
},
"files": [
"dist/**",
"src/**",
"LICENSE",
"README.md"
],
"homepage": "https://github.com/Wikiki/bulma-switch#readme",
"keywords": [
"Bulma",
"bulma",
"bulma.io",
"extensions",
"switch",
"checkbox"
],
"license": "MIT",
"main": "./dist/css/bulma-switch.min.css",
"name": "bulma-switch",
"repository": {
"type": "git",
"url": "git+https://github.com/Wikiki/bulma-switch.git"
},
"scripts": {
"build": "gulp",
"commit": "git-cz",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"version": "2.0.0"
}

View file

@ -0,0 +1,194 @@
$switch-background: $grey-light !default
$switch-border: .1rem solid transparent !default
$switch-background-active: $primary !default
$switch-radius: $radius !default
$switch-paddle-background: $white !default
$switch-paddle-background-active: $primary !default
$switch-paddle-offset: 0.25rem !default
$switch-paddle-transition: all 0.25s ease-out !default
$switch-focus: 1px dotted $grey-light !default
=switch-size($size)
$switch-height: $size * 1.5
$switch-width: $switch-height * 2
$paddle-height: $switch-height - ($switch-paddle-offset * 2)
$paddle-width: $switch-height - ($switch-paddle-offset * 2)
$paddle-active-offest: $switch-width - $paddle-width - ($switch-paddle-offset * 1.5)
+ label
position: relative
display: initial
font-size: $size
line-height: initial
padding-left: $switch-width + .5
padding-top: .2rem
cursor: pointer
&::before,
&:before
position: absolute
display: block
top: 0
left: 0
width: $switch-width
height: $switch-height
border: $switch-border
border-radius: $switch-radius
background: $switch-background
content: ''
&::after,
&:after
display: block
position: absolute
top: ( $switch-height / 2 ) - ( $paddle-height / 2 )
left: $switch-paddle-offset
width: $paddle-width
height: $paddle-height
transform: translate3d(0, 0, 0)
border-radius: $switch-radius
background: $switch-paddle-background
transition: $switch-paddle-transition
content: ''
&.is-rtl
+ label
padding-left: 0
padding-right: $switch-width + .5
&::before,
&:before
left: auto
right: 0
&::after,
&:after
left: auto
right: $switch-paddle-offset
&:checked
+ label
&::before,
&:before
background: $switch-background-active
&::after
left: $paddle-active-offest
&.is-rtl
+ label
&::after,
&:after
left: auto
right: $paddle-active-offest
&.is-outlined
+ label
&::before,
&:before
background-color: transparent
border-color: $switch-background
&::after,
&:after
background: $switch-background
&:checked
+ label
&::before,
&:before
background-color: transparent
border-color: $switch-background-active
&::after,
&:after
background: $switch-paddle-background-active
&.is-thin
+ label
&::before,
&:before
top: $switch-height / 2.75
height: $switch-height / 4
&::after,
&:after
box-shadow: 0px 0px 3px $grey
&.is-rounded
+ label
&::before,
&:before
border-radius: $radius-large * 4
&::after,
&:after
border-radius: 50%
.switch[type="checkbox"]
outline: 0
user-select: none
display: inline-block
position: absolute
opacity: 0
&:focus
+ label
&::before,
&:before,
&::after,
&:after
outline: $switch-focus
&[disabled]
cursor: not-allowed
+ label
opacity: 0.5
&::before,
&:before
opacity: 0.5
&::after,
&:after
opacity: 0.5
&:hover
cursor: not-allowed
+switch-size($size-normal)
&.is-small
+switch-size($size-small)
&.is-medium
+switch-size($size-medium)
&.is-large
+switch-size($size-large)
@each $name, $pair in $colors
$color: nth($pair, 1)
$color-invert: nth($pair, 2)
&.is-#{$name}
&:checked
+ label
&::before,
&:before
background: $color
&.is-outlined
&:checked
+ label
&::before,
&:before
background-color: transparent
border-color: $color !important
&::after,
&:after
background: $color
&.is-thin
&.is-outlined
+ label
&::after,
&:after
box-shadow: none
&.is-unchecked-#{$name}
+ label
&::before,
&:before
background: $color
&.is-outlined
+ label
&::before,
&:before
background-color: transparent
border-color: $color !important
&::after,
&:after
background: $color