]> source.dussan.org Git - sonarqube.git/commitdiff
deprecate some css
authorStas Vilchik <vilchiks@gmail.com>
Thu, 12 Mar 2015 09:09:38 +0000 (10:09 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 12 Mar 2015 09:09:38 +0000 (10:09 +0100)
server/sonar-web/src/main/less/deprecated.less
server/sonar-web/src/main/less/init/forms.less
server/sonar-web/src/main/less/style.less
server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb

index eb1ad7a0ba2fe393924fbdeabac9b6b6ddfc46ca..bcc68a4f0e447f9f4609a1a9a5b9b063d2838072 100644 (file)
@@ -92,6 +92,7 @@
   padding: 2px 4px;
 }
 
+// use `.alert.alert-warning` instead
 .warning, .modal-warning {
   margin: 0 0 8px;
   padding: 5px 8px;
   color: @orange;
 }
 
+// use `.alert.alert-danger` instead
 .error, .modal-error {
   margin: 0 0 8px;
   padding: 5px 8px;
   color: @red;
 }
 
+// use `.alert.alert-success` or `.alert.alert-info` instead
 .notice, .modal-notice {
   margin: 0 0 8px;
   padding: 5px 8px;
-  border: 2px solid @blue;
+  border: 2px solid @green;
   background-color: @white;
-  color: @blue;
+  color: @green;
 }
 
 .info {
@@ -405,6 +408,125 @@ div.autocompleteNote {
   cursor: default;
 }
 
-.link-red {
-  color: @red !important;
+a.external {
+  background: url('../images/links/external.png') no-repeat 100% 0;
+  padding: 0 16px 0 0;
+}
+
+.fav {
+  display: inline-block;
+  background: url('../images/star.png') no-repeat 100% 0;
+  width: 16px;
+  height: 16px;
+  vertical-align: text-bottom;
+}
+
+.notfav {
+  display: inline-block;
+  background: url('../images/star_off.png') no-repeat 100% 0;
+  width: 16px;
+  height: 16px;
+  vertical-align: text-bottom;
+}
+
+/* DUPLICATIONS */
+
+.duplications {
+  max-width: 100%;
+}
+
+.duplications td.item {
+  text-align: right;
+  vertical-align: top;
+  padding: 0;
+}
+
+.duplications td.item p {
+  padding: 3px 5px;
+}
+
+.duplications td.fileItem {
+  text-align: left;
+  vertical-align: top;
+  padding: 0;
+  white-space: nowrap;
+}
+
+.duplications td.fileItem p {
+  padding: 3px 5px;
+}
+
+.duplications td.item p.selected, .duplications td.fileItem p.selected {
+  background-color: #EFEFEF;
+  border-top: 1px solid #DDD;
+  border-bottom: 1px solid #DDD;
+  padding: 3px 5px;
+}
+
+.duplications td.fileItem p.selected a {
+  text-decoration: none;
+}
+
+.duplications td.sourceItem {
+  padding: 0;
+  background-color: #EFEFEF;
+  border: 1px solid #DDD;
+  border-left: none;
+}
+
+.duplications td.sourceItem p {
+  padding: 3px;
+}
+
+.duplicationsMessage {
+  padding: 10px;
+}
+
+.discussion {
+  width: 100%;
+  border: 1px solid #DDDDDD;
+}
+
+.discussionComment.first {
+  border-top: none;
+}
+
+.discussionComment {
+  background-color: #EFEFEF;
+  border-top: 1px solid #DDDDDD;
+  line-height: 1.5em;
+  margin: 0;
+  padding: 5px 10px;
+
+  h4 {
+    font-size: 90%;
+    margin-bottom: 2px;
+  }
+
+  h4 img {
+    vertical-align: sub;
+  }
+
+  ol li {
+    list-style: decimal inside;
+  }
+
+  ul li {
+    list-style: square inside;
+  }
+
+  pre {
+    padding: 10px;
+    border: 1px dashed #DDD;
+    color: #444;
+    font-size: 12px;
+  }
+}
+
+div.comment-excerpt {
+  background-color: transparent;
+  margin-top: 5px;
+  margin-bottom: 5px;
+  color: #777777;
+  font-size: 90%;
 }
index aa19189d02c1f89a980a6bdfebcb2648ca13a6d3..4403489ccf6c55e4e95c0f42904a7c58d60d7c4c 100644 (file)
@@ -181,3 +181,8 @@ input[type=button] {
 .input-small {
   width: 80px;
 }
+
+em.mandatory {
+  color: #990000;
+  font-style: italic;
+}
index 087d421cad02d87e87d403e7c4bfddb77325b2f9..46c7ee988e76dcc7497df2737172158158616ac2 100644 (file)
 @import (reference) "components/ui";
 @import (reference) "components/typography";
 
-.ie-warn {
-  color: #EEE;
-  background: #FF5252;
-  padding: 0 5px;
-}
-
-.ie-warn a {
-  color: #EEE;
-  text-decoration: underline;
-}
-
-/*
-  GENERAL
-*/
-
-em.mandatory {
-  color: #990000;
-  font-style: italic;
-}
-
-a.external {
-  background: url('../images/links/external.png') no-repeat 100% 0;
-  padding: 0 16px 0 0;
-}
-
-.fav {
-  display: inline-block;
-  background: url('../images/star.png') no-repeat 100% 0;
-  width: 16px;
-  height: 16px;
-  vertical-align: text-bottom;
-}
-
-.notfav {
-  display: inline-block;
-  background: url('../images/star_off.png') no-repeat 100% 0;
-  width: 16px;
-  height: 16px;
-  vertical-align: text-bottom;
-}
-
-/* ------------------- SETUP / MIGRATION PAGES ------------------- */
-.migration {
-  background-image: url("../images/logo.png");
-  background-repeat: no-repeat;
-  background-position: top right;
-}
-
-/* DUPLICATIONS */
-
-.duplications {
-  max-width: 100%;
-}
-
-.duplications td.item {
-  text-align: right;
-  vertical-align: top;
-  padding: 0;
-}
-
-.duplications td.item p {
-  padding: 3px 5px;
-}
-
-.duplications td.fileItem {
-  text-align: left;
-  vertical-align: top;
-  padding: 0;
-  white-space: nowrap;
-}
-
-.duplications td.fileItem p {
-  padding: 3px 5px;
-}
-
-.duplications td.item p.selected, .duplications td.fileItem p.selected {
-  background-color: #EFEFEF;
-  border-top: 1px solid #DDD;
-  border-bottom: 1px solid #DDD;
-  padding: 3px 5px;
-}
-
-.duplications td.fileItem p.selected a {
-  text-decoration: none;
-}
-
-.duplications td.sourceItem {
-  padding: 0;
-  background-color: #EFEFEF;
-  border: 1px solid #DDD;
-  border-left: none;
-}
-
-.duplications td.sourceItem p {
-  padding: 3px;
-}
-
-.duplicationsMessage {
-  padding: 10px;
-}
-
-.discussion {
-  width: 100%;
-  border: 1px solid #DDDDDD;
-}
-
-.discussionComment.first {
-  border-top: none;
-}
-
-.discussionComment {
-  background-color: #EFEFEF;
-  border-top: 1px solid #DDDDDD;
-  line-height: 1.5em;
-  margin: 0;
-  padding: 5px 10px;
-
-  h4 {
-    font-size: 90%;
-    margin-bottom: 2px;
-  }
-
-  h4 img {
-    vertical-align: sub;
-  }
-
-  ol li {
-    list-style: decimal inside;
-  }
-
-  ul li {
-    list-style: square inside;
-  }
-
-  pre {
-    padding: 10px;
-    border: 1px dashed #DDD;
-    color: #444;
-    font-size: 12px;
-  }
-}
-
-div.comment-excerpt {
-  background-color: transparent;
-  margin-top: 5px;
-  margin-bottom: 5px;
-  color: #777777;
-  font-size: 90%;
-}
-
 /* ACTION PLANS */
 table.actionPlans {
   margin-top: 10px;
index c72125fbcf8ca465d4784b85af3232a3cbb19419..05650669b804e7e8cd4e9f4f5cdced829520da71 100644 (file)
       <a href="http://redirect.sonarsource.com/doc/plugin-library.html" target="plugins">Plugins</a> -
       <a href="<%= ApplicationController.root_context -%>/api_documentation">Web Service API</a>
       <% unless DatabaseVersion.production? %>
-        <br><br><span class="error big" id="evaluation_warning">Embedded database should be used for evaluation purpose only</span>
-        <br><br><span class="error">The embedded database will not scale, it will not support upgrading to newer versions of SonarQube, and there is no support for migrating your data out of it into a different database engine.</span>
+        <div class="spacer-top alert alert-danger">
+          <p class="big" id="evaluation_warning">Embedded database should be used for evaluation purpose only</p>
+          <p>The embedded database will not scale, it will not support upgrading to newer versions of SonarQube, and there is no support for migrating your data out of it into a different database engine.</p>
+        </div>
       <% end %>
     </div>
-    <!--[if lte IE 8 ]><br/><span class="ie-warn">IE 8 is not supported. Some widgets may not be properly displayed. Please switch to a <a target="_blank" href="http://redirect.sonarsource.com/doc/requirements.html">supported version or another supported browser</a>.</span><!--<![endif]-->
+    <!--[if lte IE 8 ]><p class="spacer-top alert alert-danger">IE 8 is not supported. Some widgets may not be properly displayed. Please switch to a <a target="_blank" href="http://redirect.sonarsource.com/doc/requirements.html">supported version or another supported browser</a>.</p><!--<![endif]-->
   </div>
 <% end %>