File size: 2,133 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
@import "@wordpress/base-styles/breakpoints";
@mixin input-style {
background: #fff;
box-sizing: border-box;
box-shadow: 0 5px 10px 0 #0000000d;
border: 1px solid transparent;
/* stylelint-disable-next-line */
border-radius: 8px;
padding: 0.625rem 1.5rem;
}
.domain-analyzer {
p + .domain-analyzer--form {
margin-top: 2.5rem;
@media (max-width: $break-small) {
margin-top: 2.25rem;
}
}
// subtract the height of the domain-analyzer--msg hidden element
margin-bottom: -1.5rem;
}
.domain-analyzer--form-container {
display: flex;
position: relative;
@media (min-width: $break-small + 1px) {
@include input-style;
gap: 1rem;
.col-1 {
flex: 1;
}
.col-2 {
display: flex;
align-items: center;
width: fit-content;
}
}
@media (max-width: $break-small) {
flex-direction: column;
justify-content: space-between;
gap: 1.5rem;
.button-action {
width: 100%;
justify-content: center;
}
}
input {
width: 100%;
border: none;
padding: 0;
font-family: Recoleta, "Noto Serif", Georgia, "Times New Roman", Times, serif;
font-size: 2.75rem;
/* stylelint-disable-next-line */
line-height: 4.75rem;
color: var(--studio-gray-100);
&::placeholder {
color: var(--studio-gray-40);
}
&:focus {
outline: none;
}
@media (max-width: $break-small) {
@include input-style;
font-size: 1.5rem;
line-height: 2;
}
}
}
.domain-analyzer--form {
&.is-error {
@media (min-width: $break-small + 1px) {
.domain-analyzer--form-container {
border: 1px solid var(--studio-red-50);
}
}
@media (max-width: $break-small) {
input {
border: 1px solid var(--studio-red-50);
}
}
}
}
.domain-analyzer--msg {
margin-top: 0.5rem;
@media (min-width: $break-small + 1px) {
position: absolute;
left: 0;
margin-top: 1.5rem;
}
p {
font-size: 1rem !important;
margin: 0;
}
.center {
text-align: center;
}
.vis-hidden {
visibility: hidden;
}
.error {
color: var(--studio-red-50) !important;
svg {
top: 4px;
position: relative;
fill: var(--studio-red-50);
transform: rotate(180deg);
}
}
}
|