Browse Source

Prevent text selection in some elements

ghorsington 4 năm trước cách đây
mục cha
commit
292e9268ab
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/static/style/main.scss

+ 4 - 2
src/static/style/main.scss

@@ -30,7 +30,8 @@ $menu-label-color: hsl(0, 0%, 96%);
     position: fixed;
     width: inherit;
     top: $navbar-height + $column-gap;
-    padding-right: $column-gap * 3; 
+    padding-right: $column-gap * 3;
+    user-select: none;
   }
 }
 
@@ -62,6 +63,7 @@ div#ci-menu {
 
 nav {
   box-shadow: 0 -3px 10px 3px black;
+  user-select: none;
 }
 
 hr.content-divider {
@@ -77,9 +79,9 @@ div.artifact-item {
   & > div.artifact-details {
     @extend .columns, .is-mobile;
 
+    user-select: none;
     align-items: center;
     margin-top: 0;
-    // margin-bottom: 0 !important;
     cursor: pointer;
 
     & > div.artifact-id {