Skip to content

Commit

Permalink
Updated Core Stylings
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrogenous committed Mar 7, 2024
1 parent 069347e commit 9cb51c7
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 8 deletions.
20 changes: 15 additions & 5 deletions theme-base/components/input/_checkbox.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
//core
.p-checkbox {
position: relative;
display: inline-flex;
cursor: pointer;
user-select: none;
vertical-align: bottom;
position: relative;
}

.p-checkbox.p-checkbox-disabled {
cursor: auto;
.p-checkbox-input {
appearance: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
opacity: 0;
z-index: 1;
outline: 0 none;
cursor: pointer;
}

.p-checkbox-box {
display: flex;
justify-content: center;
align-items: center;
}
}

// theme
.p-checkbox {
Expand Down
17 changes: 16 additions & 1 deletion theme-base/components/input/_inputswitch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@
display: inline-block;
}

.p-inputswitch-input {
appearance: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
opacity: 0;
z-index: 1;
outline: 0 none;
cursor: pointer;
}

.p-inputswitch-slider {
position: absolute;
cursor: pointer;
Expand All @@ -18,7 +33,7 @@

.p-inputswitch-slider:before {
position: absolute;
content: "";
content: '';
top: 50%;
}

Expand Down
8 changes: 6 additions & 2 deletions theme-base/components/input/_radiobutton.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
//core
.p-radiobutton {
position: relative;
display: inline-flex;
cursor: pointer;
user-select: none;
vertical-align: bottom;
}

.p-radiobutton-input {
cursor: pointer;
}

.p-radiobutton-box {
display: flex;
justify-content: center;
Expand All @@ -20,7 +24,7 @@
visibility: hidden;
}

.p-radiobutton-box.p-highlight .p-radiobutton-icon {
.p-radiobutton.p-highlight .p-radiobutton-icon {
transform: translateZ(0) scale(1.0, 1.0);
visibility: visible;
}
Expand Down
15 changes: 15 additions & 0 deletions theme-base/components/input/_togglebutton.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//core
.p-togglebutton {
position: relative;
display: inline-flex;
user-select: none;
vertical-align: bottom;
}

.p-togglebutton-input {
cursor: pointer;
}

.p-togglebutton .p-button {
flex: 1 1 auto;
}
//theme
.p-togglebutton {
.p-togglebutton-input {
Expand Down
19 changes: 19 additions & 0 deletions theme-base/components/input/_tristatecheckbox.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
//core
.p-checkbox {
position: relative;
display: inline-flex;
user-select: none;
vertical-align: bottom;
}

.p-checkbox-input {
cursor: pointer;
}

.p-checkbox-box {
display: flex;
justify-content: center;
align-items: center;
}

//theme
.p-tristatecheckbox {
&.p-variant-filled {
.p-checkbox-box {
Expand Down

0 comments on commit 9cb51c7

Please sign in to comment.