|
@@ -1,7 +1,15 @@
|
|
|
:root {
|
|
|
--primary-col:linear-gradient(to bottom, #4fc5fa 0%,#0f75f5 100%);
|
|
|
--primary-col-ac:#0f75f5;
|
|
|
- --bg-color:#fff;
|
|
|
+ --bg-color-input:#fff;
|
|
|
+
|
|
|
+
|
|
|
+ --p-input-bg:#fff;
|
|
|
+ --p-input-color:#000;
|
|
|
+ --p-input-color-plac:#cdcdcd;
|
|
|
+
|
|
|
+ --p-input-color:#808080;
|
|
|
+ --p-input-bd:#808080;
|
|
|
--bg-hover-color:#f9f9f9;
|
|
|
--bg-front-col:#000;
|
|
|
--invalid-color:#d6513c;
|
|
@@ -16,6 +24,10 @@
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
+.p-form-select > select:focus{
|
|
|
+ outline: 2px solid #64baff;
|
|
|
+}
|
|
|
+
|
|
|
.p-form-select::before {
|
|
|
border-color: #fff transparent transparent;
|
|
|
border-style: solid;
|
|
@@ -45,8 +57,8 @@
|
|
|
|
|
|
.p-form-select > select {
|
|
|
-webkit-appearance: none;
|
|
|
- background: #fff;
|
|
|
- border: 1px solid #cacaca;
|
|
|
+ background: var(--p-input-bg);
|
|
|
+ border: 1px solid var(--p-input-bd);
|
|
|
border-radius: 5px;
|
|
|
font-size: 14px;
|
|
|
margin: 0;
|
|
@@ -54,69 +66,73 @@
|
|
|
padding: 5px 30px 5px 10px;
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
+ color: var(--p-input-color);
|
|
|
}
|
|
|
|
|
|
.p-form-text:invalid,
|
|
|
-.p-form-text-alt:invalid,
|
|
|
-.p-form-select > select:invalid {
|
|
|
+.p-form-text-alt:invalid{
|
|
|
border-color: var(--invalid-color);
|
|
|
}
|
|
|
|
|
|
.p-form-text:valid,
|
|
|
-.p-form-text-alt:valid,
|
|
|
-.p-form-select > select:valid {
|
|
|
+.p-form-text-alt:valid{
|
|
|
border-color: var(--valid-color);
|
|
|
}
|
|
|
|
|
|
.p-form-text:placeholder-shown,
|
|
|
-.p-form-text-alt:placeholder-shown,
|
|
|
-.p-form-select > select:placeholder-shown {
|
|
|
- border-color: #cacaca;
|
|
|
+.p-form-text-alt:placeholder-shown{
|
|
|
+ border-color: var(--p-input-bd);
|
|
|
}
|
|
|
|
|
|
.p-form-text {
|
|
|
+ color: var(--p-input-color);
|
|
|
-webkit-appearance: none;
|
|
|
box-shadow: none;
|
|
|
- background: #fff;
|
|
|
- border: 1px solid #cacaca;
|
|
|
+ background: var(--p-input-bg);
|
|
|
+ border: 1px solid var(--p-input-bd);
|
|
|
border-radius: 5px;
|
|
|
font-family: -apple-system, "Inter", sans-serif;
|
|
|
margin: 10px;
|
|
|
outline: 0;
|
|
|
- padding: 5px;
|
|
|
+ padding: 10px 5px;
|
|
|
resize: none;
|
|
|
transition: border-color 200ms;
|
|
|
}
|
|
|
|
|
|
.p-form-text-alt {
|
|
|
+ color: var(--p-input-color);
|
|
|
-webkit-appearance: none;
|
|
|
box-shadow: none;
|
|
|
- background: #fff;
|
|
|
+ background: var(--p-input-bg);
|
|
|
border: 0px;
|
|
|
- border-bottom: 2px solid #cacaca;
|
|
|
+ border-bottom: 2px solid var(--p-input-bd);
|
|
|
padding: 10px;
|
|
|
- border-top-left-radius: 5px;
|
|
|
- border-top-right-radius: 5px;
|
|
|
+ border-top-left-radius: 3px;
|
|
|
+ border-top-right-radius: 3px;
|
|
|
margin: 10px;
|
|
|
}
|
|
|
|
|
|
-.p-form-text-alt::placeholder {
|
|
|
- color: #cacaca;
|
|
|
+
|
|
|
+
|
|
|
+.p-form-text-alt::placeholder,
|
|
|
+.p-form-text::placeholder
|
|
|
+{
|
|
|
+ color: var(--p-input-color-plac);
|
|
|
}
|
|
|
|
|
|
.p-form-text-alt:focus {
|
|
|
- outline: 3px solid #bed8f9;
|
|
|
+ outline: 0;
|
|
|
+ border-color: #3689e6;
|
|
|
}
|
|
|
|
|
|
.p-form-no-validate:valid,
|
|
|
-.p-form-no-validate:invalid,
|
|
|
-.p-form-no-validate > select:valid,
|
|
|
-.p-form-no-validate > select:invalid {
|
|
|
- border-color: #cacaca;
|
|
|
+.p-form-no-validate:invalid{
|
|
|
+ border-color: var(--p-input-bd);
|
|
|
+ color: var(--p-input-color)!important;
|
|
|
}
|
|
|
|
|
|
.p-form-text:focus {
|
|
|
- border-color: #0f75f5;
|
|
|
+ border-color: #3689e6;
|
|
|
}
|
|
|
|
|
|
textarea.p-form-text {
|
|
@@ -136,27 +152,68 @@ textarea.p-form-text {
|
|
|
|
|
|
.p-form-label,
|
|
|
.p-form-radio-cont,
|
|
|
-.p-form-checkbox-cont {
|
|
|
+.p-form-checkbox-cont,
|
|
|
+.p-form-label-inline {
|
|
|
font-family: -apple-system, "Inter", sans-serif;
|
|
|
}
|
|
|
|
|
|
-.p-form-label {
|
|
|
- display: block;
|
|
|
+.p-form-label, .p-form-label-inline {
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-label-inline {
|
|
|
+ background: var(--p-input-bg);
|
|
|
+ padding: 5px;
|
|
|
+ border-bottom: 2px solid var(--p-input-bd);
|
|
|
+ color: #656565;
|
|
|
+ font-weight: 500;
|
|
|
+ transition: .3s;
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-label-inline:focus-within {
|
|
|
+ color: #3689e6;
|
|
|
+ border-color: #3689e6;
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-label-inline > .p-form-text-alt {
|
|
|
+ border-bottom: 0px;
|
|
|
+ padding: 0;
|
|
|
+ outline: 0;
|
|
|
+ background: var(--p-input-bg);
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-label-inline > .p-form-text-alt:-webkit-autofill{
|
|
|
+ background: var(--p-input-bg);
|
|
|
+ -webkit-box-shadow: 0 0 0 30px rgba(0,0,0,0) inset !important;
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-label-inline > .p-form-text-alt:invalid {
|
|
|
+ color: var(--invalid-color);
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-label-inline > .p-form-text-alt:valid {
|
|
|
+ color: #3689e6;
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-label-inline > .p-form-text-alt:focus{
|
|
|
+ color: var(--p-input-color);
|
|
|
}
|
|
|
|
|
|
.p-form-radio-cont,
|
|
|
.p-form-checkbox-cont {
|
|
|
align-items: center;
|
|
|
display: inline-flex;
|
|
|
+ cursor: pointer;
|
|
|
margin: 0 10px;
|
|
|
+ user-select: none;
|
|
|
}
|
|
|
|
|
|
.p-form-radio-cont > input + span,
|
|
|
.p-form-checkbox-cont > input + span {
|
|
|
- background: #fff;
|
|
|
- border: 1px solid #cacaca;
|
|
|
+ background: var(--p-input-bg);
|
|
|
+ border: 1px solid var(--p-input-bd);
|
|
|
border-radius: 50%;
|
|
|
- cursor: pointer;
|
|
|
display: inline-block;
|
|
|
height: 20px;
|
|
|
margin-right: 5px;
|
|
@@ -165,7 +222,8 @@ textarea.p-form-text {
|
|
|
width: 20px;
|
|
|
}
|
|
|
|
|
|
-.p-form-radio-cont > input + span:hover {
|
|
|
+.p-form-radio-cont:hover > input + span,
|
|
|
+.p-form-checkbox-cont:hover > input + span {
|
|
|
background: #f9f9f9;
|
|
|
}
|
|
|
|
|
@@ -179,7 +237,6 @@ textarea.p-form-text {
|
|
|
.p-form-radio-cont > input + span::after {
|
|
|
background: #fff;
|
|
|
border-radius: 50%;
|
|
|
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
|
content: "";
|
|
|
display: block;
|
|
|
height: 30%;
|
|
@@ -217,6 +274,13 @@ textarea.p-form-text {
|
|
|
display: block;
|
|
|
height: 8%;
|
|
|
position: absolute;
|
|
|
+ opacity: 0;
|
|
|
+ transition: opacity 0.2s;
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-checkbox-cont > input:checked + span::before,
|
|
|
+.p-form-checkbox-cont > input:checked + span::after {
|
|
|
+ opacity: 1;
|
|
|
}
|
|
|
|
|
|
.p-form-checkbox-cont > input + span::before {
|
|
@@ -230,15 +294,22 @@ textarea.p-form-text {
|
|
|
.p-form-checkbox-cont > input + span::after {
|
|
|
left: 30%;
|
|
|
top: 43%;
|
|
|
- transform: rotate(60deg);
|
|
|
+ transform: rotate(59deg);
|
|
|
transform-origin: top left;
|
|
|
width: 40%;
|
|
|
}
|
|
|
|
|
|
+.p-form-checkbox-cont > input[disabled] + span,
|
|
|
+.p-form-radio-cont > input[disabled] ~ span
|
|
|
+{
|
|
|
+ opacity: .7;
|
|
|
+ cursor: not-allowed;
|
|
|
+}
|
|
|
+
|
|
|
.p-form-button {
|
|
|
-webkit-appearance: none;
|
|
|
background: #fff;
|
|
|
- border: 1px solid #cacaca;
|
|
|
+ border: 1px solid var(--p-input-bd);
|
|
|
border-radius: 5px;
|
|
|
color: #333230;
|
|
|
display: inline-block;
|
|
@@ -246,7 +317,6 @@ textarea.p-form-text {
|
|
|
margin: 10px;
|
|
|
padding: 5px 20px;
|
|
|
text-decoration: none;
|
|
|
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
|
|
|
}
|
|
|
|
|
|
.p-form-send {
|
|
@@ -280,7 +350,7 @@ textarea.p-form-text {
|
|
|
}
|
|
|
|
|
|
.p-form-switch > input:checked + span::after {
|
|
|
- left: calc(100% - calc(var(--width) / 2.1));
|
|
|
+ left: calc(100% - calc(var(--width) / 1.8));
|
|
|
}
|
|
|
|
|
|
.p-form-switch > input:checked + span {
|
|
@@ -292,8 +362,7 @@ textarea.p-form-text {
|
|
|
border: 1px solid #d3d3d3;
|
|
|
border-radius: 500px;
|
|
|
display: block;
|
|
|
- height: calc(var(--width) / 2);
|
|
|
- overflow: hidden;
|
|
|
+ height: calc(var(--width) / 1.6);
|
|
|
position: relative;
|
|
|
transition: all 0.2s;
|
|
|
width: var(--width);
|
|
@@ -302,20 +371,104 @@ textarea.p-form-text {
|
|
|
.p-form-switch > span::after {
|
|
|
background: #f9f9f9;
|
|
|
border-radius: 50%;
|
|
|
+ border: 0.5px solid rgba(0, 0, 0, 0.101987);
|
|
|
box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 1px 1px rgba(0, 0, 0, 0.16), 0px 3px 8px rgba(0, 0, 0, 0.15);
|
|
|
+ box-sizing: border-box;
|
|
|
content: "";
|
|
|
- height: 90%;
|
|
|
+ height: 84%;
|
|
|
left: 3%;
|
|
|
position: absolute;
|
|
|
- top: 4.5%;
|
|
|
+ top: 6.5%;
|
|
|
transition: all 0.2s;
|
|
|
- width: 45%;
|
|
|
+ width: 52.5%;
|
|
|
}
|
|
|
|
|
|
.p-form-switch > input {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
+.p-chip input{
|
|
|
+ opacity: 0;
|
|
|
+ pointer-events: none;
|
|
|
+ position: absolute;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip span{
|
|
|
+ padding: .8rem 1rem;
|
|
|
+ border-radius: 1.6rem;
|
|
|
+ display:inline-block;
|
|
|
+ margin:10px;
|
|
|
+ background: #e4e4e4ca;
|
|
|
+ color: #3689e6;
|
|
|
+ transition: .3s;
|
|
|
+ user-select: none;
|
|
|
+ cursor:pointer;
|
|
|
+ font-family: -apple-system, "Inter", sans-serif;
|
|
|
+ font-size: 1rem;
|
|
|
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
|
+ -moz-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
|
+ text-align:center;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip svg{
|
|
|
+ display:block;
|
|
|
+ margin:auto;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+.p-chip input:checked + span{
|
|
|
+ background: #3689e6;
|
|
|
+ color:#fff;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip-outline span, .p-chip-outline-to-bg span{
|
|
|
+ background: transparent;
|
|
|
+ color: #3e3e3e;
|
|
|
+ border: 1px solid currentColor;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip-outline input:checked + span{
|
|
|
+ background: transparent;
|
|
|
+ color: #3689e6;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip-radius-b span{
|
|
|
+ border-radius: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip-dark span{
|
|
|
+ color: #3e3e3e;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip-dark input:checked + span{
|
|
|
+ background: #3e3e3e;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip input:disabled + span,
|
|
|
+.p-chip input[disabled] + span{
|
|
|
+ opacity: .5;
|
|
|
+ cursor: not-allowed;
|
|
|
+}
|
|
|
+
|
|
|
+.p-chip-big span{
|
|
|
+ font-size: 1.3rem;
|
|
|
+ padding: 1.5rem;
|
|
|
+ min-width: 80px;
|
|
|
+}
|
|
|
+
|
|
|
+.p-form-checkbox-cont[disabled],
|
|
|
+.p-form-label[disabled],
|
|
|
+.p-form-text[disabled],
|
|
|
+.p-form-text-alt[disabled],
|
|
|
+.p-form-select[disabled],
|
|
|
+.p-form-radio-cont[disabled]{
|
|
|
+ filter: grayscale(1) opacity(.3);
|
|
|
+ pointer-events: none;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/* LEGACY (WILL BE REMOVED ON FUTURE UPDATES) */
|
|
|
input[type=range].p-form-range {
|
|
|
width: 100%;
|
|
|
margin: 11.5px 0;
|
|
@@ -326,7 +479,7 @@ input[type=range].p-form-range:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
input[type=range].p-form-range::-webkit-slider-runnable-track {
|
|
|
- background: #cacaca;
|
|
|
+ background: var(--p-input-color);
|
|
|
border: 0;
|
|
|
width: 100%;
|
|
|
height: 2px;
|
|
@@ -347,7 +500,7 @@ input[type=range].p-form-range:focus::-webkit-slider-runnable-track {
|
|
|
background: #d7d7d7;
|
|
|
}
|
|
|
input[type=range].p-form-range::-moz-range-track {
|
|
|
- background: #cacaca;
|
|
|
+ background: var(--p-input-color);
|
|
|
border: 0;
|
|
|
width: 100%;
|
|
|
height: 2px;
|
|
@@ -376,7 +529,7 @@ input[type=range].p-form-range::-ms-fill-lower {
|
|
|
border: 0;
|
|
|
}
|
|
|
input[type=range].p-form-range::-ms-fill-upper {
|
|
|
- background: #cacaca;
|
|
|
+ background: var(--p-input-color);
|
|
|
border: 0;
|
|
|
}
|
|
|
input[type=range].p-form-range::-ms-thumb {
|
|
@@ -388,23 +541,16 @@ input[type=range].p-form-range::-ms-thumb {
|
|
|
cursor: pointer;
|
|
|
box-shadow: 0 3px 1px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.16), 0 3px 8px rgba(0, 0, 0, 0.15);
|
|
|
margin-top: 0px;
|
|
|
- /*Needed to keep the Edge thumb centred*/
|
|
|
}
|
|
|
input[type=range].p-form-range:focus::-ms-fill-lower {
|
|
|
- background: #cacaca;
|
|
|
+ background: var(--p-input-color);
|
|
|
}
|
|
|
input[type=range].p-form-range:focus::-ms-fill-upper {
|
|
|
background: #d7d7d7;
|
|
|
}
|
|
|
-/*TODO: Use one of the selectors from https://stackoverflow.com/a/20541859/7077589 and figure out
|
|
|
-how to remove the virtical space around the range input in IE*/
|
|
|
@supports (-ms-ime-align:auto) {
|
|
|
- /* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */
|
|
|
input[type=range].p-form-range {
|
|
|
margin: 0;
|
|
|
- /*Edge starts the margin from the thumb, not the track as other browsers do*/
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-/* END OF FORMS */
|