瀏覽代碼

Hover effect on the screenshot on dashboard

Gaël Métais 10 年之前
父節點
當前提交
47f0e1f1bf
共有 4 個文件被更改,包括 38 次插入0 次删除
  1. 17 0
      front/src/css/dashboard.css
  2. 1 0
      front/src/css/main.css
  3. 19 0
      front/src/less/dashboard.less
  4. 1 0
      front/src/less/main.less

+ 17 - 0
front/src/css/dashboard.css

@@ -29,6 +29,23 @@
   font-weight: bold;
   margin: 0.5em 0 1em;
 }
+.summary .globalScore .screenshotWrapper:hover {
+  opacity: 0.75;
+}
+.summary .globalScore .screenshotWrapper:hover:after {
+  position: absolute;
+  width: 1.25em;
+  height: 1.25em;
+  top: 0.7em;
+  left: 1.55em;
+  font-size: 3em;
+  color: #FFF;
+  background: #000;
+  border-radius: 0.2em;
+  text-align: center;
+  content: "+";
+  opacity: 0.6;
+}
 .summary .notations {
   display: table;
   width: 80%;

+ 1 - 0
front/src/css/main.css

@@ -146,6 +146,7 @@ h1 span {
   width: 12em;
   height: 6.75em;
   overflow: scroll;
+  position: relative;
 }
 .screenshotWrapper.desktop .screenshotImage {
   width: 100%;

+ 19 - 0
front/src/less/dashboard.less

@@ -32,6 +32,25 @@
         font-weight: bold;
         margin: 0.5em 0 1em;
     }
+
+    .screenshotWrapper:hover {
+        opacity: 0.75;
+
+        &:after {
+            position: absolute;
+            width: 1.25em;
+            height: 1.25em;
+            top: 0.7em;
+            left: 1.55em;
+            font-size: 3em;
+            color: #FFF;
+            background: #000;
+            border-radius: 0.2em;
+            text-align: center;
+            content: "+";
+            opacity: 0.6;
+        }
+    }
 }
 
 .summary .notations {

+ 1 - 0
front/src/less/main.less

@@ -148,6 +148,7 @@ h1 span {
         width: 12em;
         height: 6.75em;
         overflow: scroll;
+        position: relative;
     }
 
     .screenshotImage {