Browse Source

style: improve block fold arrow and bullet interaction

charlie 4 years ago
parent
commit
4f42bc6eaa
2 changed files with 19 additions and 13 deletions
  1. 0 9
      resources/css/common.css
  2. 19 4
      src/main/frontend/components/block.css

+ 0 - 9
resources/css/common.css

@@ -565,15 +565,6 @@ li p:last-child,
 /** endregion **/
 
 /* region FIXME: override elements (?) */
-a.block-control,
-a.block-control:hover {
-  text-decoration: none;
-  cursor: pointer;
-  font-size: 14px;
-  min-width: 10px;
-  color: initial;
-}
-
 h1.title {
   margin-bottom: 1.5rem;
   color: var(--ls-title-text-color, #222);

+ 19 - 4
src/main/frontend/components/block.css

@@ -1,6 +1,16 @@
 .blocks-container {
 }
 
+.block-control,
+.block-control:hover {
+  text-decoration: none;
+  cursor: pointer;
+  font-size: 14px;
+  min-width: 10px;
+  color: initial;
+  user-select: none;
+}
+
 .block-content {
   min-height: 24px;
   max-width: 100%;
@@ -201,8 +211,8 @@
 
 .bullet-container {
   display: flex;
-  height: 13px;
-  width: 13px;
+  height: 12px;
+  width: 12px;
   border-radius: 50%;
   justify-content: center;
   align-items: center;
@@ -213,9 +223,14 @@
 
   .bullet {
     border-radius: 50%;
-    width: 5px;
-    height: 5px;
+    width: 6px;
+    height: 6px;
     background-color: var(--ls-block-bullet-color, #394b59);
+    transition: transform .2s;
+
+    &:hover {
+      transform: scale(1.2);
+    }
   }
 
   &.bullet-closed {