| 1 |
|
| 2 |
.blueprint-form-layout { |
| 3 |
--cs-blueprint-sidebar-width: 220px; |
| 4 |
|
| 5 |
display: grid; |
| 6 |
grid-template-columns: var(--cs-blueprint-sidebar-width) 1fr; |
| 7 |
gap: 0; |
| 8 |
border: 1px solid var(--cs-color-border); |
| 9 |
border-radius: 0 0 var(--cs-card-radius) var(--cs-card-radius); |
| 10 |
overflow: hidden; |
| 11 |
|
| 12 |
@media (width <= 960px) { |
| 13 |
grid-template-columns: 1fr; |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
.blueprint-form-sidebar { |
| 18 |
display: flex; |
| 19 |
flex-direction: column; |
| 20 |
background: var(--cs-color-surface-subtle); |
| 21 |
padding: 0; |
| 22 |
|
| 23 |
ul { |
| 24 |
flex: 0 0 auto; |
| 25 |
list-style: none; |
| 26 |
margin: 0; |
| 27 |
padding: 0; |
| 28 |
} |
| 29 |
|
| 30 |
li { |
| 31 |
margin: 0; |
| 32 |
} |
| 33 |
|
| 34 |
&__item { |
| 35 |
display: block; |
| 36 |
inline-size: 100%; |
| 37 |
padding: 12px 16px; |
| 38 |
border: none; |
| 39 |
border-block-end: 1px solid var(--cs-color-border-subtle); |
| 40 |
border-inline-end: 1px solid var(--cs-color-border); |
| 41 |
border-radius: 0; |
| 42 |
background: var(--cs-color-surface-subtle); |
| 43 |
color: var(--cs-color-text); |
| 44 |
cursor: pointer; |
| 45 |
font-weight: 400; |
| 46 |
text-align: start; |
| 47 |
transition: |
| 48 |
background 150ms ease, |
| 49 |
color 150ms ease; |
| 50 |
|
| 51 |
&:hover, |
| 52 |
&:focus-visible { |
| 53 |
background: var(--cs-color-accent-subtle); |
| 54 |
|
| 55 |
// The lighter accent reaches only 3.8:1 on this background; the |
| 56 |
// hover shade clears AA for normal text. |
| 57 |
color: var(--cs-color-accent-hover); |
| 58 |
} |
| 59 |
|
| 60 |
// The fill alone separates the focused item from its neighbours by |
| 61 |
// 1.26:1, so keyboard focus needs a border of its own. Drawn inside the |
| 62 |
// item, which sits flush against the ones above and below it. |
| 63 |
&:focus-visible { |
| 64 |
outline: 2px solid var(--cs-color-accent-hover); |
| 65 |
outline-offset: -2px; |
| 66 |
} |
| 67 |
|
| 68 |
&.is-active { |
| 69 |
background: var(--cs-color-surface); |
| 70 |
color: var(--cs-color-accent); |
| 71 |
border-inline-end: none; |
| 72 |
} |
| 73 |
} |
| 74 |
|
| 75 |
&__generate-wrap { |
| 76 |
flex: 1 1 auto; |
| 77 |
min-block-size: 0; |
| 78 |
border-inline-end: 1px solid var(--cs-color-border-subtle); |
| 79 |
padding: 16px; |
| 80 |
display: flex; |
| 81 |
flex-direction: column; |
| 82 |
} |
| 83 |
|
| 84 |
&__generate { |
| 85 |
background-color: var(--cs-color-accent); |
| 86 |
border: none; |
| 87 |
border-radius: 5px; |
| 88 |
box-shadow: 0 1px 3px rgb(0 0 0 / 12%); |
| 89 |
color: #fff; |
| 90 |
cursor: pointer; |
| 91 |
display: block; |
| 92 |
font-size: 14px; |
| 93 |
font-weight: 600; |
| 94 |
line-height: 14px; |
| 95 |
margin: 0; |
| 96 |
padding: 12px; |
| 97 |
text-align: center; |
| 98 |
transition: box-shadow 0.15s ease; |
| 99 |
margin-block-start: auto; |
| 100 |
inline-size: 100%; |
| 101 |
|
| 102 |
&:hover, |
| 103 |
&:focus-visible { |
| 104 |
box-shadow: 0 2px 6px rgb(0 0 0 / 16%); |
| 105 |
outline: none; |
| 106 |
} |
| 107 |
} |
| 108 |
} |
| 109 |
|
| 110 |
.blueprint-form-content { |
| 111 |
background: var(--cs-color-surface); |
| 112 |
display: flex; |
| 113 |
flex-direction: column; |
| 114 |
gap: 12px; |
| 115 |
padding: 28px 32px; |
| 116 |
|
| 117 |
h2 { |
| 118 |
margin: 0; |
| 119 |
font-size: 20px; |
| 120 |
font-weight: 500; |
| 121 |
color: var(--cs-color-text); |
| 122 |
} |
| 123 |
|
| 124 |
input[type='date']='date'], |
| 125 |
input[type='datetime-local']='datetime-local'], |
| 126 |
input[type='datetime']='datetime'], |
| 127 |
input[type='email']='email'], |
| 128 |
input[type='month']='month'], |
| 129 |
input[type='number']='number'], |
| 130 |
input[type='password']='password'], |
| 131 |
input[type='search']='search'], |
| 132 |
input[type='tel']='tel'], |
| 133 |
input[type='text']='text'], |
| 134 |
input[type='time']='time'], |
| 135 |
input[type='url']='url'], |
| 136 |
input[type='week']='week'] { |
| 137 |
padding: 0 8px; |
| 138 |
line-height: 3; |
| 139 |
min-block-size: 30px; |
| 140 |
} |
| 141 |
|
| 142 |
select { |
| 143 |
padding: 0 8px; |
| 144 |
min-block-size: 30px; |
| 145 |
line-height: 3; |
| 146 |
max-inline-size: 100%; |
| 147 |
} |
| 148 |
} |
| 149 |
|
| 150 |
.blueprint-form-section-description { |
| 151 |
color: var(--cs-color-text-muted); |
| 152 |
font-size: 0.95rem; |
| 153 |
line-height: 1.4; |
| 154 |
margin: 0 0 24px; |
| 155 |
} |
| 156 |
|
| 157 |
.blueprint-form-content .blueprint-form-field label { |
| 158 |
font-weight: 600; |
| 159 |
font-size: 14px; |
| 160 |
line-height: 1.5; |
| 161 |
color: var(--cs-color-text); |
| 162 |
} |
| 163 |
|