Files
bflows-bandi-fe/src/assets/scss/components/appForm.scss
2024-10-02 09:11:47 +02:00

194 lines
3.1 KiB
SCSS

.appForm {
display: flex;
flex-direction: column;
gap: 24px;
}
.appForm__field {
display: flex;
flex-direction: column;
gap: 14px;
padding: 5px 0;
width: 100%;
label {
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: normal;
span {
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: normal;
margin-left: 10px;
}
}
small {
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 21px;
}
&.datepicker, &.formfieldrepeater, &.datepickerrange, &.fileupload {
.p-button:not(.p-button-danger) {
background: var(--button-secondary-background);
border: 1px solid var(--button-secondary-borderColor);
}
.p-button:not(:disabled, .p-button-danger):hover {
background: var(--button-secondary-borderColor);
}
}
input[disabled], div.p-disabled:not(.p-inputswitch) {
background-color: #e3e3e3;
}
}
.appForm__fieldItem {
display: flex;
gap: 0.5rem;
}
.appForm__fileUploadItem {
display: grid;
grid-template-columns: 2fr 0.5fr 0.5fr;
> div {
display: flex;
align-items: center;
&:nth-of-type(2) {
justify-content: center;
}
&:nth-of-type(3) {
justify-content: flex-end;
}
}
}
.appForm__fileUploadItemName {
color: var(--global-textColor);
font-style: italic;
}
.appForm__row {
display: flex;
gap: 7px;
align-items: center;
}
.appForm__col {
display: flex;
flex-direction: column;
gap: 7px;
label {
font-weight: 400;
}
}
.appForm__cols {
display: grid;
gap: 0.5rem;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
width: 100%;
> div {
display: flex;
flex-direction: column;
gap: 14px;
}
> div:not(.appForm__field) {
label {
font-weight: 400;
}
}
}
.appForm__repeaterItem {
padding: 0.5rem 0.5rem 0.5rem 1rem;
border-left: 3px solid #dadada;
&:hover {
border-color: var(--button-secondary-background);
background: #FCF7E7;
}
}
.appForm__faqHeaderControls {
display: flex;
gap: 1rem;
button {
flex: 0 0 auto;
}
> div {
flex: 1 1 auto;
}
}
.appForm__faqTab {
display: flex;
justify-content: space-between;
gap: 1rem;
}
.appForm__faqTabItem {
display: flex;
gap: 0.5rem;
align-items: center;
.p-togglebutton[data-p-highlight="true"] {
.p-button:not(.p-button-danger) {
background: var(--menuitem-active-background);
border: 1px solid var(--menuitem-active-background);
}
}
}
.appForm__content {
p {
margin: 0;
&.ql-indent-1 {
padding-left: 3em;
}
&.ql-indent-2 {
padding-left: 6em;
}
&.ql-indent-3 {
padding-left: 9em;
}
&.ql-indent-4 {
padding-left: 12em;
}
&.ql-indent-5 {
padding-left: 15em;
}
&.ql-indent-6 {
padding-left: 18em;
}
&.ql-indent-7 {
padding-left: 21em;
}
}
h2 {
margin-bottom: 15px;
font-size: 1.5em;
}
h3 {
font-size: 1.2em;
margin-bottom: 10px;
}
li[data-list="bullet"] {
list-style: disc;
}
}