Skip to content

Commit

Permalink
build(version-update):version contrast v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zanzebra committed Mar 4, 2022
1 parent a144109 commit 805d221
Show file tree
Hide file tree
Showing 8 changed files with 514 additions and 356 deletions.
461 changes: 276 additions & 185 deletions css/cdb.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/cdb.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cdbootstrap",
"version": "1.1.0",
"version": "1.2.0",
"main": "js/cdb.js",
"repository": {
"type": "git",
Expand Down
22 changes: 11 additions & 11 deletions src/scss/abstracts/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ $danger-color: #ef4444;
$white-color: #ffffff;
$warning-dark-color: #66512c;
$dark-color: #111827;
$info-color: #17a2b8;
$light-color: #eeeeee;
$info-color: #06b6d4;
$light-color: #ffffff;

$primary-hover-color: #276ef1bd;
$secondary-hover-color: #7356bfbd;
$success-hover-color: #05944fbd;
$warning-hover-color: #ffe975bd;
$danger-hover-color: #e11900bd;
$white-hover-color: #ffffffd5;
$dark-hover-color: #000000bd;
$info-hover-color: #17a2b8bd;
$light-hover-color: #eeeeeebd;
$primary-hover-color: #2563eb;
$secondary-hover-color: #4f46e5;
$success-hover-color: #16a34a;
$warning-hover-color: #facc15;
$danger-hover-color: #dc2626;
$white-hover-color: #ffffff;
$dark-hover-color: #000000;
$info-hover-color: #0891b2;
$light-hover-color: #eeeeee;
1 change: 0 additions & 1 deletion src/scss/cdb.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@import "abstracts/variables";

* {
font-family: "Montserrat", sans-serif;
padding: 0;
margin: 0;
font-size: 14px;
Expand Down
167 changes: 138 additions & 29 deletions src/scss/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,98 +4,199 @@
}

.btn {
border-radius: 0;
padding: 0 1rem;
border-radius: 12px;
border-radius: 4px;
margin-right: 1rem;
font-weight: 400;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
padding: 10px 20px;
padding: 8.75px 12px;
font-weight: 600;
display: flex;
justify-content: center;
align-items: center;
padding: 6px 12px;
font-size: 0.85rem;
transition: 1px;
&:hover {
transform: scale(1.02);
}
&-primary {
border-color: $primary-color;
background: $primary-color;
&:active {
&:active,
&:hover {
outline-color: $primary-color;
background: $primary-hover-color;
}
}
&-secondary {
border-color: $secondary-color;
background: $secondary-color;
&:active,
&:hover {
outline-color: $secondary-color;
background: $secondary-hover-color;
}
}
&-success {
background: $success-color;
border-color: $success-color;
&:active,
&:hover {
outline-color: $success-color;
background: $success-hover-color;
}
}
&-danger {
background: $danger-color;
border-color: $danger-color;
&:active,
&:hover {
outline-color: $success-color;
background: $danger-hover-color;
}
}
&-warning {
background: $warning-color;
color: #fff;
color: #333;
border-color: $warning-color;
&:active,
&:hover {
outline-color: $warning-color;
background: $warning-hover-color;
}
}
&-info {
color: #fff;
background: $info-color;
border-color: $info-color;
&:active,
&:hover {
color: #fff;
outline-color: $info-color;
background: $info-hover-color;
}
}
&-light {
background: $light-color;
border-color: $light-color;
border: 1px solid #ccc;
&:active,
&:hover {
outline-color: $light-color;
}
}
&-dark {
background: $dark-color;
border-color: $dark-color;
color: #fff;
&:active,
&:hover {
outline-color: $dark-color;
background: $dark-hover-color;
}
}

&-outline {
&-primary {
border-color: $primary-color;
&:active {
background: $primary-color;
background: transparent;
color: $primary-color;
border: 2px solid;
&:active,
&:hover,
&:focus {
border-color: $primary-hover-color;
background: #fcfcfc;
color: $primary-hover-color;
}
}
&-secondary {
border-color: $secondary-color;
&:active {
background: $secondary-color;
background: transparent;
color: $secondary-color;
border: 2px solid;
&:active,
&:hover,
&:focus {
border-color: $secondary-hover-color;
background: #fcfcfc;
color: $secondary-hover-color;
}
}
&-dark {
border-color: $dark-color;

&:active {
background: $dark-color;
background: transparent;
border: 2px solid;
color: $dark-color;
&:active,
&:hover,
&:focus {
border-color: $dark-hover-color;
background: #fcfcfc;
color: $dark-hover-color;
}
}
&-danger {
border-color: $danger-color;
background: transparent;
border: 2px solid;
color: $danger-color;
&:active,
&:hover,
&:focus {
border-color: $danger-hover-color;
background: #fcfcfc;
color: $danger-hover-color;
}
}
&-success {
border-color: $success-color;
&:active {
background: $success-color;
background: transparent;
border: 2px solid;
color: $success-color;
&:active,
&:hover,
&:focus {
border-color: $success-hover-color;
background: #fcfcfc;
color: $success-hover-color;
}
}
&-light {
border-color: $light-color;
color: $light-color;
border: 2px solid #cccccc;
background: transparent;
&:active {
background: white;
color: #000;
color: #cccccc;
&:active,
&:hover,
&:focus {
background: #fcfcfc;
border: 2px solid #cccccc;
color: #cccccc;
}
}
&-warning {
border-color: $warning-color;

&:active {
background: $warning-color;
border: 2px solid;
background: transparent;
color: $warning-color;
&:active,
&:hover,
&:focus {
border-color: $warning-hover-color;
background: #fcfcfc;
color: $warning-hover-color;
}
}
&-info {
border-color: $info-color;
&:active {
background: $info-color;
border-color: $info-hover-color;
border: 2px solid;
background: transparent;
color: $info-hover-color;
&:active,
&:hover,
&:focus {
border-color: $info-color;
background: #fcfcfc;
color: $info-color;
}
}
}
Expand All @@ -116,10 +217,18 @@
box-shadow: none;
}
}
&-xl {
padding: 10px 20px;
font-size: 1rem;

padding: 12px 18.75px;
}
&-lg {
padding: 20px 40px;
padding: 8.75px 15px;
font-size: 1rem;
}
&-sm {
padding: 5px 10px;
padding: 3px 6px;
font-size: 0.625rem;
}
}
4 changes: 3 additions & 1 deletion src/scss/components/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
border-color: $primary-color;
background: #e6e6ff;
}

&-range {
color: #fff;
}
&-secondary {
color: $secondary-color;
border-color: $secondary-color;
Expand Down
Loading

0 comments on commit 805d221

Please sign in to comment.