0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-31 03:09:19 -05:00
penpot/frontend/resources/styles/main/partials/af-signup-questions.scss
2022-01-12 11:49:03 +01:00

259 lines
5.5 KiB
SCSS

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) UXBOX Labs SL
.af-form {
background-color: $color-white;
color: $color-gray-60 !important;
max-width: 760px !important;
overflow-y: auto;
padding: 3rem;
width: 100% !important;
h1,
h3 {
font-family: "worksans", sans-serif !important;
margin-bottom: 0.8rem;
font-weight: 500 !important;
}
h1 {
font-size: $fs38;
}
strong {
font-weight: 500;
}
p,
label {
font-family: "worksans", sans-serif !important;
font-size: $fs14;
}
form {
max-width: 760px;
width: 100%;
}
button {
font-family: "worksans", sans-serif !important;
}
.af-choice,
.af-choice-multiple {
display: flex;
flex-wrap: wrap;
}
.af-choice-option {
max-width: 33%;
width: 100%;
label {
font-family: "worksans", sans-serif !important;
font-size: $fs14;
padding-left: 0;
}
}
.af-choice-multiple {
.af-choice-option {
max-width: 50%;
width: 100%;
}
}
.af-divider-block {
/* margin-bottom: 2rem; */
p {
&::after,
&::before {
border-color: transparent;
}
}
}
.af-dropdown-text,
.text {
font-family: "worksans", sans-serif !important;
}
.af-step-next {
display: flex;
margin-top: 2rem;
}
.af-step-next button {
color: $color-black;
background-color: $color-primary;
max-width: 180px;
margin-left: auto;
}
.af-step-previous {
margin-top: -40px;
}
.af-step-button {
text-align: left;
}
.af-field-input {
margin: 0.5rem 0;
}
.af-field-input input[type="text"],
.af-choice-option label:before,
.af-dropdown {
border-color: #c5c6c9 !important;
}
.af-choice-option input:checked + label:before,
.af-legal input:checked + label:before {
background-color: $color-primary;
}
.af-field-use_of_penpot .af-choice-option input:checked + label,
.af-field-previous_design_tool .af-choice-option input:checked + label {
&::before {
background-color: transparent;
border: 2px solid $color-primary !important;
}
}
.af-field-use_of_penpot .af-choice-option label {
padding-top: 6rem;
background-size: 120px;
min-height: 150px;
}
.af-field-use_of_penpot .af-choice-option:nth-child(1) label {
background-image: url("../images/form/use-for-1.jpg");
}
.af-field-use_of_penpot .af-choice-option:nth-child(2) label {
background-image: url("../images/form/use-for-2.jpg");
}
.af-field-use_of_penpot .af-choice-option:nth-child(3) label {
background-image: url("../images/form/use-for-3.jpg");
}
.af-field-use_of_penpot .af-choice-option:nth-child(4) label {
background-image: url("../images/form/use-for-4.jpg");
}
.af-field-use_of_penpot label,
.af-field-previous_design_tool label {
display: flex;
padding-top: 5rem;
justify-content: center;
background-size: 50px;
background-repeat: no-repeat;
background-position: center 1rem;
margin: 1rem !important;
min-height: 130px;
position: relative;
text-align: center;
&:hover {
background-color: transparent;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}
&::before {
background-color: transparent;
border-radius: 4px;
min-width: 100%;
min-height: 100%;
position: absolute;
top: 0;
left: 0;
margin: 0;
}
&::after {
display: none !important;
}
}
.af-field-previous_design_tool .af-choice-option:nth-child(1) label {
background-image: url("../images/form/figma.png");
}
.af-field-previous_design_tool .af-choice-option:nth-child(2) label {
background-image: url("../images/form/sketch.png");
}
.af-field-previous_design_tool .af-choice-option:nth-child(3) label {
background-image: url("../images/form/adobe-xd.png");
}
.af-field-previous_design_tool .af-choice-option:nth-child(4) label {
background-image: url("../images/form/uxpin.png");
}
.af-field-previous_design_tool .af-choice-option:nth-child(5) label {
background-image: url("../images/form/invision.png");
}
.af-field-previous_design_tool .af-choice-option:nth-child(6) label {
background-image: url("../images/form/never-used.png");
}
.af-field-previous_design_tool .af-choice-option:nth-child(7) label,
.af-field-use_of_penpot .af-choice-option:nth-child(5) label {
justify-content: flex-start;
min-height: auto;
padding-left: 1.4rem;
padding-top: 0;
&:hover {
box-shadow: none;
}
&::before {
content: "";
background-color: #fff;
border: 1px solid #e0e6f0;
border-width: 1px;
border-radius: 50%;
min-width: 20px;
min-height: 20px;
box-sizing: border-box;
margin-left: 4px;
}
&::after {
content: "";
position: absolute;
opacity: 0;
width: 5px;
height: 8px;
margin-top: -1px;
border: solid #fff;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
}
.af-field-use_of_penpot .af-choice-option:nth-child(5) label {
&::before {
border-radius: 3px;
}
}
.af-field-previous_design_tool
.af-choice-option:nth-child(7)
input:checked
+ label,
.af-field-use_of_penpot .af-choice-option:nth-child(5) input:checked + label {
&::before {
background-color: $color-primary;
}
&::after {
opacity: 1;
}
}
}