]> source.dussan.org Git - sonarqube.git/commitdiff
use prettier-css (#2035)
authorStas Vilchik <stas-vilchik@users.noreply.github.com>
Tue, 9 May 2017 08:05:34 +0000 (10:05 +0200)
committerGitHub <noreply@github.com>
Tue, 9 May 2017 08:05:34 +0000 (10:05 +0200)
21 files changed:
server/sonar-web/package.json
server/sonar-web/src/main/js/apps/about/sonarqube-dot-com-styles.css
server/sonar-web/src/main/js/apps/about/styles.css
server/sonar-web/src/main/js/apps/component-measures/styles.css
server/sonar-web/src/main/js/apps/issues/styles.css
server/sonar-web/src/main/js/apps/overview/styles.css
server/sonar-web/src/main/js/apps/permissions/styles.css
server/sonar-web/src/main/js/apps/projectActivity/components/Event.css
server/sonar-web/src/main/js/apps/projectActivity/components/projectActivity.css
server/sonar-web/src/main/js/apps/projects/styles.css
server/sonar-web/src/main/js/apps/quality-profiles/styles.css
server/sonar-web/src/main/js/apps/settings/styles.css
server/sonar-web/src/main/js/apps/web-api/styles/web-api.css
server/sonar-web/src/main/js/components/SourceViewer/styles.css
server/sonar-web/src/main/js/components/common/EmptySearch.css
server/sonar-web/src/main/js/components/common/LocationIndex.css
server/sonar-web/src/main/js/components/common/LocationMessage.css
server/sonar-web/src/main/js/components/common/PrivateBadge.css
server/sonar-web/src/main/js/components/common/UpgradeOrganizationBox.css
server/sonar-web/src/main/js/components/ui/Rating.css
server/sonar-web/yarn.lock

index 4ddbfe7fd06498c111ff236bb7805c1954d8c2fa..f2b65457ee25e311476bf812e559f74a5ce9e1d5 100644 (file)
@@ -89,6 +89,7 @@
     "path-exists": "2.1.0",
     "postcss-loader": "0.8.0",
     "prettier": "1.2.2",
+    "prettier-css": "0.0.7",
     "prettier-eslint": "5.1.0",
     "prettier-eslint-cli": "3.4.1",
     "react-addons-test-utils": "15.4.2",
     "test": "node scripts/test.js",
     "coverage": "npm test -- --coverage",
     "format": "prettier-eslint --write \"src/main/js/!(libs)/**/*.js\"",
+    "format-css": "prettier-css \"src/main/js/**/*.css\"",
     "lint": "eslint src/main/js",
     "typecheck": "flow src/main/js",
     "validate": "eslint src/main/js && flow check src/main/js && NODE_ENV=test jest --runInBand"
index f89f0b1ff7a2c7717031a83f5604ce177d033ae0..4767143aa4ee4c8a6d09681411ecb2bb776f8424 100644 (file)
@@ -22,9 +22,7 @@
   align-items: center;
 }
 
-.sqcom-about-page-intro {
-
-}
+.sqcom-about-page-intro {}
 
 .sqcom-about-page-intro > h1 {
   line-height: 56px;
 .sqcom-about-quality-model svg {
   transform: translateY(-3px) !important;
 }
-
index 7d06cd0caf98c28b3d2120d67a81a05e2c09f6e1..98e4186c6a6abbbd5fff0c59fe115fac22c78995 100644 (file)
   line-height: 2;
 }
 
-.about-quality-model .flex-column + .flex-column{
+.about-quality-model .flex-column + .flex-column {
   margin-left: 30px;
   padding-left: 30px;
   border-left: 1px solid #e6e6e6;
index 4263ca5d406695c7d9e8fc6c8c83a20772479a6a..12730c548c017bf330b271d01486f195d331fc35 100644 (file)
@@ -5,8 +5,7 @@
   margin-bottom: 20px;
 }
 
-.measures-domains {
-}
+.measures-domains {}
 
 .measures-domains > li {
   margin-bottom: 20px;
 }
 
 .measure-details-metric,
-.measure-details-value {
-}
+.measure-details-value {}
 
 .measure-details-metric {
   display: inline-block;
   fill: #4b9fd5;
 }
 
-.measure-details-plain-list {
-}
+.measure-details-plain-list {}
 
 .measure-details-components {
   width: 300px;
index 638678819650d2b7870386a5c655f1f96eb1218c..2a4c5e6ee143eefd4a7448c3a98588e56a501763 100644 (file)
 }
 
 .concise-issues-list-header,
-.concise-issues-list-header-inner {
-}
+.concise-issues-list-header-inner {}
 
-.concise-issues-list-header {
-}
+.concise-issues-list-header {}
 
 .concise-issues-list-header-inner {
   width: 260px;
 }
 
 .concise-issue-box:focus {
-  outline: none
+  outline: none;
 }
 
 .concise-issue-box.selected {
   z-index: 2;
   border-color: #dd4040;
   background-color: #ffeaea;
-  cursor: default
+  cursor: default;
 }
 
 .concise-issue-box-message {
 
 .issues .issue:hover {
   border-color: #dd4040;
-} 
+}
 
 @media (max-width: 1320px) {
   .issues .issue-list {
 .issues-predefined-periods .search-navigator-facet {
   width: auto;
   margin-right: 4px;
-}
\ No newline at end of file
+}
index 39ca160558520804ba4c6ca4045771aad3d735ad..5ffdc19cd634a78379ce04b3ac25437d6e563651 100644 (file)
@@ -42,9 +42,7 @@
   background-color: #f3f3f3;
 }
 
-.overview-quality-gate-conditions-list {
-
-}
+.overview-quality-gate-conditions-list {}
 
 .overview-quality-gate-condition {
   float: left;
   box-sizing: border-box;
 }
 
-.overview-analysis {
-
-}
+.overview-analysis {}
 
 .overview-analysis + .overview-analysis {
   margin-top: 8px;
   from {
     opacity: 0;
   }
+
   to {
     opacity: 1;
   }
index f016fa70a8b082c9614c89e92eba0c2213f26417..e57af7a47f4ac27f5805658b82d1d1fc9af55bb9 100644 (file)
@@ -1,6 +1,4 @@
-.permissions-table {
-
-}
+.permissions-table {}
 
 .permissions-table > tbody > tr > td {
   border-bottom: 10px solid #fff !important;
index 0a28479b4297549ee43178c7ffeb8c645ab94c55..ee96a69b0c0cb9f641f523a4e792bf98858df3c7 100644 (file)
@@ -1,6 +1,4 @@
-.project-activity-event {
-
-}
+.project-activity-event {}
 
 .project-activity-event + .project-activity-event {
   margin-top: 4px;
index 5e8d9a7d8de9d7b58da518a34d1f5d4050432d8b..2b69f15e80382840b671a7b9c18b6986eb28a002 100644 (file)
@@ -1,6 +1,4 @@
-.project-activity-days-list {
-
-}
+.project-activity-days-list {}
 
 .project-activity-day {
   margin-bottom: 40px;
@@ -16,9 +14,7 @@
   font-weight: bold;
 }
 
-.project-activity-analyses-list {
-
-}
+.project-activity-analyses-list {}
 
 .project-activity-analysis {
   position: relative;
index 4d113484e133951df2f6e795fe9b7aa8e9296f43..abc060f17bababf1f59ca28417f8d7107f4ff670 100644 (file)
   float: right;
 }
 
-.projects-facets-reset .button {
-
-}
+.projects-facets-reset .button {}
 
 .projects-facet-bar {
   display: inline-block;
   width: 500px;
   margin-left: -250px;
   text-align: center;
-}
\ No newline at end of file
+}
index 42c96abf9a89fc6842858d9d7c98b0f797f0ca68..0498b5b1d48b0881ec20b056ec832556fef00df7 100644 (file)
@@ -11,7 +11,7 @@
   padding-bottom: 10px;
 }
 
-.quality-profiles-table-name { }
+.quality-profiles-table-name {}
 
 .quality-profiles-table-inheritance {
   width: 280px;
@@ -63,8 +63,7 @@
   padding: 15px 20px 20px;
 }
 
-.quality-profile-rules {
-}
+.quality-profile-rules {}
 
 .quality-profile-rules > header {
   padding: 15px 20px;
@@ -98,8 +97,7 @@
   margin-top: 20px;
 }
 
-.quality-profile-inheritance {
-}
+.quality-profile-inheritance {}
 
 .quality-profile-not-found {
   padding-top: 100px;
index 4a2926f69db4a64a8e1e61ecf65f23c71614df04..f8e42a325fd1af0515648b8b92fb44fed02cd5da 100644 (file)
@@ -25,8 +25,7 @@
   transform: translateX(1px);
 }
 
-.settings-menu {
-}
+.settings-menu {}
 
 .settings-menu > li {
   margin-bottom: 4px;
   border-top: 1px dotted #e6e6e6;
 }
 
-.settings-sub-categories-list {
-}
+.settings-sub-categories-list {}
 
-.settings-sub-categories-list > li {
-}
+.settings-sub-categories-list > li {}
 
 .settings-sub-categories-list > li + li {
   margin: 30px -20px 0;
index 121d9b55a353ba33364a9244804fdf31ab4f0721..aa30002f3b35ca52eef77fc64f72dfb8bdc7567d 100644 (file)
@@ -32,8 +32,7 @@
   line-height: 1.5;
 }
 
-.web-api-domain-actions {
-}
+.web-api-domain-actions {}
 
 .web-api-action {
   padding-top: 30px;
index 367b35565d7e13c1d3e267d25d733048382a35e1..c1cf6a02e41d87e0c8ebdccea8e6924e700e7087 100644 (file)
@@ -16,4 +16,4 @@
 .issue-location.selected {
   border-color: #f4b1b0;
   background-color: #f4b1b0;
-}
\ No newline at end of file
+}
index 2ad32dd05e73fd044057167bf518528fe3849b7f..3bc2cf047258d80caf77fb0f51386140b2f89960 100644 (file)
@@ -4,4 +4,4 @@
   border-radius: 2px;
   color: #777;
   text-align: center;
-}
\ No newline at end of file
+}
index d796e251a4332315fea87f121c1ef335166475c6..73b5cd8986ec26c30fdbbe3417299426b05b8897 100644 (file)
@@ -43,4 +43,4 @@ a:hover > .location-index {
 
 .source-line-code-inner .location-index + .location-index {
   margin-left: 0;
-}
\ No newline at end of file
+}
index 341d13d94acde57641027d61b603455ce2ce61c5..0d9951513c1a3f1d1cf56a9d7123f95f00fe2bcd 100644 (file)
@@ -40,4 +40,4 @@
 .source-line-code .location-message {
   padding-top: 2px;
   padding-bottom: 2px;
-}
\ No newline at end of file
+}
index 6de55f9937f715ccf65f80d68649dda5b11c46e4..a5a772ac53a2510f744ccb1aa62588d6484582c5 100644 (file)
@@ -9,4 +9,4 @@
   box-sizing: border-box;
   color: #777;
   font-size: 12px;
-}
\ No newline at end of file
+}
index eb5a45aa78675056b88e8d6d3a1bd8804a3ab746..d997d9f484b98e853738cce3cc0c3c37d9767bc6 100644 (file)
@@ -1,4 +1,4 @@
 .upgrade-organization-box {
   max-width: 400px;
   background-color: #f3f3f3 !important;
-}
\ No newline at end of file
+}
index b16bc698e8e1f6e912bf6f59ad083e33201140c0..2c7d5df1b4d7cc42da195749b54b592386a80c0d 100644 (file)
@@ -41,25 +41,33 @@ a > .rating-A {
   background-color: #b0d513;
 }
 
-a .rating-B { border-bottom-color: #b0d513; }
+a .rating-B {
+  border-bottom-color: #b0d513;
+}
 
 .rating-C {
   background-color: #eabe06;
 }
 
-a .rating-C { border-bottom-color: #eabe06; }
+a .rating-C {
+  border-bottom-color: #eabe06;
+}
 
 .rating-D {
   background-color: #ed7d20;
 }
 
-a .rating-D { border-bottom-color: #ed7d20; }
+a .rating-D {
+  border-bottom-color: #ed7d20;
+}
 
 .rating-E {
   background-color: #e00;
 }
 
-a .rating-E { border-bottom-color: #e00; }
+a .rating-E {
+  border-bottom-color: #e00;
+}
 
 .rating-small {
   width: 18px;
index 2b747112c27d91716802faed1a166a38bb43eaf5..3936a65ab63dee97d7e45fd340181f9ebd59dd5b 100644 (file)
@@ -4725,6 +4725,15 @@ postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0
     source-map "^0.5.6"
     supports-color "^3.1.2"
 
+postcss@^5.2.17:
+  version "5.2.17"
+  resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.17.tgz#cf4f597b864d65c8a492b2eabe9d706c879c388b"
+  dependencies:
+    chalk "^1.1.3"
+    js-base64 "^2.1.9"
+    source-map "^0.5.6"
+    supports-color "^3.2.3"
+
 prelude-ls@~1.1.2:
   version "1.1.2"
   resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
@@ -4737,6 +4746,13 @@ preserve@^0.2.0:
   version "0.2.0"
   resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
 
+prettier-css@0.0.7:
+  version "0.0.7"
+  resolved "https://registry.yarnpkg.com/prettier-css/-/prettier-css-0.0.7.tgz#6dc62e708b9899c414f5be01cbdf3d87f4f8c84c"
+  dependencies:
+    glob "^7.1.1"
+    postcss "^5.2.17"
+
 prettier-eslint-cli@3.4.1:
   version "3.4.1"
   resolved "https://registry.yarnpkg.com/prettier-eslint-cli/-/prettier-eslint-cli-3.4.1.tgz#467bbf2caa0adddbed67bfc6f75b0a0cceb82311"
@@ -5740,6 +5756,12 @@ supports-color@^3.1.0, supports-color@^3.1.1, supports-color@^3.1.2:
   dependencies:
     has-flag "^1.0.0"
 
+supports-color@^3.2.3:
+  version "3.2.3"
+  resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
+  dependencies:
+    has-flag "^1.0.0"
+
 svgo@^0.7.0:
   version "0.7.1"
   resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.1.tgz#287320fed972cb097e72c2bb1685f96fe08f8034"