ces-vue-ui
Version:
A Vue.js component library using Ant Design Vue components to build custom ces ui components library
2,059 lines (1,702 loc) • 38.7 kB
text/less
@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@200;300;400;500;600;700;800;900;1000&display=swap");
@import 'ant-design-vue/lib/style/reset.css';
@import '@/assets/styles/variables.less';
@import '@/assets/styles/bootstrapBase.less';
@border-color: #cccccc;
@primary-bg-light: #eaf4ff;
@table-hover-bg-light: #fafafa;
@bg-white: #fff;
body {
margin: 0;
}
a {
text-decoration: none ;
}
// material icon import
.material-symbols-rounded {
font-variation-settings: 'FILL'0, 'wght'400, 'GRAD'0, 'opsz'24;
&.fill {
font-variation-settings: 'FILL'1, 'wght'100, 'GRAD'0, 'opsz'24;
}
.width-100 & {
font-variation-settings: 'FILL'0, 'wght'100, 'GRAD'0, 'opsz'24;
}
.width-200 & {
font-variation-settings: 'FILL'0, 'wght'200, 'GRAD'0, 'opsz'24;
}
.width-300 & {
font-variation-settings: 'FILL'0, 'wght'300, 'GRAD'0, 'opsz'24;
}
.width-400 & {
font-variation-settings: 'FILL'0, 'wght'400, 'GRAD'0, 'opsz'24;
}
.width-500 & {
font-variation-settings: 'FILL'0, 'wght'500, 'GRAD'0, 'opsz'24;
}
.width-600 & {
font-variation-settings: 'FILL'0, 'wght'600, 'GRAD'0, 'opsz'24;
}
.width-700 & {
font-variation-settings: 'FILL'0, 'wght'700, 'GRAD'0, 'opsz'24;
}
}
.bg-neutral-200 {
background: @gray-2 ;
}
/* Slim Scroll Styles Start */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-thumb {
background-color: #b4bfca;
border: 2px solid transparent;
border-radius: 10px;
background-clip: content-box;
&:hover {
background-color: #778b9f;
}
}
::-webkit-scrollbar-track {
margin: 2px;
// background-color: #e4e8ed;
}
/* SideDrawerMenu CSS Start */
.main-left-drawer {
background-color: #001529 ;
.ant-drawer-body {
padding: 0;
}
}
/* SideDrawerMenu CSS End */
/* laylout CSS Start */
.ant-layout {
background: @layout-background;
}
/* laylout CSS End */
/* Header CSS Start */
@layout-header-height: 38px;
@layout-header-background: @primary-color;
@layout-background: @main-bg;
@menu-item-height: 35px;
.ant-layout-header {
height: @layout-header-height ;
line-height: @layout-header-height;
color: #707070;
background: #F5FBFF;
padding: 0 6px;
border-bottom: 1px solid @neutral-500;
&.layout-main-header {
height: @layout-header-height;
line-height: @layout-header-height;
color: #fff;
background: @layout-header-background;
border-bottom: none;
* {
color: #fff ;
font-weight: 500;
letter-spacing: 0.2px;
}
}
.ant-menu {
background: @layout-header-background;
}
.ant-breadcrumb {
// line-height: @layout-header-height;
color: @black;
font-weight: 700;
a {
color: @black;
font-weight: 700;
height: auto;
text-decoration: none;
&:hover {
background-color: inherit;
}
}
li {
&:last-child {
color: @gray-7;
a {
color: @gray-7;
}
}
}
}
}
.ant-layout-header.layout-main-header {
position: relative;
z-index: 1;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.25);
padding-right: 1.5rem;
padding-left: 1.5rem;
}
.ant-menu-horizontal .ant-menu-item,
.ant-menu-horizontal .ant-menu-submenu-title {
transition: all 0.3s;
box-shadow: 0px 3px transparent;
}
.ant-menu-horizontal{
.ant-menu-item {
a {
text-decoration: none ;
}
}
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
color: #222222;
font-weight: 700;
background-color: @neutral-200;
}
.ant-menu-dark.ant-menu-horizontal>.ant-menu-item:hover,
.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu:hover,
.ant-menu-dark.ant-menu-horizontal>.ant-menu-submenu-active {
background-color: @primary-dark;
}
.ant-menu.ant-menu-dark .ant-menu-item-selected,
.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected,
.ant-menu.ant-menu-dark .ant-menu-submenu-selected {
background-color: @primary-dark;
box-shadow: 0px 3px #ff850e;
position: relative;
z-index: 2;
color: @bg-white;
}
.ant-menu-dark .ant-menu-item a {
text-decoration: none ;
}
// .ant-menu-submenu-popup > .ant-menu {
// background-color: @neutral-200;
// }
.ant-menu-submenu-popup {
.ant-menu-vertical {
.ant-menu-item{
height: @menu-item-height;
line-height: @menu-item-height;
}
.ant-menu-item-only-child {
.ant-menu-title-content {
font-weight: 700;
}
}
}
}
.ant-layout-sider {
.ant-layout-sider-children {
.ant-menu {
.ant-menu-submenu-inline {
.ant-menu-submenu-title {
.ant-menu-title-content {
color: @neutral-700;
font-weight: 700;
}
.ant-menu-submenu-arrow {
&.hide {
visibility: hidden;
}
}
}
.ant-menu-item-only-child {
.ant-menu-title-content {
color: @neutral-700;
font-weight: 700;
}
}
}
.ant-menu-submenu-vertical {
.ant-menu-submenu-title {
padding-right: 32px;
.ant-menu-title-content {
color: @neutral-700;
font-weight: 700 ;
}
.ant-menu-submenu-arrow {
visibility: hidden;
}
}
}
.ant-menu-item {
padding-right: 32px;
color: @neutral-700;
font-weight: 700;
}
}
}
}
/* Header CSS End */
/* Side Menu CSS Start */
.ant-layout-sider.bg-white {
a {
color: @neutral-700;
font-weight: 700;
}
.ant-menu-item-selected {
// background-color: fade(@primary-color, 10);
// background-color: transparent;
font-weight: 700;
.ant-menu-title-content {
color: @neutral-900;
font-weight: 700;
}
}
.ant-menu-submenu-selected>.ant-menu-submenu-title {
// background-color: fade(@primary-color, 10);
background-color: @blue-300;
margin-bottom: 0px;
margin-top: 0px;
.ant-menu-title-content {
color: @primary;
font-weight: 700;
}
// border-left: 6px solid #00467E;
}
.ant-menu-inline .ant-menu-item,
.ant-menu-vertical .ant-menu-item,
.ant-menu-inline .ant-menu-submenu-title,
.ant-menu-vertical .ant-menu-submenu-title {
margin-inline: 0px;
a {
text-decoration: none;
}
}
.ant-menu-root.ant-menu-inline-collapsed .ant-menu-item>.ant-menu-inline-collapsed-noicon,
.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu .ant-menu-submenu-title>.ant-menu-inline-collapsed-noicon {
color: @neutral-700;
font-weight: 700;
}
.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title>.ant-menu-inline-collapsed-noicon {
color: @primary-dark;
}
.ant-menu-sub {
.ant-menu-inline {
background: @neutral-200;
}
}
.ant-menu-submenu {
.ant-menu-vertical {
background: @neutral-200;
}
}
.ant-menu-inline .ant-menu-item:not(:last-child) {
margin-bottom: 4px;
}
.ant-menu-inline .ant-menu-item::after {
left: 0;
border-left: 4px solid @neutral-900;
border-right-width: 0px;
}
.ant-menu-inline,
.ant-menu-vertical,
.ant-menu-vertical-left {
border-right: 0px solid #f0f0f0;
}
.ant-menu-inline .ant-menu-item,
.ant-menu-inline .ant-menu-submenu-title {
width: calc(100% + 0px);
}
}
.trigger {
position: absolute;
z-index: 1;
// background-color: #fff !important;
// box-shadow: 4px 4px 4px #00000029;
// border-radius: 0 2px 2px 0 !important;
border: none;
// right: 0;
}
/* Side Menu CSS End */
/* Layout CSS Start */
.ant-layout-sider {
box-shadow: 4px 4px 4px 0px #00000029;
border-right: 1px solid @neutral-500;
.ant-layout-sider-zero-width-trigger {
color: inherit;
background: #fff;
box-shadow: 4px 4px 4px #00000029;
}
}
// @media (max-width:991px) {
// .ant-layout-sider {
// position: absolute;
// z-index: 1;
// }
// }
/* Layout CSS End */
/* Custom CSS Start */
@backgroundOpacityColor: rgb(0 70 126 / 3%);
.ant-input-group>.ant-input-password {
&:last-child {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
&:first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
.ant-input-textarea-show-count::after {
font-size: 12px;
font-weight: 500;
margin-bottom: -22px;
}
/* Heading CSS Start */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
.screen-title,
.card-title,
.title,
.title-sm,
.list-title,
a.ant-typography,
.ant-typography a,
.ant-btn-link,
.ant-dropdown-link {
color: @layout-header-background;
}
.screen-title {
font-size: 1.2rem;
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 800;
line-height: 1.2;
}
.card-title {
font-size: 1rem;
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 600;
line-height: 1.2;
}
@media (min-width: 1200px) {
.card-title {
font-size: 1.125rem;
}
}
.title {
font-size: 1.25rem;
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 400;
line-height: 1.2;
}
.title-sm {
font-size: 1rem;
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2;
}
.list-title {
font-weight: 500;
&-sm {
font-weight: 500;
font-size: 80%;
}
}
.list-subtitle {
color: #6c757d;
font-size: 80%;
}
/* Heading CSS End */
/* Custom Card CSS Start */
.ant-card {
box-shadow: 0px 3px 6px #00000029;
.ant-card {
box-shadow: 0px 1px 4px #00000019;
}
&.no-border-no-shadow {
border: none ;
box-shadow: none ;
}
&.border-top-blue .ant-card-body {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.ant-card-body {
padding: 0rem 1.5rem;
height: 100%;
}
.bg-action-card {
background-color: @neutral-200;
border-top: @neutral-500;
}
&.h-100 {
>.ant-card-body {
height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
}
}
&.card-scroll-body {
>.ant-card-body {
height: calc(100% - 74px - 134px);
overflow: auto;
display: flex;
flex-direction: column;
}
}
&.padding-0 {
>.ant-card-body {
padding: 0px;
}
}
&.padding-x-0 {
>.ant-card-body {
padding-left: 0px;
padding-right: 0px;
}
}
&.padding-x-2 {
>.ant-card-body {
padding-left: 0.7rem;
padding-right: 0.7rem;
}
}
&.padding-y-2 {
>.ant-card-body {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
}
&.padding-y-0 {
>.ant-card-body {
padding-top: 0;
padding-bottom: 0;
}
}
&.padding-2 {
>.ant-card-body {
padding: 0.5rem;
}
}
&.padding-2_5 {
>.ant-card-body {
padding: 0.75rem;
}
}
&.padding-3 {
>.ant-card-body {
padding: 1rem;
}
}
&.mh-42-header {
>.ant-card-head {
border-bottom: 1px solid #CCCCCC;
>.ant-card-head-wrapper {
>.ant-card-head-title {
padding: 8px 0;
color: #595959;
font-weight: 700;
}
}
min-height: 42px;
margin: 0 15px;
padding: 0;
}
>.ant-card-actions {
li {
margin: 0;
.action {
padding: 0.5rem 0;
border-top: 1px solid #CCCCCC;
background-color: #FAFAFA;
font-weight: 700;
}
}
}
}
&.card-head-padding-x-0 {
>.ant-card-head {
padding-left: 0px;
padding-right: 0px;
}
}
}
.ant-card-bordered-s {
border: 1px solid @neutral-500;
}
/* Custom Card CSS End */
/* Collapse CSS Start */
.ant-collapse.ant-collapse-ghost .ant-collapse-item {
background-color: #ffffff;
box-shadow: 0px 1px 5px #00000025;
margin-top: 1rem;
.ant-collapse-header {
font-weight: 600;
position: relative;
z-index: 1;
background-color: @backgroundOpacityColor;
}
&.ant-collapse-item-active .ant-collapse-header {
box-shadow: 0px 1px 3px #00000020;
}
}
/* Collapse CSS End */
/* Table CSS */
// resize column that time getting error
.ant-table-wrapper {
.ant-table-body {
table {
// width: -webkit-fill-available !important;
}
// overflow: auto;
}
}
.ant-table-wrapper.h-100 {
overflow: auto;
// .ant-spin-nested-loading,
// .ant-spin-container,
// .ant-table {
// height: 100%;
// overflow: auto;
// }
// .ant-table-container {
// display: flex;
// flex-direction: column;
// overflow: auto;
// height: 100%;
// }
.ant-table-header {
flex-shrink: 0;
// border: 1px solid #CCCCCC;
// border-bottom: none;
}
.ant-table-body {
height: 100%;
// overflow: auto !important;
// border: 1px solid #CCCCCC;
// border-bottom: none;
// border-top: none;
}
}
.border-tbl.ant-table-wrapper.h-100 {
.ant-table-header {
flex-shrink: 0;
border: 1px solid #cccccc;
border-bottom: none;
}
.ant-table-body {
height: 100%;
overflow: auto ;
border: 1px solid #cccccc;
border-bottom: none;
border-top: none;
}
}
.ant-table-sticky-holder {
overflow: initial ;
}
.custom-table .ant-table,
.custom-table .ant-table-container,
.custom-table .ant-table-content,
.custom-table .ant-table-thead>tr>th,
.custom-table .ant-table-tbody>tr>td,
.custom-table .ant-table-cell {
border: none ;
// max-height: 300px;
// overflow: auto;
}
.sequence-table {
.ant-table-body {
max-height: 250px ;
overflow: auto ;
}
}
.ant-table {
color: @black ;
svg {
margin-bottom: -2px;
}
.ant-table-thead>tr>th {
color: @text-color-secondary;
background: @bg-white ;
font-weight: 600;
border-bottom: 1px solid @neutral-500;
&:hover {
background: @bg-white ;
}
}
.ant-table-tbody {
&>tr.ant-table-row-selected>td {
background-color: fade(@primary-color, 10);
}
&>tr>td {
border-bottom: 1px solid @neutral-500;
font-weight: 700;
}
}
&.ant-table-empty table {
height: 100%;
}
}
.ant-table-wrapper {
.ant-table {
&:not(.ant-table-bordered) {
.ant-table-tbody {
tr {
td {
border-bottom: 1px solid #B1B1B1;
}
&:last-child {
td {
border-bottom: 1px solid #B1B1B1;
}
}
}
}
}
}
.ant-table-thead {
>tr {
>th,
>td {
&:not(:last-child),
&:not(.ant-table-selection-column),
&:not(.ant-table-row-expand-icon-cell),
&:not([colspan]) {
&::before {
background-color: rgba(0, 0, 0, 0.06) ;
}
}
}
}
}
}
/* src/assets/styles.css */
.ant-table-wrapper .ant-table.ant-table-small .ant-table-title,
.ant-table-wrapper .ant-table.ant-table-small .ant-table-footer,
.ant-table-wrapper .ant-table.ant-table-small .ant-table-thead>tr>th,
.ant-table-wrapper .ant-table.ant-table-small .ant-table-tbody>tr>td,
.ant-table-wrapper .ant-table.ant-table-small tfoot>tr>th,
.ant-table-wrapper .ant-table.ant-table-small tfoot>tr>td {
padding: 0px 0px ;
/* Set your desired padding */
padding-left: 1rem ;
color: #3C4043;
font-weight: 800 ;
/* Set your desired padding */
}
/* Exclude padding for all <td> in the first <tr> of the table body */
.ant-table-wrapper .ant-table.ant-table-small .ant-table-tbody>tr:first-child>td {
// padding: 0 !important;
padding: 0px 0px ;
/* Set your desired padding */
padding-left: 1rem ;
/* No padding for the first <tr> */
}
/* Table CSS End */
/* Tabs CSS */
.ant-tabs {
.ant-badge .ant-badge-count {
font-weight: 700;
color: @text-color;
background: #f1f1f1;
}
.ant-card .ant-card-body {
padding: 0rem;
// margin: 1rem;
}
.ant-tabs-content-holder {
margin: 0 1rem;
}
.ant-tabs-tab-active .ant-badge .ant-badge-count {
color: #1890ff;
background: #e9f5ff;
}
.ant-tabs-tab:hover {
color: @primary ;
}
&.tabs-no-bg {
>.ant-tabs-nav {
background-color: #fff;
padding: 0 1.5rem;
>.ant-tabs-extra-content {
padding: 0.5rem;
}
}
.ant-tabs-content-holder {
overflow: auto;
background: white;
}
}
}
.over-flow-h-100 {
>.ant-tabs-content-holder {
>.ant-tabs-content {
height: 100% ;
overflow: auto ;
>.ant-tabs-tabpane {
.flex-card
}
}
}
}
.custom-search-width {
width: 300px;
max-width: 100%;
}
/* Tabs CSS End */
/* Button CSS */
.ant-btn+.ant-btn,
.ant-btn+.ant-dropdown-button,
.ant-dropdown-button+.ant-btn {
margin-left: 8px;
}
.ant-btn {
&.default {
border: 1px solid @neutral-800;
color: @neutral-800;
font-weight: 700;
}
&.ant-btn-outline {
border: 1px solid @primary;
color: @primary;
}
&.ant-btn-primary {
color: @white;
box-shadow: none;
}
&.secondary-1 {
border: 1px solid @neutral-500 ;
background: @neutral-200 ;
padding: 12px 16px;
}
&.secondary-2 {
border: 1px solid @success ;
background: @success ;
}
&.h-42 {
height: 42px;
padding: 0.7rem 1rem;
}
&.h-32 {
height: 32px;
padding: 0.7rem 1rem;
}
&.w-50-px {
width: 50px;
padding: initial;
}
}
.ant-btn-icon-only {
& span {
transform: scale(0.8) ;
}
}
.ant-btn-primary[disabled],
.ant-btn-primary[disabled]:hover,
.ant-btn-primary[disabled]:focus,
.ant-btn-primary[disabled]:active {
color: rgba(0, 0, 0, 0.25) ;
}
.ant-input-suffix {
.ant-btn-sm {
height: 22px;
line-height: 20px;
& .border-gray-800 {
border: 1px solid @neutral-800;
}
}
}
.ant-input-borderless {
border: transparent ;
}
.ct-input-number.ant-input-number, .ct-input-number.ant-input-number:hover {
border: 1px solid @neutral-700;
}
.ant-input {
border: 1px solid @neutral-700;
&::placeholder {
color: @neutral-500;
}
}
// search input with affix wrap
.ant-input-affix-wrapper {
border: 1px solid @neutral-700;
&.h-42 {
height: 42px;
border: 1px solid @neutral-500;
}
&.h-32 {
height: 32px;
border: 1px solid @neutral-500;
}
}
.ant-btn-sm {
&.border-gray-800 {
border: 1px solid @neutral-800;
}
&.ct-icon {
padding: 0;
border-radius: 2px;
width: 24px;
}
}
.top-bar-actions {
text-align: center;
background-color: #f8f8f8;
padding: 0.5rem 0 0.5rem 0;
margin: -1.5rem -1.5rem 1.5rem -1.5rem;
border-bottom: 1px solid #dee2e6;
.ant-btn {
height: auto;
min-width: 100px;
padding: 4px 15px 0px 15px;
.anticon {
display: block;
}
}
.ant-btn>.anticon+span,
.ant-btn>span+.anticon {
margin-left: 0;
}
}
.ant-btn.btn-xs {
height: 18px;
padding: 0px 4px;
font-size: 10px;
}
.dropdown-custom {
width: 150px;
background-color: #eaf4ff ;
border-color: #14467b7a ;
color: #14467b ;
font-weight: 600 ;
&.h-42 {
height: 42px;
}
&.h-32 {
height: 32px;
}
}
.ant-table-filter-column {
.ant-table-filter-trigger {
padding: 10px ;
margin-inline: 0px;
}
}
.ant-table-filter-column.without-title-filter {
.ant-table-column-title {
display: none;
}
}
.ant-dropdown {
z-index: 1000;
.reset {
color: #dd0000;
background-color: #dd000014;
border: 1px solid #dd0000;
text-align: center;
}
// .ant-dropdown-content {
.ant-table-filter-dropdown {
min-width: 200px ;
}
.dropdown-column-filter,
.ant-table-filter-dropdown {
min-width: 250px;
border: 1px solid #cccccc;
border-radius: 5px;
background-color: #fff;
box-shadow: 0px 3px 6px #00000029;
.ant-dropdown-menu {
box-shadow: none;
}
.ant-dropdown-menu-vertical {
border: none;
// border-radius: 5px;
.ant-checkbox-wrapper {
border-bottom: 1px solid #f1f1f1;
margin-right: 0;
margin-left: 0;
padding: 0.3rem 0.3rem 0.3rem 0.5rem;
// margin-bottom: 1rem;
.ant-checkbox-group {
.ant-checkbox-group-item {
border-bottom: 1px solid #f1f1f1;
margin-right: 0;
padding-left: 0.5rem;
}
}
}
}
// custom dropdown for column filter
.ct-column-filter {
margin-top: 0.5rem;
.ant-checkbox-group {
.ant-checkbox-wrapper {
margin-bottom: 0.5rem;
border-bottom: 1px solid #f1f1f1;
&+.ant-checkbox-wrapper {
margin-left: 0px ;
}
}
}
.ct-color-card {
max-height: 150px;
height: 100%;
div {
padding: 0.2rem;
text-align: center;
}
}
}
}
// }
}
/* Button CSS End */
/* Ant Select Start */
.ant-select:not(.ant-select-customize-input) .ant-select-selector, .ant-picker, .ant-input[disabled] {
border: 1px solid @neutral-700;
border-color: @neutral-700 ;
}
/* Ant Select End */
/* Custom Message CSS Start */
.custom-success-message .ant-message-notice-content {
color: #ffffff;
background: green;
.anticon {
color: #ffffff;
}
}
.custom-error-message .ant-message-notice-content {
color: #ffffff;
background: #dc3545;
.anticon {
color: #ffffff;
}
}
.custom-warning-message .ant-message-notice-content {
color: #ffffff;
background: #ff850e;
.anticon {
color: #ffffff;
}
}
/* Custom Message CSS End */
.favourite {
width: 13px;
display: inline-block;
}
.ant-badge {
&.text-muted .ant-badge-status-text {
color: #6c757d;
}
&.font-size-13 .ant-badge-status-text {
font-size: 13px;
}
&.primary .ant-badge-count {
font-weight: 700;
color: @layout-header-background;
background: @primary-bg-light;
border: 1px solid rgba(20, 70, 123, 0.16);
}
.ant-badge-count-sm {
font-size: 11px;
line-height: 13px;
}
}
/* Tooltip CSS Start */
.ant-tooltip {
.ant-tooltip-inner {
font-size: 12px;
font-weight: 500;
min-height: 26px;
background-color: #fff;
color: @text-color;
max-height: 50vh;
overflow: auto;
}
.ant-tooltip-content {
.ant-tooltip-arrow {
&::before {
background: @bg-white;
clip-path: polygon(1.6568542494923806px 100%, 50% 1.6568542494923806px, 14.34314575050762px 100%, 1.6568542494923806px 100%);
clip-path: path('M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z');
}
}
.ant-tooltip-arrow-content {
background-color: #fff;
}
}
}
/* Tooltip CSS End */
/* Form CSS Start */
.ant-form {
.ant-form-item-label {
padding: 0;
>label {
color: @neutral-700;
font-weight: 600;
// height: 14px;
&::after {
content: ' ';
}
}
}
&.font-size-13 {
.ant-form-item-label {
padding: 0;
>label {
color: @neutral-700;
font-weight: 600;
font-size: 13px;
// height: 14px;
&::after {
content: ' ';
}
}
}
}
.ant-form-item-required {
flex-direction: row-reverse ;
}
.ct-top-dbl-btm-border {
.ant-form-item-control-input {
border-top: 4px double #B1B1B1;
border-bottom: 1px solid #B1B1B1;
}
}
&.ant-form-vertical .ant-form-item-label>label {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: block;
}
&.ant-form-horizontal .ant-form-item-label {
overflow: initial;
white-space: initial;
}
.ant-form-item-explain {
font-size: 12px;
}
.ant-form-text {
font-weight: 500;
white-space: initial;
word-break: break-all;
}
.noValidationMessage .ant-form-item-explain {
min-height: auto;
}
}
.viewForm .ant-form-item {
margin-bottom: 8px;
}
.ant-form-title-left {
margin-bottom: 0px;
font-weight: 700;
.ant-form-item-label {
text-align: left;
}
.ant-form-text {
font-weight: 700;
}
}
.ant-form-title-black {
.ant-form-item-label {
>label {
color: @black;
font-weight: 600;
// height: 14px;
&::after {
content: ' ';
}
}
}
}
/* Form CSS End */
/* Steps CSS Start */
.ant-steps-item {
padding-bottom: 12px;
padding-right: 12px;
border-bottom: 4px solid #cccccc;
&:first-child {
padding-left: 12px ;
}
.ant-steps-item-icon {
background-color: #cccccc;
border-color: transparent;
border-radius: 0 ;
.ant-steps-icon {
color: #fff ;
}
}
.ant-steps-item-title {
font-weight: 500;
font-size: 12px;
&::after {
display: none;
}
}
&.ant-steps-item-finish {
border-bottom: 4px solid #006743;
.ant-steps-item-icon {
background-color: #006743;
}
.ant-steps-item-title {
color: #006743 ;
}
}
&.ant-steps-item-process {
border-bottom: 4px solid @layout-header-background;
.ant-steps-item-title {
color: @layout-header-background ;
}
}
}
/* Steps CSS End */
/* Tags CSS Start */
.ant-tag {
&.mb-space{
margin-bottom: 4px;
}
&.ant-tag-checkable {
background-color: #00467e26;
color: @layout-header-background;
font-weight: 500;
border-radius: 15px;
padding: 0 6px;
&.ant-tag-checkable-checked,
&:active {
background-color: @layout-header-background;
color: #fff;
}
&:not(.ant-tag-checkable-checked):hover {
color: @layout-header-background;
}
.ant-badge-count {
background: #fff;
color: @layout-header-background;
box-shadow: 0 0 0 0px #fff;
height: 14px;
line-height: 14px;
font-size: 11px;
padding: 0 8px;
font-weight: 500;
}
.ant-badge-status-text {
margin: 0;
}
}
}
/* Tags CSS End */
/* Treeview CSS Start */
.ant-tree {
.ant-tree-list-holder-inner .ant-tree-treenode {
width: 100%;
padding: 4px 0;
.ant-badge.ant-badge-status {
position: absolute;
top: 10px;
left: 20px;
}
}
.ant-tree-node-content-wrapper {
width: 100%;
border-radius: 20px;
padding: 0px;
&.ant-tree-node-selected {
background-color: #dcf0ff;
}
}
}
/* Treeview CSS End */
/* Modal CSS End */
.ant-modal {
@modal-body-height: calc(100vh - 200px); //rough
.ant-modal-content {
padding: 0;
.ant-modal-header {
// background-color: @backgroundOpacityColor;
padding: 16px 24px;
color: #3C4043;
border-bottom: 1px solid #f0f0f0;
border-radius: 2px 2px 0 0;
margin-bottom: 0;
}
.ant-modal-body {
max-height: @modal-body-height;
overflow: auto;
padding: 20px;
background-color: @main-bg;
.modalContentScrollWithTabs {
min-height: calc(@modal-body-height - 78px);
max-height: calc(@modal-body-height - 78px);
overflow: auto;
}
}
.ant-modal-footer {
padding: 10px 24px;
text-align: right;
background: transparent;
border-top: 1px solid #f0f0f0;
border-radius: 0 0 2px 2px;
margin-top: 0;
}
.ant-modal-close-x {
display: none;
}
&.padding-y-2 .ant-modal-body {
padding-top: 8px;
padding-bottom: 8px;
}
}
&.modal-popup {
.ant-modal-body {
background-color: @bg-white;
}
}
}
// dark modal
.a-modal-dark {
.ant-modal-content {
padding: 0;
.ant-modal-header {
background-color: @primary;
padding: 16px 24px;
color: #3C4043;
border-bottom: 1px solid #f0f0f0;
border-radius: 2px 2px 0 0;
& .white-text {
color: @white;
}
}
.ant-modal-footer {
padding: 10px 20px;
text-align: right;
background: transparent;
border-top: 1px solid #f0f0f0;
border-radius: 0 0 2px 2px;
}
}
}
/* Modal CSS End */
/* List CSS End */
.ant-list.listScroll {
height: 188px;
overflow: auto;
&.ant-list-split .ant-list-item {
border: none;
padding: 8px 0 8px 8px;
.ant-list-item-meta-title {
margin-bottom: 0px;
}
}
}
/* List CSS End */
/* Divider CSS End */
.ant-divider {
border-top: 1px solid #dee2e6;
}
/* Divider CSS End */
/* Mention Dropdown CSS Start */
.v-popper--theme-dropdown .v-popper__inner {
max-height: 200px;
}
/* Mention Dropdown CSS End */
.tile {
width: 47px;
height: 47px;
display: flex;
justify-content: center;
align-items: center;
font-size: 2rem;
background-color: #198754;
color: #fff;
}
.collapse-scroll-150 .ant-collapse-content-box {
min-height: 100px;
max-height: 150px;
overflow: auto;
}
.pointer-events-none {
pointer-events: none ;
cursor: not-allowed;
}
// draggable styles
.drag-drop-handle {
cursor: pointer;
}
div[data-draggable] {
cursor: grab;
background-color: #ddd;
border: 1px red solid;
padding: 10px;
margin: 3px 0px 3px 0px;
}
.loader {
align-items: center;
justify-content: center;
display: flex;
// text-align: center;
// height: 100vh;
// width: 100%;
background-color: rgb(0 0 0 / 20%);
z-index: 9999;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
outline: 0;
-webkit-overflow-scrolling: touch;
}
// add check mark and indeterminate in checkbox start
.ant-checkbox {
.ant-checkbox-inner {
&::after {
top: 41%;
inset-inline-start: 19.5%;
}
}
}
.ant-checkbox-indeterminate {
.ant-checkbox-inner {
&::after {
top: 50% ;
inset-inline-start: 50% ;
}
}
}
// add check mark and indeterminate in checkbox end
.custom-checkbox {
width: 100%;
border-bottom: 2px solid #dee2e6;
// padding: 0.25rem;
padding: 0.5rem 0.75rem;
>span {
width: 100%;
}
& .ant-checkbox,
& .anticon.anticon-check {
display: none;
}
&.ant-checkbox-wrapper-checked {
background-color: #dee2e6;
box-shadow: 0px 3px 6px #00000029;
& .anticon.anticon-check {
display: block;
}
}
}
.custom-radio {
width: 100%;
border: 1px solid #dee2e6;
padding: 0.25rem;
>span {
width: 100%;
}
& .ant-radio,
& .anticon.anticon-check {
display: none;
}
&.ant-radio-wrapper-checked {
background-color: #dee2e6;
box-shadow: 0px 3px 6px #00000029;
& .anticon.anticon-check {
display: block;
}
}
}
.ant-upload.ant-upload-select-picture-card {
width: 64px;
height: 64px;
}
.status-card {
width: 100px;
.ant-card-body {
padding: 0.25rem 0.5rem 0.1rem;
}
svg {
margin-bottom: -2px;
}
&.primary {
border-left: 2px solid @layout-header-background;
}
&.success {
border-left: 2px solid #357800;
}
&.warning {
border-left: 2px solid #ff9141;
}
&.secondary {
border-left: 2px solid #595959;
}
}
.badge-status {
padding: 2px 8px;
border-radius: 50px;
&.success {
color: #357800;
background-color: #41950014;
border: 1px solid #357800;
}
&.warning {
color: #ff9141;
background-color: #ff914114;
border: 1px solid #ff9141;
}
&.secondary {
color: #595959;
background-color: #59595929;
border: 1px solid #595959;
}
}
/* Custom Card CSS Start */
.ct-drawer {
.ant-drawer-wrapper-body {
.ant-drawer-body {
background: #eeeef2;
padding: 1rem;
}
}
&.padding-0 {
.ant-drawer-wrapper-body {
.ant-drawer-body {
padding: 0 0 1rem 0;
}
}
}
&.flex-drawer-card {
.ant-drawer-wrapper-body {
.ant-drawer-body {
display: flex;
flex-direction: column;
}
}
}
}
.ant-drawer {
// z-index: 1000 !important;
.ant-drawer-wrapper-body {
.ant-drawer-header {
border-bottom: 1px solid #b0b0b0;
}
}
}
/* Custom Card CSS End */
.flex-card {
display: flex;
flex-direction: column;
overflow: auto;
/* Ensure the container can scroll */
height: 100%;
}
// mdi-icon
.mdi {
&.grey-500 {
color: @neutral-500;
}
}
.card-detail-title {
color: #464646 ;
font-size: 12px ;
font-weight: 600 ;
}
.card-detail-header {
color: #364043;
font-size: 12px;
font-weight: 700;
}
.text-link-grey {
color: @neutral-700;
border-bottom: 1px solid @neutral-700;
font-weight: 700;
}
// color plate for text
.neutral-text-100 {
color: @neutral-100;
}
.neutral-text-200 {
color: @neutral-200;
}
.neutral-text-300 {
color: @neutral-300;
}
.neutral-text-400 {
color: @neutral-400;
}
.neutral-text-500 {
color: @neutral-500;
}
.neutral-text-600 {
color: @neutral-600;
}
.neutral-text-700 {
color: @neutral-700 ;
}
.neutral-text-800 {
color: @neutral-800;
}
.neutral-900 {
color: @neutral-900;
}
.neutral-text-1000 {
color: @neutral-1000;
}
/* Background color classes */
.neutral-bg-100 {
background-color: @neutral-100;
}
.neutral-bg-200 {
background-color: @neutral-200;
}
.neutral-bg-300 {
background-color: @neutral-300;
}
.neutral-bg-400 {
background-color: @neutral-400;
}
.neutral-bg-500 {
background-color: @neutral-500;
}
.neutral-bg-600 {
background-color: @neutral-600;
}
.neutral-bg-700 {
background-color: @neutral-700 ;
}
.neutral-bg-800 {
background-color: @neutral-800;
}
.neutral-bg-900 {
background-color: @neutral-900;
}
.neutral-bg-1000 {
background-color: @neutral-1000;
}
.bg-color-dot {
width: 15px;
height: 15px;
border-radius: 60px;
box-shadow: rgba(0, 0, 0, 0.14) 3px 2px 5px, rgb(26 0 71 / 5%) -1px -1px 1px 3px;
}
.bg-color-rectangle {
border-radius: 6px;
box-shadow: rgba(0, 0, 0, 0.14) 3px 2px 5px, rgb(26 0 71 / 5%) -1px -1px 1px 3px;
}
// .ant-popover {
// &.w-20{
// .ant-popover-content {
// width: 100% !important;
// }
// }
// }
.ant-avatar {
&.ant-avatar-square {
border-radius: 2px ;
}
}
.notbook-paper {
// Uncomment and adjust properties as needed
// position: absolute;
// background: rgba(255, 255, 255, 0.9);
// width: 100%;
// height: 100%;
// padding-right: 25px;
overflow: auto;
max-height: 150px;
.lines {
// Uncomment and adjust properties as needed
// margin-top: 15px;
// height: calc(100% - 20px);
width: 100%;
background-image: repeating-linear-gradient(white 0px, white 24px, #000 25px);
// padding-top: 24px;
textarea.ant-input {
line-height: 25px;
background: transparent;
border: none;
color: #000;
font-weight: 500;
padding: 0;
// padding-left: 48px;
&:focus {
box-shadow: none;
}
}
}
header {
padding-left: 10px;
position: absolute;
top: 8px;
}
}
// Flag Container section
.flag-upload-container {
display: flex;
align-items: center;
.upload-button {
flex-shrink: 0;
margin-right: 8px;
}
.flag-preview-container {
display: flex;
align-items: center;
border: 1px solid @neutral-700;
padding: 3px 6px;
border-radius: 2px;
flex-grow: 1;
.flag-preview {
width: 24px;
height: 24px;
margin-right: 12px;
overflow: hidden;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.file-info {
flex-grow: 1;
display: flex;
justify-content: space-between;
align-items: center;
.anticon-delete {
cursor: pointer;
color: #ff4d4f;
}
}
}
}
.table-striped {
background: #eaf4f9 ;
}
.table-column-title {
font-weight: 800 ;
}
.ant-table-wrapper .ant-table-column-title {
font-weight: 800 ;
}
.ant-table-cell-fix-right {
background: inherit ;
}
.ant-table-wrapper td.ant-table-column-sort {
background: transparent ;
}
// Custom Transfer styles
.custom-transfer {
&.h-100 {
>.ant-transfer-list {
>.ant-transfer-list-body {
>.ant-transfer-list-body-customize-wrapper {
height: 100% ;
&:extend(.flex-card);
}
}
}
}
}