update: css for form elements are outside the .with-form context

This commit is contained in:
gaelle morin 2020-05-18 14:37:06 +02:00
parent 56f9151345
commit c950d27d47
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C

View File

@ -15,6 +15,7 @@ form {
margin-left: auto; margin-left: auto;
margin-top: 3.2rem; margin-top: 3.2rem;
} }
<<<<<<< HEAD
.fieldset { .fieldset {
border-bottom: 1px solid var(--color-fieldset-border); border-bottom: 1px solid var(--color-fieldset-border);
@ -48,14 +49,56 @@ form {
padding-left: 3.4rem; padding-left: 3.4rem;
} }
=======
.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;*/
label {
display: flex;
flex-direction: column; /* To align label and input vertically */
font-weight: 600;
margin-bottom: 0.8rem;
margin-top: 1.8rem;
text-transform: uppercase;
}
&.is-light label {
color: var(--color-label-light);
}
}
.is-full-width {
box-sizing: border-box;
flex: 1 1 100%;
padding-left: 3.4rem;
}
>>>>>>> 5701eea... update: css for form elements are outside the .with-form context
.is-half-width { .is-half-width {
box-sizing: border-box; box-sizing: border-box;
flex: 0 0 50%; flex: 0 0 50%;
padding-left: 3.4rem; padding-left: 3.4rem;
} }
<<<<<<< HEAD
input:not([type='file']):not([type='search']):not([type='submit']), input:not([type='file']):not([type='search']):not([type='submit']),
textarea { textarea {
=======
.input-text-like input:not([type='file']):not([type='search']):not([type='submit']),
.input-text-like textarea {
>>>>>>> 5701eea... update: css for form elements are outside the .with-form context
-webkit-tap-highlight-color: var(--color-grey-7); -webkit-tap-highlight-color: var(--color-grey-7);
background-color: var(--color-input-background); background-color: var(--color-input-background);
box-sizing: border-box; box-sizing: border-box;
@ -65,7 +108,11 @@ textarea {
line-height: 1; line-height: 1;
min-width: 0; min-width: 0;
padding: 1rem; padding: 1rem;
<<<<<<< HEAD
=======
>>>>>>> 5701eea... update: css for form elements are outside the .with-form context
&:focus, &:focus,
&:active { &:active {
border-bottom: 2px solid var(--color-input-active); border-bottom: 2px solid var(--color-input-active);
@ -75,13 +122,19 @@ textarea {
textarea { textarea {
height: 100px; height: 100px;
} }
<<<<<<< HEAD
.content-box { .content-box {
=======
.content-box {
>>>>>>> 5701eea... update: css for form elements are outside the .with-form context
&.with-form { &.with-form {
sib-set-default:not([name='user-thumb']) { sib-set-default:not([name='user-thumb']) {
clear: both; clear: both;
display: flex!important; display: flex!important;
flex-wrap: wrap; flex-wrap: wrap;
max-width: 100%; max-width: 100%;
@ -90,8 +143,11 @@ textarea {
float: left; float: left;
width: 50%; width: 50%;
} }
} }
}
}
<<<<<<< HEAD
/* To align label and input vertically */ /* To align label and input vertically */
label { label {
display: flex; display: flex;
@ -99,62 +155,59 @@ textarea {
} }
/*sib-form[set-user-id-select] { /*sib-form[set-user-id-select] {
=======
/*sib-form[set-user-id-select] {
>>>>>>> 5701eea... update: css for form elements are outside the .with-form context
input[type="submit"] { input[type="submit"] {
margin-left: 0; margin-left: 0;
margin-top: 0; margin-top: 0;
} }
select { select {
display: none; display: none;
} }
}*/ }*/
/* WIDGETS SIB (let in .content-box to override default styles) */ /* WIDGETS SIB (let in .content-box to override default styles) */
sib-form-auto-completion { sib-form-auto-completion {
.ss-main { .ss-main {
font-weight: normal; font-weight: normal;
text-transform: none; text-transform: none;
} }
.ss-single-selected { .ss-single-selected {
align-items: center; align-items: center;
background-color: var(--color-input-background); background-color: var(--color-input-background);
border: none; border: none;
border-radius: 0px; border-radius: 0px;
color: var(--color-input-text); color: var(--color-input-text);
display: flex; display: flex;
font-weight: normal; font-weight: normal;
justify-content: flex-end; justify-content: flex-end;
min-height: 4.6rem; min-height: 4.6rem;
padding-left: 1.2rem; padding-left: 1.2rem;
text-transform: none; text-transform: none;
.ss-disabled { .ss-disabled {
color: var(--color-grey-5); color: var(--color-grey-5);
}
.ss-arrow {
font-size: 1.8rem;
margin: 0 18px 0 0;
span {
border: solid var(--color-input-icon);
border-width: 0 2px 2px 0;
}
}
}
.ss-list {
color: var(--color-select-list);
font-weight: normal;
text-transform: none;
}
} }
.ss-arrow {
font-size: 1.8rem;
margin: 0 18px 0 0;
span {
border: solid var(--color-input-icon);
border-width: 0 2px 2px 0;
}
}
}
<<<<<<< HEAD
hubl-status { hubl-status {
align-self: auto; align-self: auto;
} }
@ -180,148 +233,203 @@ textarea {
position: absolute; position: absolute;
right: 8px; right: 8px;
} }
=======
.ss-list {
color: var(--color-select-list);
font-weight: normal;
text-transform: none;
}
}
&::-webkit-clear-button { /* Additional styles for the select to add a member in circle-edit */
cursor: pointer; .block.select-add>form {
margin-bottom: 5px; /* Needed to compensate padding-top: 1.2rem; for the close icon in FF */ display: flex;
margin-right: 5px; flex-direction: row;
} margin-bottom: 2.6rem;
&::-webkit-inner-spin-button { label {
display: none; margin-top: 0;
} }
}
.ss-main {
min-width: 35vw;
}
input[type='submit'] {
@extend .button,
.btn-margin-left,
.text-bold,
.text-uppercase,
.button-complementary,
.bordered;
margin-top: auto;
margin-bottom: auto;
}
}
/* End */
sib-form-date {
input[type="date"] {
background-image: url("/images/calendar.svg");
background-position: right 12px top 50%;
background-repeat: no-repeat;
background-size: 1.4rem;
color: var(--color-input-icon);
cursor: default;
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;
&::-webkit-calendar-picker-indicator {
cursor: pointer;
opacity: 0;
position: absolute;
right: 8px;
}
>>>>>>> 5701eea... update: css for form elements are outside the .with-form context
&::-webkit-clear-button {
cursor: pointer;
margin-bottom: 5px; /* Needed to compensate padding-top: 1.2rem; for the close icon in FF */
margin-right: 5px;
} }
sib-form-file { &::-webkit-inner-spin-button {
display: none;
label { }
align-items: baseline; }
clear: both; }
display: flex;
flex-direction: row; sib-form-file {
flex-wrap: wrap;
max-width: 100%; label {
align-items: baseline;
div { clear: both;
width: 100%; display: flex;
} flex-direction: row;
flex-wrap: wrap;
input[type='text'] { max-width: 100%;
box-sizing: border-box;
flex: 0 0 50%; div {
} width: 100%;
}
input[type='file'] {
box-sizing: border-box; input[type='text'] {
flex: 0 0 20%; box-sizing: border-box;
color: var(--color-input-text); flex: 0 0 50%;
cursor: pointer; }
padding-left: 3rem;
} input[type='file'] {
} box-sizing: border-box;
} flex: 0 0 20%;
color: var(--color-input-text);
/*sib-multiple-select { cursor: pointer;
padding-left: 3rem;
&.select-skills .ss-values .ss-disabled::before { }
content: "Select skills"; }
} }
sib-form-auto-completion > label { /*sib-multiple-select {
display: flex;
flex-direction: column; &.select-skills .ss-values .ss-disabled::before {
content: "Select skills";
.ss-main { }
font-weight: normal;
margin-bottom: 7.8rem; sib-form-auto-completion > label {
margin-top: 1.6rem; display: flex;
max-width: 50vw; flex-direction: column;
text-transform: none;
.ss-main {
.ss-multi-selected { font-weight: normal;
align-items: center; margin-bottom: 7.8rem;
background-color: var(--color-input-background); margin-top: 1.6rem;
border: none; max-width: 50vw;
border-radius: 0px; text-transform: none;
display: flex;
justify-content: flex-end; .ss-multi-selected {
min-height: 4.2rem; align-items: center;
padding-left: 1.2rem; background-color: var(--color-input-background);
border: none;
.ss-add { border-radius: 0px;
font-size: 1.8rem; display: flex;
margin: 0 18px 0 0; justify-content: flex-end;
min-height: 4.2rem;
span.ss-plus { padding-left: 1.2rem;
background: var(--color-input-icon);
.ss-add {
&::after { font-size: 1.8rem;
background: var(--color-input-icon); margin: 0 18px 0 0;
}
} span.ss-plus {
} background: var(--color-input-icon);
.ss-values { &::after {
background: transparent; background: var(--color-input-icon);
position: absolute; }
top: 6rem; }
width: 100%; }
.ss-disabled { .ss-values {
color: transparent; background: transparent;
font-size: 1.4rem; position: absolute;
left: calc(1.2rem - 5px); top: 6rem;
position: absolute; width: 100%;
top: calc(-6rem + 7px);
.ss-disabled {
&::before { color: transparent;
color: var(--color-grey-5); font-size: 1.4rem;
font-weight: normal; left: calc(1.2rem - 5px);
} position: absolute;
} top: calc(-6rem + 7px);
.ss-value { &::before {
@extend .skill; color: var(--color-grey-5);
display: flex; font-weight: normal;
}
.ss-value-delete { }
font-weight: normal;
} .ss-value {
} @extend .skill;
} display: flex;
}
.ss-value-delete {
.ss-list { font-weight: normal;
color: var(--color-input-text); }
} }
} }
} }
}*/
.ss-list {
/* CUSTOM WIDGETS */ color: var(--color-input-text);
}
hubl-member-form { }
width: 100%; }
}*/
form {
display: flex; /* CUSTOM WIDGETS */
flex-direction: column;
hubl-member-form {
[name='member-form__input'] { width: 100%;
margin-bottom: 1rem;
} form {
display: flex;
sib-form-auto-completion { flex-direction: column;
float: left;
} [name='member-form__input'] {
margin-bottom: 1rem;
input[type='submit'] { }
background-color: var(--color-select-add-button-background);
border: 1px solid var(--color-select-add-button); sib-form-auto-completion {
color: var(--color-select-add-button); float: left;
} }
}
input[type='submit'] {
background-color: var(--color-select-add-button-background);
border: 1px solid var(--color-select-add-button);
color: var(--color-select-add-button);
} }
} }
} }