Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactoring css and html #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
193 changes: 104 additions & 89 deletions dist/css/bulma-radio-checkbox.css
Original file line number Diff line number Diff line change
@@ -1,164 +1,179 @@
/*!
cool-checkboxes-for-bulma.io v1.1.0: Cool Checkboxes for Bulma.io
(c) 2017
cool-checkboxes-for-bulma.io v1.2.0: Cool Checkboxes for Bulma.io
(c) 2020
MIT License

*/
@charset "UTF-8";
.b-checkbox {
position: relative;
display: block;
min-height: 1.5rem;
padding-left: 1.5rem;
}

.b-checkbox label {
padding-left: 5px;
.b-checkbox-input {
position: absolute;
left: 0;
z-index: -1;
width: 1rem;
height: 1.25rem;
opacity: 0;
}

.b-checkbox-label {
position: relative;
margin-bottom: 0;
vertical-align: top;
cursor: pointer;
font-size: 1rem;
line-height: 1;
}

.b-checkbox label::before {
content: "";
.b-checkbox-label::before {
position: absolute;
width: 17px;
height: 17px;
left: 0;
top: 1px;
border: 1px solid #dbdbdb;
border-radius: 3px;
top: 0.25rem;
left: -1.5rem;
display: block;
width: 1rem;
height: 1rem;
pointer-events: none;
content: "";
background-color: #fff;
transition: background .1s ease-in-out;
border: #adb5bd solid 1px;
border-radius: 0.25rem;
transition: background 0.1s ease-in-out;
}

.b-checkbox label::after {
.b-checkbox-label::after {
position: absolute;
width: 16px;
height: 16px;
left: 3px;
top: 3px;
font-size: 12px;
display: flex;
top: 0.25rem;
left: -1.5rem;
width: 1rem;
height: 1rem;
content: "";
color: #363636;
}

.b-checkbox input[type="checkbox"],
.b-checkbox input[type="radio"] {
opacity: 0;
z-index: 1;
cursor: pointer;
}

.b-checkbox input[type="checkbox"]:focus + label::before,
.b-checkbox input[type="radio"]:focus + label::before {
.b-checkbox-input:focus~.b-checkbox-label::before {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}

.b-checkbox input[type="checkbox"]:checked + label::after,
.b-checkbox input[type="radio"]:checked + label::after {
content: "✔";
.is-primary .b-checkbox-input:checked~.b-checkbox-label::before {
background-color: hsl(171, 100%, 41%);
border-color: hsl(171, 100%, 41%);
}

.b-checkbox input[type="checkbox"]:disabled,
.b-checkbox input[type="radio"]:disabled {
cursor: not-allowed;
}

.b-checkbox input[type="checkbox"]:disabled + label,
.b-checkbox input[type="radio"]:disabled + label {
opacity: 0.65;
.is-primary .b-checkbox-input:checked~.b-checkbox-label::after {
color: #fff;
}

.b-checkbox input[type="checkbox"]:disabled + label::before,
.b-checkbox input[type="radio"]:disabled + label::before {
background-color: whitesmoke;
cursor: not-allowed;
.is-danger .b-checkbox-input:checked~.b-checkbox-label::before {
background-color: hsl(348, 100%, 61%);
border-color: hsl(348, 100%, 61%);
}

.b-checkbox.is-circular label::before {
border-radius: 50%;
.is-danger .b-checkbox-input:checked~.b-checkbox-label::after {
color: #fff;
}

.b-checkbox.is-inline {
display: inline-block;
font-weight: normal;
.is-info .b-checkbox-input:checked~.b-checkbox-label::before {
background-color: hsl(204, 86%, 53%);
border-color: hsl(204, 86%, 53%);
}

.b-checkbox.is-inline + .is-inline {
margin-left: 10px;
.is-info .b-checkbox-input:checked~.b-checkbox-label::after {
color: #fff;
}

.is-primary input[type="checkbox"]:checked + label::before {
background-color: #00d1b2;
border-color: #00d1b2;
.is-link .b-checkbox-input:checked~.b-checkbox-label::before {
background-color: hsl(217, 71%, 53%);
border-color: hsl(217, 71%, 53%);
}

.is-primary input[type="checkbox"]:checked + label::after {
.is-link .b-checkbox-input:checked~.b-checkbox-label::after {
color: #fff;
}

.is-danger input[type="checkbox"]:checked + label::before {
background-color: #ff3860;
border-color: #ff3860;
.is-warning .b-checkbox-input:checked~.b-checkbox-label::before {
background-color: hsl(48, 100%, 67%);
border-color: hsl(48, 100%, 67%);
}

.is-danger input[type="checkbox"]:checked + label::after {
.is-warning .b-checkbox-input:checked~.b-checkbox-label::after {
color: #fff;
}

.is-info input[type="checkbox"]:checked + label::before {
background-color: #3273dc;
border-color: #3273dc;
.is-success .b-checkbox-input:checked~.b-checkbox-label::before {
background-color: hsl(141, 71%, 48%);
border-color: hsl(141, 71%, 48%);
}

.is-info input[type="checkbox"]:checked + label::after {
.is-success .b-checkbox-input:checked~.b-checkbox-label::after {
color: #fff;
}

.is-warning input[type="checkbox"]:checked + label::before {
background-color: #ffdd57;
border-color: #ffdd57;
.is-dark .b-checkbox-input:checked~.b-checkbox-label::before {
background-color: hsl(0, 0%, 21%);
border-color: hsl(0, 0%, 21%);
}

.is-warning input[type="checkbox"]:checked + label::after {
.is-dark .b-checkbox-input:checked~.b-checkbox-label::after {
color: #fff;
}

.is-success input[type="checkbox"]:checked + label::before {
background-color: #23d160;
border-color: #23d160;
.is-black .b-checkbox-input:checked~.b-checkbox-label::before {
background-color: hsl(0, 0%, 4%);
border-color: hsl(0, 0%, 4%);
}

.is-success input[type="checkbox"]:checked + label::after {
.is-black .b-checkbox-input:checked~.b-checkbox-label::after {
color: #fff;
}

.is-dark input[type="checkbox"]:checked + label::before {
background-color: #363636;
border-color: #363636;
.b-checkbox-input:checked~.b-checkbox-label::after {
content: "\002714";
font-size: 1rem;
/* font-weight: 900; */
/* color: #fff; */
text-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: center;
justify-content: center;
}

.is-dark input[type="checkbox"]:checked + label::after {
color: #fff;
.b-checkbox-input:disabled {
cursor: not-allowed;
}

.is-black input[type="checkbox"]:checked + label::before {
background-color: #0a0a0a;
border-color: #0a0a0a;
.b-checkbox-label[disabled] {
opacity: 0.65;
cursor: not-allowed;
}

.is-black input[type="checkbox"]:checked + label::after {
color: #fff;
.b-checkbox-right {
padding-right: 24px;
padding-left: 0 !important;
margin-right: 0;
}

input[type="checkbox"].styled:checked + label:after {
font-family: "FontAwesome";
content: "";
.b-checkbox-right .b-checkbox-label::before,
.b-checkbox-right .b-checkbox-label::after {
right: -1.5rem;
left: initial;
}

input[type="checkbox"] .styled:checked + label::before {
color: #fff;
.is-circular .b-checkbox-label::before {
border-radius: 50%;
}

input[type="checkbox"] .styled:checked + label::after {
color: #fff;
.b-checkbox.is-inline {
display: inline-block !important;
font-weight: normal;
}

.b-checkbox.is-inline+.is-inline {
margin-left: 10px;
}
8 changes: 6 additions & 2 deletions dist/css/bulma-radio-checkbox.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading