aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaView.scss
diff options
context:
space:
mode:
authorfawn <fangrui_tong@brown.edu>2019-07-30 15:52:32 -0400
committerfawn <fangrui_tong@brown.edu>2019-07-30 15:52:32 -0400
commitdd5d7503e05962fa9a22baa9f5fa00373393ac11 (patch)
treeb146bfdea1435fde0cae720142ca433ec29c7104 /src/client/views/collections/CollectionSchemaView.scss
parent49355364b418ceb8f04ee79132dedc5885a9bbe5 (diff)
schema column menu stylign
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.scss')
-rw-r--r--src/client/views/collections/CollectionSchemaView.scss85
1 files changed, 50 insertions, 35 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.scss b/src/client/views/collections/CollectionSchemaView.scss
index ca2684ba2..746a09c11 100644
--- a/src/client/views/collections/CollectionSchemaView.scss
+++ b/src/client/views/collections/CollectionSchemaView.scss
@@ -277,16 +277,29 @@ button.add-column {
.collectionSchema-header-menuOptions {
color: black;
- width: 175px;
+ width: 200px;
text-align: left;
.collectionSchema-headerMenu-group {
- margin-bottom: 10px;
+ padding: 7px 0;
+ border-bottom: 1px solid lightgray;
+
+ &:first-child {
+ padding-top : 0;
+ }
+
+ &:last-child {
+ border: none;
+ text-align: center;
+ padding: 12px 0 0 0;
+ }
}
label {
color: $main-accent;
font-weight: normal;
+ letter-spacing: 2px;
+ text-transform: uppercase;
}
input {
@@ -294,9 +307,43 @@ button.add-column {
width: 100%;
}
+ .columnMenu-option {
+ cursor: pointer;
+ padding: 3px;
+ background-color: white;
+ transition: background-color 0.2s;
+
+ &:hover {
+ background-color: $light-color-secondary;
+ }
+
+ &.active {
+ font-weight: bold;
+ border: 2px solid $light-color-secondary;
+ }
+
+ svg {
+ color: gray;
+ margin-right: 5px;
+ width: 10px;
+ }
+ }
+
.keys-dropdown {
position: relative;
- max-width: 175px;
+ // max-width: 175px;
+ width: 100%;
+
+ input {
+ border: 2px solid $light-color-secondary;
+ padding: 3px;
+ height: 28px;
+ font-weight: bold;
+
+ &:focus {
+ font-weight: normal;
+ }
+ }
.keys-options-wrapper {
width: 100%;
@@ -321,43 +368,11 @@ button.add-column {
}
}
- .columnMenu-types {
- display: flex;
- justify-content: space-between;
-
- button {
- border-radius: 20px;
- width: 22px;
- height: 22px;
- text-align: center;
- display: flex;
- justify-content: center;
- flex-direction: column;
- padding: 0;
-
- &.active {
- border: 2px solid white;
- box-shadow: 0 0 0 2px lightgray;
- }
- }
- }
-
.columnMenu-colors {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
- // input[type="radio"] {
- // display: none;
- // }
-
- // input[type="radio"]:checked + label {
- // .columnMenu-colorPicker {
- // border: 2px solid white;
- // box-shadow: 0 0 0 2px lightgray;
- // }
- // }
-
.columnMenu-colorPicker {
cursor: pointer;
width: 20px;