]> source.dussan.org Git - sonarqube.git/commitdiff
clean up issues css
authorStas Vilchik <vilchiks@gmail.com>
Thu, 27 Apr 2017 08:18:02 +0000 (10:18 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 27 Apr 2017 09:44:56 +0000 (11:44 +0200)
server/sonar-web/src/main/js/apps/issues/styles.css
server/sonar-web/src/main/less/pages/issues.less [deleted file]
server/sonar-web/src/main/less/sonar.less

index d40c2b9d90be8bf5344e081daa70a726af85b123..63e28fcf51d9a7adb9a51c63c6d2c71540b74724 100644 (file)
   display: inline-block;
   min-width: 80px;
   text-align: right;
-}
\ No newline at end of file
+}
+
+.issues .search-navigator-facet-header,
+.issues .search-navigator-facet-list {
+  padding-left: 0;
+  padding-right: 0;
+}
+
+.issues .search-navigator-facet-header {
+  padding-top: 8px;
+  padding-bottom: 8px;
+}
+
+.issues .search-navigator-facet-box:not(.hidden) + .search-navigator-facet-box {
+  border-top: none;
+}
+
+.issues .search-navigator-facet-footer {
+  padding: 0 0 10px 0;
+}
+
+.issues .issue-list {
+  /* no math, just a good guess */
+  min-width: 640px;
+  width: 800px;
+}
+
+.issues .issue {
+  cursor: pointer;
+}
+
+.issues .issue:hover {
+  border-color: #dd4040;
+} 
+
+@media (max-width: 1320px) {
+  .issues .issue-list {
+    width: calc(60vw - 40px);
+  }
+}
+
+.issues-workspace-list-component {
+  padding: 10px 10px 6px;
+}
+
+.issues-workspace-list-item + .issues-workspace-list-item {
+  margin-top: 5px;
+}
+
+.issues-workspace-list-component + .issues-workspace-list-item {
+  margin-top: 10px;
+}
+
+.issues-workspace-list-item:first-child .issues-workspace-list-component {
+  padding-top: 0;
+}
+
+.issues-workspace-list-component + .issues-workspace-list-item {
+  margin-top: 0;
+}
diff --git a/server/sonar-web/src/main/less/pages/issues.less b/server/sonar-web/src/main/less/pages/issues.less
deleted file mode 100644 (file)
index c5cd491..0000000
+++ /dev/null
@@ -1,235 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2017 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-@import (reference) "../variables";
-@import (reference) "../mixins";
-@import (reference) "../components/ui";
-
-@sideWidth: 300px;
-
-
-.issues {
-  
-  &.sticky {
-
-    .issues-workspace-list,
-    .issues-workspace-component-viewer {
-      padding-top: 22px + 5px + 5px + 1px + 10px;
-    }
-
-  }
-
-  .issue-meta-locations {
-    position: absolute;
-    visibility: hidden;
-  }
-
-  .search-navigator-facet-header,
-  .search-navigator-facet-list {
-    padding-left: 0;
-    padding-right: 0;
-  }
-
-  .search-navigator-facet-header {
-    padding-top: 8px;
-    padding-bottom: 8px;
-  }
-
-  .search-navigator-facet-box:not(.hidden) + .search-navigator-facet-box {
-    border-top: none;
-  }
-
-  .search-navigator-facet-footer {
-    padding: 0 0 10px 0;
-  }
-
-  .issue-list {
-    /* no math, just a good guess */
-    min-width: 640px;
-    width: 800px;
-
-    @media (max-width: 1320px) {
-      & {
-        width: ~"calc(60vw - 40px)";
-      }
-    }
-  }
-
-  .issue {
-    cursor: pointer;
-
-    &:hover {
-      border-color: @issueBorderColor;
-    } 
-  }
-}
-
-.issues-workspace-list-component {
-  padding: 10px 10px 6px;
-}
-
-.issues-workspace-list-item + .issues-workspace-list-item {
-  margin-top: 5px;
-}
-
-.issues-workspace-list-component + .issues-workspace-list-item {
-  margin-top: 10px;
-}
-
-.issues-workspace-list-item:first-child .issues-workspace-list-component {
-  padding-top: 0;
-}
-
-.issues-workspace-list-component + .issues-workspace-list-item {
-  margin-top: 0;
-}
-
-.issues-workspace-component-viewer {
-  display: none;
-  padding: 1px 10px 10px;
-  min-height: 100vh;
-
-  .code-issue-modern {
-    margin: 5px 0;
-  }
-}
-
-.issues-workspace-component-viewer-header {
-  position: relative;
-}
-
-.issues-workspace-component-viewer-close {
-  position: absolute;
-  top: 50%;
-  right: 10px;
-  margin-top: -8px;
-}
-
-.issues-extended-view {
-
-  .search-navigator-workspace-list {
-    display: none;
-  }
-
-  .issues-workspace-component-viewer {
-    display: block;
-  }
-}
-
-.issues-header-component {
-  padding: 3px 0 3px 10px;
-}
-
-.issue-box {
-  .clearfix;
-  outline: 1px solid @barBorderColor;
-  border-left: 2px solid transparent;
-  overflow: hidden;
-
-  &.selected {
-    outline-color: @blue;
-    border-color: @blue;
-  }
-
-  .code-issue {
-    border: none;
-    outline: none;
-  }
-}
-
-.issue-box + .issue-box {
-  margin-top: 12px;
-}
-
-.issue-box-details {
-
-}
-
-.code-issue-modern {
-  outline: 1px solid @barBorderColor;
-  border-left: 2px solid transparent;
-
-  .code-issue-name,
-  .code-issue-actions,
-  .code-issue-details,
-  .code-issue-comment {
-    border: none;
-    background: transparent;
-  }
-
-  &.selected {
-    outline-color: @blue;
-    border-color: @blue;
-  }
-}
-
-.issue-box-snippet {
-  padding: 3px 0;
-  overflow: hidden;
-  cursor: pointer;
-
-  .code {
-    border: none;
-  }
-}
-
-.issue-box-component {
-  padding: 5px;
-}
-
-.code .has-issues > pre {
-  display: inline-block;
-  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAGCAYAAAAPDoR2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvY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AAAAABJRU5ErkJggg==);
-  background-repeat: repeat-x;
-  background-size: 4px;
-  background-position: bottom;
-}
-
-.issues-home-view {
-  .search-navigator-workspace-list,
-  .issues-workspace-component-viewer {
-    display: none;
-  }
-
-  .issues-header-component,
-  .search-navigator-header-actions {
-    visibility: hidden;
-  }
-
-  .issues-workspace-home {
-    display: block;
-  }
-}
-
-.issues-workspace-home {
-  display: none;
-  padding-top: 180px;
-  text-align: center;
-}
-
-.issues-workspace-home-inner {
-  display: inline-block;
-  vertical-align: top;
-  max-width: 600px;
-}
-
-.issues-facet-mode {
-  padding: 8px 0;
-  text-align: center;
-}
index abc173cbe84567c0ccf05ef8730bbe5a1e2abb6a..7d819138a742b32bca33f06229c7a3786cf98bca 100644 (file)
@@ -59,7 +59,6 @@
 @import "components/react-select";
 
 @import "pages/coding-rules";
-@import "pages/issues";
 @import "pages/quality-gates";
 @import "pages/maintenance";
 @import "pages/login";