From 32fda584c1df2816c10b5fa045d4ccfd64e53448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Mon, 25 Apr 2016 10:51:44 +0200 Subject: [PATCH] Remove unused CSS --- .../components/highlighted/highlighted.scss | 3 - .../discover-search/discover-search.scss | 3 - app/modules/profile/styles/profile-bar.scss | 23 ------- .../profile/styles/profile-contacts.scss | 60 ----------------- app/styles/components/buttons.scss | 9 +-- app/styles/components/kanban-task.scss | 17 +---- app/styles/components/list-items.scss | 15 +---- app/styles/components/paginator.scss | 26 +------ app/styles/components/summary.scss | 20 +----- app/styles/components/taskboard-task.scss | 3 +- .../dependencies/mixins/project-card.scss | 3 - app/styles/modules/admin/contrib.scss | 67 +------------------ app/styles/modules/admin/third-parties.scss | 46 +------------ .../auth/change-password-from-recovery.scss | 26 ------- app/styles/modules/auth/login-form.scss | 6 -- app/styles/modules/backlog/backlog-table.scss | 3 - app/styles/modules/backlog/sprints.scss | 4 -- .../modules/backlog/taskboard-table.scss | 27 -------- app/styles/modules/common/history.scss | 22 ------ app/styles/modules/common/wizard.scss | 4 -- app/styles/modules/create-project.scss | 58 ---------------- app/styles/modules/home-project.scss | 6 +- app/styles/modules/issues/issues-table.scss | 6 +- 23 files changed, 14 insertions(+), 443 deletions(-) delete mode 100644 app/styles/modules/create-project.scss diff --git a/app/modules/discover/components/highlighted/highlighted.scss b/app/modules/discover/components/highlighted/highlighted.scss index c54e6111..d82d03ed 100644 --- a/app/modules/discover/components/highlighted/highlighted.scss +++ b/app/modules/discover/components/highlighted/highlighted.scss @@ -186,9 +186,6 @@ fill: $gray-light; margin-right: .25rem; } - .svg-eye-closed { - display: none; - } } .statistic { @extend %small; diff --git a/app/modules/discover/discover-search/discover-search.scss b/app/modules/discover/discover-search/discover-search.scss index d5d48788..df39297e 100644 --- a/app/modules/discover/discover-search/discover-search.scss +++ b/app/modules/discover/discover-search/discover-search.scss @@ -80,9 +80,6 @@ fill: $gray-light; margin-right: .2rem; } - .svg-eye-closed { - display: none; - } } .statistic { @extend %small; diff --git a/app/modules/profile/styles/profile-bar.scss b/app/modules/profile/styles/profile-bar.scss index 265fafe9..d7982289 100644 --- a/app/modules/profile/styles/profile-bar.scss +++ b/app/modules/profile/styles/profile-bar.scss @@ -123,29 +123,6 @@ display: block; } } - - .profile-organizations { - border-bottom: 1px solid $whitish; - border-top: 1px solid $whitish; - margin-bottom: 1rem; - padding: 1rem 0; - h3 { - @extend %bold; - margin-bottom: .5rem; - } - .profile-organizations-wrapper { - display: flex; - justify-content: space-between; - } - .organization { - background: $gray-light; - border-radius: 5px; - height: 45px; - margin-right: .2rem; - width: 45px; - } - } - .profile-quote { @extend %light; @extend %large; diff --git a/app/modules/profile/styles/profile-contacts.scss b/app/modules/profile/styles/profile-contacts.scss index baa0dfe5..4479f9f7 100644 --- a/app/modules/profile/styles/profile-contacts.scss +++ b/app/modules/profile/styles/profile-contacts.scss @@ -20,63 +20,3 @@ } } } -.profile-contact-single { - border-bottom: 1px solid $whitish; - display: flex; - flex-wrap: wrap; - padding: .8rem 1rem; - .profile-contact-picture { - flex-grow: 0; - margin-right: 1rem; - max-width: 54px; - img { - border-radius: .2rem; - width: 100%; - } - } - .profile-contact-data { - flex: 1; - h1 { - @extend %text; - @extend %large; - align-items: center; - display: flex; - line-height: 1.6; - margin-bottom: 0; - text-transform: none; - span { - @extend %text; - @extend %small; - background: $whitish; - color: $gray; - margin-left: 1rem; - padding: .1rem .3rem; - } - } - p { - color: $gray; - margin-bottom: 0; - } - .extra-info { - @extend %light; - color: $gray; - } - .position { - margin-right: .3rem; - } - } - .profile-project-stats { - display: flex; - flex-grow: 0; - margin-left: auto; - width: 100px; - div { - color: $gray-light; - margin-right: .5rem; - .icon { - margin-right: .2rem; - vertical-align: center; - } - } - } -} diff --git a/app/styles/components/buttons.scss b/app/styles/components/buttons.scss index 66d0b13a..dff7c572 100755 --- a/app/styles/components/buttons.scss +++ b/app/styles/components/buttons.scss @@ -103,14 +103,7 @@ a.button-gray { color: $white; } } -.button-block { - background: $white; - color: $red; - &:hover { - background: $red-light; - color: $white; - } -} + .button-bulk { @extend %button; background: $primary; diff --git a/app/styles/components/kanban-task.scss b/app/styles/components/kanban-task.scss index 052932ef..034e2018 100644 --- a/app/styles/components/kanban-task.scss +++ b/app/styles/components/kanban-task.scss @@ -147,12 +147,6 @@ bottom: .2rem; right: .5rem; } - .icon-drag-h { - @extend %xlarge; - bottom: .2rem; - cursor: move; - right: 45%; - } .task-points { @extend %small; color: darken($card-hover, 15%); @@ -215,19 +209,10 @@ .task-points { display: none; } - .icon-edit, - .icon-drag-h { - top: 1.4rem; - } .icon-edit { bottom: .2rem; right: 1rem; - } - .icon-drag-h { - @extend %medium; - cursor: move; - right: .1rem; - transform: rotate(90deg); + top: 1.4rem; } .kanban-tag { border-top: .2rem solid; diff --git a/app/styles/components/list-items.scss b/app/styles/components/list-items.scss index ed1c2e96..da319819 100644 --- a/app/styles/components/list-items.scss +++ b/app/styles/components/list-items.scss @@ -36,8 +36,7 @@ .list-itemtype-track, .list-itemtype-project-image, .list-itemtype-project-name, - .list-itemtype-project-description, - .list-itemtype-project-private { + .list-itemtype-project-description { opacity: .4; } } @@ -71,13 +70,6 @@ width: 2rem; } } - .list-itemtype-project-tags { - align-self: flex-end; - display: flex; - flex: 3; - flex-wrap: wrap; - margin-top: .5rem; - } .tag { align-self: flex-end; margin: 0 .25rem .25rem 0; @@ -139,8 +131,3 @@ margin-top: .25rem; } } - -.list-itemtype-timeline { - @include list-itemtype-common; - -} diff --git a/app/styles/components/paginator.scss b/app/styles/components/paginator.scss index 56d0d908..296f26ba 100644 --- a/app/styles/components/paginator.scss +++ b/app/styles/components/paginator.scss @@ -8,8 +8,7 @@ margin-right: .4rem; } a, - .active span, - .dots { + .active span { background: $gray-light; color: $white; padding: .5rem 1rem; @@ -27,27 +26,4 @@ background: $primary-light; } } - .dots { - background: transparent; - color: $gray-light; - } -} - -.v-pagination-list { - overflow: hidden; -} - -.v-pagination-next, -.v-pagination-previous { - background-color: $gray; - color: $whitish; - display: block; - padding: .1rem 0; - text-align: center; - visibility: hidden; - width: 100%; - &:hover { - background-color: $blackish; - transition: background .3s linear; - } } diff --git a/app/styles/components/summary.scss b/app/styles/components/summary.scss index 47a2d596..26b6bf2e 100644 --- a/app/styles/components/summary.scss +++ b/app/styles/components/summary.scss @@ -40,8 +40,7 @@ $summary-background: $grayer; opacity: 1; } &:hover { - .graph, - .color-line { + .graph { fill: $primary-light; transition: fill .2s; } @@ -50,10 +49,6 @@ $summary-background: $grayer; } } &.active { - .white-line, - .color-line { - display: none; - } .graph { fill: $primary; } @@ -69,18 +64,10 @@ $summary-background: $grayer; transition: all .2s; width: 100%; } - .graph, - .color-line { + .graph { fill: darken($gray-light, 20%); transition: fill .2s; } - .white-line { - fill: $summary-background; - } - .white-line, - .color-line { - display: block; - } } } @@ -136,9 +123,6 @@ $summary-background: $grayer; margin: 0; } } - .summary-stats-divider { - margin-right: 2rem; - } .icon { fill: currentColor; height: 1.5rem; diff --git a/app/styles/components/taskboard-task.scss b/app/styles/components/taskboard-task.scss index 8a5469ef..47f7a19e 100644 --- a/app/styles/components/taskboard-task.scss +++ b/app/styles/components/taskboard-task.scss @@ -6,8 +6,7 @@ margin: .2rem; position: relative; &:hover { - .icon-edit, - .icon-drag-h { + .icon-edit { display: block; fill: $card-dark; opacity: 1; diff --git a/app/styles/dependencies/mixins/project-card.scss b/app/styles/dependencies/mixins/project-card.scss index 16c5cba3..6b351616 100644 --- a/app/styles/dependencies/mixins/project-card.scss +++ b/app/styles/dependencies/mixins/project-card.scss @@ -29,9 +29,6 @@ fill: currentColor; margin-right: .25rem; } - .svg-eye-closed { - display: none; - } } .statistic { @extend %small; diff --git a/app/styles/modules/admin/contrib.scss b/app/styles/modules/admin/contrib.scss index 69744216..a37dc03e 100644 --- a/app/styles/modules/admin/contrib.scss +++ b/app/styles/modules/admin/contrib.scss @@ -12,27 +12,15 @@ fieldset { border-bottom: 1px solid $whitish; margin-bottom: 1rem; - padding-bottom: 1rem; } - .contrib-input { - flex: 1; - } - .contrib-test { - align-items: center; - display: flex; - flex-basis: 7.5rem; - justify-content: center; - margin-left: .5rem; - text-align: center; + input { + margin-bottom: 1rem; } label { @extend %text; display: block; margin-bottom: .25rem; } - .contrib-form-wrapper { - display: flex; - } .submit-button { display: block; text-align: center; @@ -48,67 +36,18 @@ border-radius: 0 5px 5px 0; cursor: pointer; display: flex; + margin-bottom: 1rem; padding: 0 1rem; } - .help-copy { - @extend %small; - opacity: 0; - &.visible { - opacity: 1; - transition: opacity .2s linear; - } - } } .check-item { align-items: center; - // border-bottom: 1px solid $whitish; display: flex; justify-content: space-between; margin-top: 1rem; &:last-child { border-bottom: 0; - } - } - .help { - margin-top: 2rem; - h3 { - font-family: opensans-semibold; margin-bottom: 1rem; } - ol { - padding: 0 0 0 2rem; - span { - font-family: opensans-semibold; - } - } - .img { - margin-bottom: 1rem; - } - .alt-image { - @extend %small; - font-style: italic; - } - code { - @extend %small; - background: $whitish; - direction: ltr; - display: block; - font-family: 'courier new', 'monospace'; - line-height: 1.4rem; - margin-bottom: 1rem; - padding: .5rem; - unicode-bidi: embed; - white-space: pre; - width: 100%; - } - .code-info { - padding-left: 1rem; - li { - margin-bottom: .5rem; - } - span { - font-family: opensans-semibold; - } - } } } diff --git a/app/styles/modules/admin/third-parties.scss b/app/styles/modules/admin/third-parties.scss index 92331d11..7983d81c 100644 --- a/app/styles/modules/admin/third-parties.scss +++ b/app/styles/modules/admin/third-parties.scss @@ -6,13 +6,13 @@ } input, textarea { - @extend %title; + @extend %text; } fieldset { margin-bottom: 1rem; } label { - @extend %title; + @extend %text; display: block; margin-bottom: .2rem; } @@ -46,46 +46,4 @@ } } } - .help { - margin-top: 2rem; - h3 { - font-family: opensans-semibold; - margin-bottom: 1rem; - } - ol { - padding: 0 0 0 2rem; - span { - font-family: opensans-semibold; - } - } - .img { - margin-bottom: 1rem; - } - .alt-image { - @extend %small; - font-style: italic; - } - code { - @extend %small; - background: $whitish; - direction: ltr; - display: block; - font-family: 'courier new', 'monospace'; - line-height: 1.4rem; - margin-bottom: 1rem; - padding: .5rem; - unicode-bidi: embed; - white-space: pre; - width: 100%; - } - .code-info { - padding-left: 1rem; - li { - margin-bottom: .5rem; - } - span { - font-family: opensans-semibold; - } - } - } } diff --git a/app/styles/modules/auth/change-password-from-recovery.scss b/app/styles/modules/auth/change-password-from-recovery.scss index f35cb4f2..105a84f8 100644 --- a/app/styles/modules/auth/change-password-from-recovery.scss +++ b/app/styles/modules/auth/change-password-from-recovery.scss @@ -1,29 +1,3 @@ .change-password-text { - color: $grayer; text-align: center; } - -.change-password-form-container { - .token-change-password { - position: relative; - } - input:focus { - +.get-token { - opacity: 0; - transition: opacity .5s linear; - } - } - .get-token { - @extend %small; - color: $gray-light; - opacity: 1; - position: absolute; - right: 1rem; - top: .5rem; - transition: all .3s linear; - &:hover { - color: $grayer; - transition: color .3s linear; - } - } -} diff --git a/app/styles/modules/auth/login-form.scss b/app/styles/modules/auth/login-form.scss index 219abdd8..591c60a1 100644 --- a/app/styles/modules/auth/login-form.scss +++ b/app/styles/modules/auth/login-form.scss @@ -23,10 +23,4 @@ transition: color .3s linear; } } - .remember-me { - vertical-align: top; - +label { - cursor: pointer; - } - } } diff --git a/app/styles/modules/backlog/backlog-table.scss b/app/styles/modules/backlog/backlog-table.scss index 0e762e3f..f6351766 100644 --- a/app/styles/modules/backlog/backlog-table.scss +++ b/app/styles/modules/backlog/backlog-table.scss @@ -18,7 +18,6 @@ width: 100%; } .backlog-table-title, - .backlog-table-subtitle, .row { &:hover { background: transparent; @@ -41,7 +40,6 @@ flex-basis: 125px; flex-grow: 0; } - } .votes { color: $gray; @@ -191,7 +189,6 @@ display: none; } } - .row-selected, .is-checked { background: lighten($primary, 60%); transition: background .2s ease-in; diff --git a/app/styles/modules/backlog/sprints.scss b/app/styles/modules/backlog/sprints.scss index 327c87a7..f4a78ce0 100644 --- a/app/styles/modules/backlog/sprints.scss +++ b/app/styles/modules/backlog/sprints.scss @@ -97,9 +97,6 @@ color: $gray-light; flex-flow: 1; } - .sprint-points { - flex-grow: 1; - } ul { margin: 0; } @@ -224,7 +221,6 @@ .tags-block, .us-settings, .status, - .icon-drag-v, .popover, input { display: none; diff --git a/app/styles/modules/backlog/taskboard-table.scss b/app/styles/modules/backlog/taskboard-table.scss index 6ee93cd4..403e7149 100644 --- a/app/styles/modules/backlog/taskboard-table.scss +++ b/app/styles/modules/backlog/taskboard-table.scss @@ -157,12 +157,6 @@ $column-margin: 0 10px 0 0; margin-bottom: .5rem; min-height: 10rem; width: 100%; - &:hover { - .new-task { - opacity: 1; - transition: opacity .3s linear; - } - } &.blocked { .taskboard-userstory-box { background: rgba($red, .6); @@ -228,10 +222,6 @@ $column-margin: 0 10px 0 0; .taskboard-userstory-box { position: relative; - .tag-list { - display: none; - margin-bottom: 1rem; - } .us-title { @extend %large; @extend %title; @@ -246,20 +236,3 @@ $column-margin: 0 10px 0 0; } } } - -.points-list { - a { - color: $primary; - margin-left: .5rem; - &:hover { - span { - opacity: 1; - transition: opacity .2s linear; - } - } - } - span { - opacity: 0; - transition: opacity .2s linear; - } -} diff --git a/app/styles/modules/common/history.scss b/app/styles/modules/common/history.scss index 08495746..993231a1 100644 --- a/app/styles/modules/common/history.scss +++ b/app/styles/modules/common/history.scss @@ -138,17 +138,6 @@ transition: background .2s ease-in; } } -.more-comments { - @extend %small; - border-bottom: 1px solid $gray-light; - color: $gray-light; - display: block; - padding: 1rem; - .prev-comments-num { - color: $primary; - margin-left: .5rem; - } -} .comment-list { &.activeanimation { .comment-single.ng-enter:last-child, @@ -287,14 +276,3 @@ } } } -.more-activity { - @extend %small; - border-bottom: 1px solid $gray-light; - color: $gray-light; - display: block; - padding: 1rem; - .prev-activity-num { - color: $primary; - margin-left: .5rem; - } -} diff --git a/app/styles/modules/common/wizard.scss b/app/styles/modules/common/wizard.scss index 7c12627d..9fb128ac 100644 --- a/app/styles/modules/common/wizard.scss +++ b/app/styles/modules/common/wizard.scss @@ -17,10 +17,6 @@ text-align: center; } } - .more-info { - @extend %small; - color: $primary; - } .template-selector-title { display: flex; justify-content: space-between; diff --git a/app/styles/modules/create-project.scss b/app/styles/modules/create-project.scss deleted file mode 100644 index dc22aefd..00000000 --- a/app/styles/modules/create-project.scss +++ /dev/null @@ -1,58 +0,0 @@ -.create-project { - @extend %triangled-bg; - align-content: center; - align-items: center; - bottom: 0; - justify-content: center; - left: 0; - position: fixed; - right: 0; - top: 0; - z-index: 999; - fieldset { - margin-bottom: 1rem; - } - .create-project-container { - flex-basis: 400px; - flex-grow: 0; - } - h1 { - color: $white; - text-align: center; - } - .logo, - .tagline { - margin-bottom: 1rem; - text-align: center; - } - .tagline { - @extend %xlarge; - @extend %title; - color: $white; - line-height: 2rem; - text-transform: uppercase; - } - form { - margin-bottom: 2rem; - } - input { - background: $white; - @include placeholder { - color: $gray-light; - } - } - .button { - color: $white; - display: block; - margin-bottom: .5rem; - text-align: center; - &:hover { - background: $primary-light; - } - } - a { - &:hover { - color: $white; - } - } -} diff --git a/app/styles/modules/home-project.scss b/app/styles/modules/home-project.scss index 074c7414..1ef426ee 100644 --- a/app/styles/modules/home-project.scss +++ b/app/styles/modules/home-project.scss @@ -33,9 +33,6 @@ .private { @include svg-size(1.1rem); } - .like-watch-container { - margin-left: auto; - } .track-buttons-container { display: flex; } @@ -91,8 +88,7 @@ flex-basis: 220px; width: 220px; } - .involved-team, - .involved-organization { + .involved-team { display: flex; flex-wrap: wrap; margin-bottom: 1rem; diff --git a/app/styles/modules/issues/issues-table.scss b/app/styles/modules/issues/issues-table.scss index fadd1ed3..8375a2cd 100644 --- a/app/styles/modules/issues/issues-table.scss +++ b/app/styles/modules/issues/issues-table.scss @@ -6,7 +6,7 @@ } .row { &:hover { - background: lighten($primary, 60%); + background: lighten($primary, 65%); transition: background .2s ease-in; } .icon { @@ -20,10 +20,6 @@ } } } - .row-selected { - background: lighten($primary, 60%); - transition: background .2s ease-in; - } .title { @extend %medium; @extend %bold;