| 1 |
/** |
| 2 |
* Form Templates Page Styles |
| 3 |
* |
| 4 |
* This file includes all CSS rules specifically for the Form Templates page. |
| 5 |
*/ |
| 6 |
|
| 7 |
/** |
| 8 |
* Page General Styles |
| 9 |
* |
| 10 |
* This section defines the basic typography and layout styles for the Form Templates page. |
| 11 |
*/ |
| 12 |
#frm-form-templates-page ul, |
| 13 |
#frm-form-templates-page li { |
| 14 |
margin: 0; |
| 15 |
} |
| 16 |
|
| 17 |
#frm-form-templates-page .frm-upgrade-bar { |
| 18 |
display: none; |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* Sidebar Styles |
| 23 |
* |
| 24 |
* Defines the layout and styling for the sidebar, including scroll behavior. |
| 25 |
*/ |
| 26 |
#frm-form-templates-page .frm-right-panel { |
| 27 |
padding: 2px; |
| 28 |
overflow-y: initial; |
| 29 |
} |
| 30 |
|
| 31 |
#frm-form-templates-page .frm-scrollbar-wrapper { |
| 32 |
padding: var(--gap-md) var(--gap-sm); |
| 33 |
} |
| 34 |
|
| 35 |
/* Search Box */ |
| 36 |
#frm-form-templates-page .frm-search { |
| 37 |
float: none; |
| 38 |
padding: 0 var(--gap-2xs); |
| 39 |
} |
| 40 |
|
| 41 |
#template-search-input { |
| 42 |
width: 100%; |
| 43 |
} |
| 44 |
|
| 45 |
/* Categories List */ |
| 46 |
.frm-form-templates-cat-item { |
| 47 |
cursor: pointer; |
| 48 |
padding: var(--gap-xs); |
| 49 |
border-radius: var(--small-radius); |
| 50 |
background-color: transparent; |
| 51 |
transition: background-color 250ms ease-out; |
| 52 |
} |
| 53 |
|
| 54 |
.frm-form-templates-cat-item:hover { |
| 55 |
background-color: var(--grey-100); |
| 56 |
} |
| 57 |
|
| 58 |
.frm-form-templates-cat-item > * { |
| 59 |
z-index: 2; |
| 60 |
} |
| 61 |
|
| 62 |
.frm-form-templates-cat-text { |
| 63 |
color: var(--grey-900); |
| 64 |
} |
| 65 |
|
| 66 |
.frm-form-templates-cat-count { |
| 67 |
color: var(--grey-400); |
| 68 |
} |
| 69 |
|
| 70 |
.frm-current .frm-form-templates-cat-text, |
| 71 |
.frm-current .frm-form-templates-cat-count { |
| 72 |
color: var(--primary-500); |
| 73 |
} |
| 74 |
|
| 75 |
/** |
| 76 |
* Page Content Styles |
| 77 |
* |
| 78 |
* Focuses on the main content area, laying out the various elements and components. |
| 79 |
*/ |
| 80 |
.frm-form-templates-grid-layout { |
| 81 |
display: grid; |
| 82 |
grid-template-columns: repeat(auto-fill, minmax(308px, 1fr)); |
| 83 |
grid-auto-rows: max-content; |
| 84 |
gap: var(--gap-sm); |
| 85 |
} |
| 86 |
|
| 87 |
.frm-form-templates-grid-layout > * { |
| 88 |
grid-column: span 1; |
| 89 |
} |
| 90 |
|
| 91 |
/* Create a blank form */ |
| 92 |
.frm-form-templates-create-button { |
| 93 |
gap: 10px; |
| 94 |
color: var(--grey-900); |
| 95 |
background-color: transparent; |
| 96 |
border: 1px dashed var(--grey-400); |
| 97 |
border-radius: var(--small-radius); |
| 98 |
padding: calc(var(--gap-sm) - 2px) var(--gap-sm); |
| 99 |
transition: background-color 200ms ease-out; |
| 100 |
cursor: pointer; |
| 101 |
box-shadow: var(--box-shadow-xs); |
| 102 |
} |
| 103 |
|
| 104 |
.frm-form-templates-create-button:hover { |
| 105 |
background-color: var(--grey-50); |
| 106 |
} |
| 107 |
|
| 108 |
.frm-form-templates-create-button:focus-within { |
| 109 |
outline: 1px solid var(--primary-700); |
| 110 |
border-color: var(--primary-700); |
| 111 |
} |
| 112 |
|
| 113 |
#frm-form-templates-create-form .frmsvg { |
| 114 |
width: 20px; |
| 115 |
height: 20px; |
| 116 |
color: var(--grey-500); |
| 117 |
background: var(--grey-100); |
| 118 |
border-radius: var(--small-radius); |
| 119 |
padding: calc(var(--gap-2xs) + 2px); |
| 120 |
} |
| 121 |
|
| 122 |
/* Templates item */ |
| 123 |
.frm-form-templates-item-icon { |
| 124 |
flex-shrink: 0; |
| 125 |
} |
| 126 |
|
| 127 |
#frm-form-templates-list .frm-form-templates-item-icon { |
| 128 |
display: none; |
| 129 |
} |
| 130 |
|
| 131 |
.frm-form-templates-item-body { |
| 132 |
display: flex; |
| 133 |
flex-direction: column; |
| 134 |
gap: calc(var(--gap-xs) - 2px); |
| 135 |
min-width: 0; /* Fix for truncated text within a flexbox layout */ |
| 136 |
flex-grow: 1; |
| 137 |
} |
| 138 |
|
| 139 |
.frm-form-templates-item-title, |
| 140 |
.frm-form-templates-item-title-text { |
| 141 |
display: flex; |
| 142 |
gap: 6px; |
| 143 |
align-items: center; |
| 144 |
margin: 0; |
| 145 |
} |
| 146 |
|
| 147 |
.frm-form-templates-item-title-text { |
| 148 |
width: calc(100% - 24px); |
| 149 |
font-size: var(--text-sm); |
| 150 |
} |
| 151 |
|
| 152 |
.frm-form-templates-item-lock-icon .frmsvg { |
| 153 |
display: flex; |
| 154 |
width: 11px; |
| 155 |
height: 13px; |
| 156 |
flex-shrink: 0; |
| 157 |
} |
| 158 |
|
| 159 |
.frm-form-templates-item-title-text > span { |
| 160 |
white-space: nowrap; |
| 161 |
overflow: hidden; |
| 162 |
text-overflow: ellipsis; |
| 163 |
} |
| 164 |
|
| 165 |
a.frm-form-templates-item-favorite-button { |
| 166 |
display: none; |
| 167 |
transition: color 200ms ease-out; |
| 168 |
color: var(--grey-900); |
| 169 |
} |
| 170 |
|
| 171 |
.frm-form-templates-favorite-item .frm-form-templates-item-favorite-button { |
| 172 |
display: flex; |
| 173 |
} |
| 174 |
|
| 175 |
a.frm-form-templates-item-favorite-button:hover, |
| 176 |
.frm-form-templates-favorite-item .frm-form-templates-item-favorite-button { |
| 177 |
color: var(--error-500); |
| 178 |
} |
| 179 |
|
| 180 |
.frm-form-templates-favorite-item a.frm-form-templates-item-favorite-button:hover { |
| 181 |
color: var(--error-700); |
| 182 |
} |
| 183 |
|
| 184 |
.frm-form-templates-custom-item-trash-button { |
| 185 |
display: none; |
| 186 |
} |
| 187 |
|
| 188 |
.frm-form-templates-custom-item-trash-button .frmsvg { |
| 189 |
width: 18px; |
| 190 |
height: 18px; |
| 191 |
color: var(--grey-900); |
| 192 |
transition: color 200ms ease-out; |
| 193 |
z-index: 2; |
| 194 |
} |
| 195 |
|
| 196 |
.frm-form-templates-custom-item-trash-button:hover .frmsvg { |
| 197 |
color: var(--primary-500); |
| 198 |
} |
| 199 |
|
| 200 |
.frm-form-templates-custom-item-trash-button + .frm-vertical-line { |
| 201 |
display: none; |
| 202 |
} |
| 203 |
|
| 204 |
.frm-form-templates-item-content { |
| 205 |
position: relative; |
| 206 |
} |
| 207 |
|
| 208 |
.frm-form-templates-item-buttons { |
| 209 |
display: none; |
| 210 |
position: absolute; |
| 211 |
gap: 12px; |
| 212 |
margin-top: calc(var(--gap-2xs) + 2px); |
| 213 |
z-index: 2; |
| 214 |
} |
| 215 |
|
| 216 |
p.frm-form-templates-item-description { |
| 217 |
font-size: var(--text-xs); |
| 218 |
margin: 0; |
| 219 |
min-height: var(--h-md); |
| 220 |
|
| 221 |
display: -webkit-box; /* Required for line-clamp to work */ |
| 222 |
-webkit-box-orient: vertical; /* Required for line-clamp to work */ |
| 223 |
-webkit-line-clamp: 2; |
| 224 |
text-overflow: ellipsis; |
| 225 |
overflow: hidden; |
| 226 |
} |
| 227 |
|
| 228 |
.frm-card-item:hover .frm-form-templates-item-description, |
| 229 |
.frm-card-item:focus-within .frm-form-templates-item-description { |
| 230 |
visibility: hidden; |
| 231 |
opacity: 0; |
| 232 |
} |
| 233 |
|
| 234 |
.frm-card-item:hover .frm-form-templates-item-buttons, |
| 235 |
.frm-card-item:focus-within .frm-form-templates-item-buttons { |
| 236 |
display: flex; |
| 237 |
} |
| 238 |
|
| 239 |
.frm-card-item:not(.frm-form-templates-favorite-item):hover .frm-form-templates-item-favorite-button, |
| 240 |
.frm-form-templates-custom-item:hover .frm-form-templates-custom-item-trash-button, |
| 241 |
.frm-form-templates-custom-item:hover .frm-form-templates-custom-item-trash-button + .frm-vertical-line { |
| 242 |
display: flex; |
| 243 |
} |
| 244 |
|
| 245 |
/* Application templates */ |
| 246 |
#frm-form-templates-applications img { |
| 247 |
width: 64px; |
| 248 |
height: 64px; |
| 249 |
object-fit: contain; |
| 250 |
border: 1px solid var(--grey-200); |
| 251 |
border-radius: var(--small-radius); |
| 252 |
box-sizing: border-box; |
| 253 |
} |
| 254 |
|
| 255 |
#frm-form-templates-applications .frm-meta-tag { |
| 256 |
max-width: max-content; |
| 257 |
} |
| 258 |
|
| 259 |
.frm-form-templates-application-item { |
| 260 |
cursor: pointer; |
| 261 |
} |
| 262 |
|
| 263 |
/** |
| 264 |
* Empty State Styles |
| 265 |
* |
| 266 |
* Provides styles for when the Form Templates page is empty. |
| 267 |
*/ |
| 268 |
#frm-form-templates-empty-state { |
| 269 |
height: 100%; |
| 270 |
margin-top: calc(-1 * var(--gap-md)); |
| 271 |
} |
| 272 |
|
| 273 |
#frm-form-templates-empty-state .frm-form-templates-text { |
| 274 |
max-width: 420px; |
| 275 |
} |
| 276 |
|
| 277 |
/** |
| 278 |
* Modal Styles |
| 279 |
* |
| 280 |
* Customizes the look of modals on the Form Templates page. |
| 281 |
*/ |
| 282 |
/* Upgrade Modal */ |
| 283 |
#frm-form-upgrade-modal .frm-upgrade-modal-plan-icon { |
| 284 |
color: var(--error-500); |
| 285 |
} |
| 286 |
|
| 287 |
/* Code from email modal */ |
| 288 |
#frm_code_from_email_options:not(.frm_hidden) { |
| 289 |
display: flex; |
| 290 |
} |
| 291 |
|
| 292 |
#frm_code_from_email_options { |
| 293 |
gap: calc(var(--gap-xs) + var(--gap-2xs)); |
| 294 |
color: var(--primary-500); |
| 295 |
} |
| 296 |
|
| 297 |
/** |
| 298 |
* Helper Classes |
| 299 |
* |
| 300 |
* Provides helper classes for common layout patterns and animations in the |
| 301 |
* Form Templates page. |
| 302 |
*/ |
| 303 |
|
| 304 |
.frm_hidden { |
| 305 |
display: none; /* Load this last for overrides */ |
| 306 |
} |
| 307 |
|
| 308 |
.frm-form-templates-divider { |
| 309 |
border-top: 1px solid var(--grey-200); |
| 310 |
margin: 0; |
| 311 |
} |
| 312 |
|