* feat: Remove foundation * chore: Minor fix * Minor fix * Update _forms.scss * chore: More changes * chore: Minor fix * chore: Clean up * fix: font-weight * chore: More changes * chore: Setting page * chore: Editor fix * chore: Reports page * chore: More changes * chore: Minor changes * chore: More fixes * chore: More changes * chore: More changes * chore: More changes * chore: Minor fix * chore: More changes * chore: More changes * chore: More changes * chore: More changes * chore: Clean up * chore: Minor fix * chore: Clean ups * chore: Rename basic file * chore: Remove unused files * chore: Fix expanded input * Fix campaign rendering * chore: Clean up * chore: More changes * chore: Remove unused files * fix: Overflow issue * chore: Minor fix * chore: Clean up * chore: Minor fix * chore: Remove unused files * chore: Minor fix * chore: Minor fix * fix: autoprefixer start/end value has mixed support * chore: Minor fix * chore: Remove unused files * chore: Minor fix * chore: Minor fix * chore: Minor fix * Add responsive design to label settings * fix inbox view * chore: Minor fix * w-60% to w-2/3 * chore: Fix team * chore: Fix button * w-[34%] to w-1/3 * chore: Fix border * Add support mobile views in team page * chore: fix snackbar * chore: clean up * chore: Clean up * fix: loading state alignment * fix: alert styles * chore: Minor fix * fix: spacing for agent bot row * fix: layout * fix: layout for SLA * fix: checkbox * fix: SLA checkbox spacing * Update inbox settings pages * fix macros listing page layout * fix canned responses * chore: Fix bot page * chore: fix automation page * chore: fix agents page * chore: fix canned response editor * chore: Fix settings table * chore: fix settings layout * chore: Minor fix * fix: canned response table layou * fix: layout for table header for webhooks * fix: webhook row layout * fix: dashboard app modal layout * fix: add title to canned response truncated shortcode * fix: dashboard apps row layuot * fix: layouts hooks * fix: body color * fix: delete action color in portal locales * fix: text color for campagin title * fix: success button color --------- Co-authored-by: Pranav <pranav@chatwoot.com> Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
141 lines
3.7 KiB
SCSS
141 lines
3.7 KiB
SCSS
// scss-lint:disable QualifyingElement
|
|
|
|
// Base typography
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
@apply font-medium text-slate-800 dark:text-slate-50;
|
|
}
|
|
|
|
p {
|
|
text-rendering: optimizeLegibility;
|
|
word-spacing: 0.12em;
|
|
|
|
@apply mb-2 leading-[1.65] text-sm;
|
|
|
|
a {
|
|
@apply text-woot-500 dark:text-woot-500 cursor-pointer;
|
|
}
|
|
}
|
|
|
|
a {
|
|
@apply text-sm;
|
|
}
|
|
|
|
hr {
|
|
@apply clear-both max-w-full h-0 my-5 mx-0 border-slate-300 dark:border-slate-600;
|
|
}
|
|
|
|
// Form elements
|
|
label {
|
|
@apply text-slate-800 dark:text-slate-200 block m-0 leading-7 text-sm font-medium;
|
|
|
|
&.error {
|
|
input {
|
|
@apply mb-1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.input-wrap,
|
|
.help-text {
|
|
@apply text-slate-800 dark:text-slate-100 text-sm font-medium;
|
|
|
|
.help-text {
|
|
@apply font-normal text-slate-600 dark:text-slate-400;
|
|
}
|
|
}
|
|
|
|
// Focus outline removal
|
|
.button,
|
|
textarea,
|
|
input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
// Inputs
|
|
input[type='text'],
|
|
input[type='number'],
|
|
input[type='password'],
|
|
input[type='date'],
|
|
input[type='email'],
|
|
input[type='url'] {
|
|
@apply block box-border w-full transition-colors focus:border-woot-500 dark:focus:border-woot-600 duration-[0.25s] ease-[ease-in-out] h-10 appearance-none mx-0 mt-0 mb-4 p-2 rounded-md text-base font-normal bg-white dark:bg-slate-900 focus:bg-white focus:dark:bg-slate-900 text-slate-900 dark:text-slate-100 border border-solid border-slate-200 dark:border-slate-600;
|
|
|
|
&[disabled] {
|
|
@apply bg-slate-200 dark:bg-slate-700 text-slate-400 dark:text-slate-400 border-slate-200 dark:border-slate-600 cursor-not-allowed;
|
|
}
|
|
}
|
|
|
|
input[type='file'] {
|
|
@apply bg-white dark:bg-slate-800 leading-[1.15] mb-4;
|
|
}
|
|
|
|
// Select
|
|
select {
|
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' style='fill: rgb%28110, 111, 115%29'></polygon></svg>");
|
|
background-position: right -1rem center;
|
|
background-size: 9px 6px;
|
|
@apply h-10 mx-0 mt-0 mb-4 bg-origin-content focus-visible:outline-none bg-no-repeat py-2 pr-6 pl-2 rounded-md w-full text-base font-normal appearance-none transition-colors focus:border-woot-500 dark:focus:border-woot-600 duration-[0.25s] ease-[ease-in-out] bg-white dark:bg-slate-900 text-slate-900 dark:text-slate-100 border border-solid border-slate-200 dark:border-slate-600;
|
|
}
|
|
|
|
// Textarea
|
|
textarea {
|
|
@apply block box-border w-full transition-colors focus:border-woot-500 dark:focus:border-woot-600 duration-[0.25s] ease-[ease-in-out] h-16 appearance-none mx-0 mt-0 mb-4 p-2 rounded-md text-base font-normal bg-white dark:bg-slate-900 focus:bg-white focus:dark:bg-slate-900 text-slate-900 dark:text-slate-100 border border-solid border-slate-200 dark:border-slate-600;
|
|
|
|
&[disabled] {
|
|
@apply bg-slate-200 dark:bg-slate-700 text-slate-400 dark:text-slate-400 border-slate-200 dark:border-slate-600 cursor-not-allowed;
|
|
}
|
|
}
|
|
|
|
// Error handling
|
|
.has-multi-select-error {
|
|
div.multiselect {
|
|
@apply mb-1;
|
|
}
|
|
}
|
|
|
|
.error {
|
|
input,
|
|
input:not([type]),
|
|
textarea,
|
|
select,
|
|
.multiselect > .multiselect__tags,
|
|
.multiselect:not(.no-margin) {
|
|
@apply border border-solid border-red-400 dark:border-red-400 mb-1;
|
|
}
|
|
|
|
.message {
|
|
@apply text-red-400 dark:text-red-400 block text-sm mb-2.5 w-full;
|
|
}
|
|
}
|
|
|
|
.input-group.small {
|
|
input {
|
|
@apply text-sm h-8;
|
|
}
|
|
|
|
.error {
|
|
@apply border-red-400 dark:border-red-400;
|
|
}
|
|
}
|
|
|
|
// Code styling
|
|
code {
|
|
font-family: 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas',
|
|
'"Liberation Mono"', '"Courier New"', 'monospace';
|
|
@apply text-xs border-0;
|
|
|
|
&.hljs {
|
|
@apply bg-slate-50 dark:bg-slate-700 text-slate-800 dark:text-slate-50 rounded-lg p-5;
|
|
|
|
.hljs-number,
|
|
.hljs-string {
|
|
@apply text-red-800 dark:text-red-400;
|
|
}
|
|
}
|
|
}
|