diff --git a/client/app/assets/less/ant.less b/client/app/assets/less/ant.less index dc38205a..a4b8eb2c 100644 --- a/client/app/assets/less/ant.less +++ b/client/app/assets/less/ant.less @@ -21,6 +21,10 @@ @import '~antd/lib/grid/style/index'; @import '~antd/lib/switch/style/index'; @import '~antd/lib/drawer/style/index'; +@import '~antd/lib/divider/style/index'; +@import '~antd/lib/dropdown/style/index'; +@import '~antd/lib/menu/style/index'; +@import '~antd/lib/list/style/index'; @import 'inc/ant-variables'; // Remove bold in labels for Ant checkboxes and radio buttons @@ -51,7 +55,6 @@ } // Button overrides - .@{btn-prefix-cls} { transition-duration: 150ms; } @@ -180,6 +183,31 @@ } } } + + // Custom styles + + &-headerless &-tbody > tr:first-child > td { + border-top: @border-width-base @border-style-base @border-color-split; + } +} + +// List + +.@{list-prefix-cls} { + &-item { + // custom rule + &.selected { + background-color: #F6F8F9; + } + + &.disabled { + background-color: fade(#F6F8F9, 40%); + + & > * { + opacity: 0.4; + } + } + } } // styling for short modals (no lines) @@ -210,4 +238,4 @@ .ant-popover { z-index: 1000; // make sure it doesn't cover drawer -} \ No newline at end of file +} diff --git a/client/app/assets/less/inc/base.less b/client/app/assets/less/inc/base.less index c3642b65..46865650 100755 --- a/client/app/assets/less/inc/base.less +++ b/client/app/assets/less/inc/base.less @@ -73,6 +73,10 @@ strong { } +.clickable { + cursor: pointer; +} + .resize-vertical { resize: vertical !important; transition: height 0s !important; diff --git a/client/app/assets/less/inc/generics.less b/client/app/assets/less/inc/generics.less index da230213..0ad99bd5 100755 --- a/client/app/assets/less/inc/generics.less +++ b/client/app/assets/less/inc/generics.less @@ -146,6 +146,8 @@ Width -----------------------------------------------------------*/ .w-100 { width: 100% !important; } +.w-50 { width: 50% !important; } +.w-25 { width: 25% !important; } /* -------------------------------------------------------- diff --git a/client/app/components/PreviewCard.jsx b/client/app/components/PreviewCard.jsx new file mode 100644 index 00000000..7c86161d --- /dev/null +++ b/client/app/components/PreviewCard.jsx @@ -0,0 +1,79 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +// PreviewCard + +export function PreviewCard({ imageUrl, title, body, children, className, ...props }) { + return ( +
{{dataSource.name}} | -
-
-
-
-
-
-
-
-
-
- |
-
- - | -- {{member.name}} - - | -