hubl/src/styles/base/form.scss

328 lines
6.9 KiB
SCSS
Raw Normal View History

form {
display: flex;
flex-direction: column;
margin-left: -3.4rem;
transition: all .3s ease;
}
.button-register>form>input[type=submit] {
@extend .button,
.text-bold,
.text-uppercase,
.reversed,
.button-secondary,
.bordered;
margin-left: auto;
margin-top: 3.2rem;
}
.fieldset {
border-bottom: 1px solid var(--color-fieldset-border);
color: var(--color-title);
display: flex;
flex: 1 0 100%;
font-size: 1.8rem;
font-weight: 600;
margin: 2.6rem 0 1.8rem;
padding-bottom: 0.8rem;
}
.form-label {
/*flex: 1 1 auto;*/
font-weight: 600;
&.is-light label {
color: var(--color-label-light);
margin-top: 1.8rem;
text-transform: uppercase;
&>*:nth-child(1) {
margin-bottom: 0.8rem;
}
}
}
.is-full-width {
box-sizing: border-box;
flex: 1 1 100%;
padding-left: 3.4rem;
}
.is-half-width {
box-sizing: border-box;
flex: 0 0 50%;
padding-left: 3.4rem;
}
input:not([type='file']):not([type='search']):not([type='submit']),
textarea {
-webkit-tap-highlight-color: var(--color-grey-7);
background-color: var(--color-input-background);
box-sizing: border-box;
border: 2px solid var(--color-input-background);
color: var(--color-input-text);
/*flex: 1 1 0; Problem on Firefox for input type date*/
line-height: 1;
min-width: 0;
padding: 1rem;
&:focus,
&:active {
border-bottom: 2px solid var(--color-input-active);
}
}
textarea {
height: 100px;
}
2020-05-12 17:14:50 +00:00
.content-box {
2020-05-12 17:14:50 +00:00
&.with-form {
2019-05-14 15:32:42 +00:00
2020-04-08 10:57:05 +00:00
sib-set-default:not([name='user-thumb']) {
clear: both;
2019-11-12 11:34:33 +00:00
display: flex!important;
flex-wrap: wrap;
max-width: 100%;
sib-form-label-text {
float: left;
width: 50%;
}
}
2020-05-12 17:14:50 +00:00
/* To align label and input vertically */
label {
display: flex;
flex-direction: column;
}
2020-05-12 17:14:50 +00:00
/*sib-form[set-user-id-select] {
2019-10-25 13:35:14 +00:00
input[type="submit"] {
margin-left: 0;
margin-top: 0;
}
select {
display: none;
}
2020-05-12 17:14:50 +00:00
}*/
2020-05-12 17:14:50 +00:00
/* WIDGETS SIB (let in .content-box to override default styles) */
2020-05-12 17:14:50 +00:00
sib-form-auto-completion {
2020-05-12 17:14:50 +00:00
.ss-main {
font-weight: normal;
text-transform: none;
}
.ss-single-selected {
2020-05-12 17:14:50 +00:00
align-items: center;
2020-05-11 18:20:13 +00:00
background-color: var(--color-input-background);
border: none;
border-radius: 0px;
2020-05-11 18:20:13 +00:00
color: var(--color-input-text);
display: flex;
font-weight: normal;
2020-05-12 17:14:50 +00:00
justify-content: flex-end;
min-height: 4.6rem;
padding-left: 1.2rem;
text-transform: none;
2020-05-11 18:20:13 +00:00
.ss-disabled {
color: var(--color-grey-5);
}
2020-05-12 17:14:50 +00:00
.ss-arrow {
font-size: 1.8rem;
margin: 0 18px 0 0;
span {
border: solid var(--color-input-icon);
border-width: 0 2px 2px 0;
}
}
}
2019-06-07 09:01:34 +00:00
2020-05-12 17:14:50 +00:00
.ss-list {
color: var(--color-select-list);
font-weight: normal;
text-transform: none;
}
}
2020-05-19 16:22:00 +00:00
hubl-status {
align-self: auto;
}
sib-form-date {
2019-06-07 09:01:34 +00:00
input[type="date"] {
background-image: url("/images/calendar.svg");
background-position: right 12px top 50%;
background-repeat: no-repeat;
2019-06-07 09:01:34 +00:00
background-size: 1.4rem;
2020-05-11 18:20:13 +00:00
color: var(--color-input-icon);
cursor: default;
2019-06-07 09:01:34 +00:00
font-size: 1.4rem;
margin-top: 1.6rem;
max-width: 50vw;
padding-right: 3rem; /* Needed to replace the close icon in FF when you are selecting a date */
padding-top: 1.2rem; /* Needed to center the close icon in FF when you are selecting a date */
position: relative;
2019-06-07 09:01:34 +00:00
&::-webkit-calendar-picker-indicator {
cursor: pointer;
opacity: 0;
position: absolute;
right: 8px;
}
&::-webkit-clear-button {
cursor: pointer;
2019-06-07 09:01:34 +00:00
margin-bottom: 5px; /* Needed to compensate padding-top: 1.2rem; for the close icon in FF */
margin-right: 5px;
}
&::-webkit-inner-spin-button {
2019-06-07 09:01:34 +00:00
display: none;
}
}
}
sib-form-file {
label {
align-items: baseline;
clear: both;
display: flex;
flex-direction: row;
flex-wrap: wrap;
max-width: 100%;
div {
width: 100%;
}
input[type='text'] {
box-sizing: border-box;
flex: 0 0 50%;
}
input[type='file'] {
box-sizing: border-box;
flex: 0 0 20%;
2020-05-11 18:20:13 +00:00
color: var(--color-input-text);
cursor: pointer;
padding-left: 3rem;
}
}
}
2020-05-12 17:14:50 +00:00
/*sib-multiple-select {
2020-04-08 10:57:05 +00:00
&.select-skills .ss-values .ss-disabled::before {
content: "Select skills";
}
sib-form-auto-completion > label {
display: flex;
flex-direction: column;
.ss-main {
font-weight: normal;
margin-bottom: 7.8rem;
margin-top: 1.6rem;
max-width: 50vw;
text-transform: none;
.ss-multi-selected {
align-items: center;
2020-05-11 18:20:13 +00:00
background-color: var(--color-input-background);
border: none;
border-radius: 0px;
display: flex;
justify-content: flex-end;
min-height: 4.2rem;
padding-left: 1.2rem;
.ss-add {
font-size: 1.8rem;
2019-06-07 09:01:34 +00:00
margin: 0 18px 0 0;
span.ss-plus {
2020-05-11 18:20:13 +00:00
background: var(--color-input-icon);
&::after {
2020-05-11 18:20:13 +00:00
background: var(--color-input-icon);
}
}
}
.ss-values {
background: transparent;
position: absolute;
top: 6rem;
width: 100%;
.ss-disabled {
color: transparent;
font-size: 1.4rem;
left: calc(1.2rem - 5px);
position: absolute;
top: calc(-6rem + 7px);
&::before {
2020-05-11 18:20:13 +00:00
color: var(--color-grey-5);
font-weight: normal;
}
}
2019-06-07 09:01:34 +00:00
.ss-value {
@extend .skill;
display: flex;
.ss-value-delete {
font-weight: normal;
}
}
}
}
2020-05-11 18:20:13 +00:00
.ss-list {
color: var(--color-input-text);
}
}
}
2020-05-12 17:14:50 +00:00
}*/
/* CUSTOM WIDGETS */
2019-05-14 15:32:42 +00:00
2020-05-08 13:27:44 +00:00
hubl-member-form {
width: 100%;
2019-05-14 15:32:42 +00:00
form {
2019-05-14 15:32:42 +00:00
display: flex;
flex-direction: column;
2019-05-14 15:32:42 +00:00
[name='member-form__input'] {
margin-bottom: 1rem;
}
2019-05-14 15:32:42 +00:00
sib-form-auto-completion {
float: left;
2019-05-14 15:32:42 +00:00
}
input[type='submit'] {
2020-05-11 18:20:13 +00:00
background-color: var(--color-select-add-button-background);
border: 1px solid var(--color-select-add-button);
color: var(--color-select-add-button);
2019-05-14 15:32:42 +00:00
}
}
}
}
}