@import '../../../styles/abstracts/variables'; .add-module-card { cursor: pointer; position: fixed; z-index: 88; bottom: 64px; left: calc((100% - 1140px) / 2 + 20px); @media only screen and (min-width: 769px) { bottom: 20px; } .ant-card-body { padding: 20px 24px; height: 72px; } &__btn { background-color: $blue; border-radius: 4rem; width: 204px; height: 4rem; &--content-menu { width: 180px; } } &__menu { border-radius: 16px; border-right: none; -webkit-border-radius: 16px; -moz-border-radius: 16px; -webkit-box-shadow: $boxShadow2; -moz-box-shadow: $boxShadow2; box-shadow: $boxShadow2; .ant-list-item { width: 292px; height: 56px; padding: 12px 16px; cursor: pointer; &:hover { background-color: rgba(37, 127, 252, 0.05); } &:first-child:hover { border-radius: 16px 16px 0 0; } &:last-child:hover { border-radius: 0 0 16px 16px; } } } } .ant-popover-inner { border-radius: 16px; } .ant-popover-inner-content { padding: 0; } .add-module__dropdown { &__fixed { position: fixed; top: 25px !important; } .ant-dropdown-menu { padding: 8px 0; margin: 9px 0; border-radius: 16px; background: $grey; box-shadow: 0 0 15px rgba(0, 0, 0, 0.18); width: 285px; .ant-dropdown-menu-submenu, .ant-dropdown-menu-item { padding: 12px 16px; font-weight: $semi-bold; font-size: $medium1; line-height: 24px; background: $white; border-radius: 8px; margin: 8px; &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } &.active { background: rgba(37, 127, 252, 0.05); } &:hover { background: rgba(37, 127, 252, 0.05); } &.ant-dropdown-menu-submenu-active { background: rgba(37, 127, 252, 0.05); } .ant-dropdown-menu-submenu-expand-icon { width: 24px; height: 24px; display: flex; top: 12px; right: 16px; margin-top: 0; align-items: center; .ant-dropdown-menu-submenu-arrow-icon { width: 24px; height: 24px; background: url('#{$icons-url}/dark/arrow-right.svg') no-repeat; svg { display: none; } } } .ant-dropdown-menu-submenu-title { display: flex; flex-direction: row; padding: 0; font-weight: $semi-bold; font-size: $medium1; line-height: 24px; background: transparent !important; } } } } .add-module__sub-menu { // Makes the Data Capture submenu slightly higher so it's fully visible .ant-dropdown-menu:last-of-type { margin-top: -80px; } .ant-dropdown-menu { margin-left: 16px; margin-top: -28px; overflow-x: hidden; border-radius: 16px; background: $grey; box-shadow: 0 0 15px rgba(0, 0, 0, 0.18); padding: 8px 0; .ant-dropdown-menu-item { width: 329px; padding: 12px 16px; border-bottom: 1px solid $gray5; font-weight: $semi-bold; font-size: $medium1; line-height: 24px; background: $white; border-radius: 8px; margin: 8px; &.active { background: rgba(37, 127, 252, 0.05); } &.ant-dropdown-menu-submenu-active { background: rgba(37, 127, 252, 0.05); } &:hover { background: rgba(37, 127, 252, 0.05); } &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } } }