From 7404a57b77de483b0cef8380e23b44a32cf2974c Mon Sep 17 00:00:00 2001 From: Koki Oyatsu Date: Tue, 12 Nov 2019 00:57:31 +0900 Subject: [PATCH] Change badge border radius --- .../components/backlogs/StoryListItem.vue | 8 ++-- .../components/backlogs/StoryModal.vue | 4 +- .../components/kanban/TaskModal.vue | 4 +- app/javascript/pages/KanbanPage.vue | 2 +- app/javascript/stylesheets/application.scss | 48 +++++++++++++++++++ 5 files changed, 57 insertions(+), 9 deletions(-) diff --git a/app/javascript/components/backlogs/StoryListItem.vue b/app/javascript/components/backlogs/StoryListItem.vue index 8337ad6..1718ec4 100644 --- a/app/javascript/components/backlogs/StoryListItem.vue +++ b/app/javascript/components/backlogs/StoryListItem.vue @@ -2,13 +2,13 @@
  • - + {{story.ticket_number_with_ticket_prefix}} - +
    {{story.title}} {{story.title}} - +
    {{ story.point | numeral('0.0') }} @@ -17,7 +17,7 @@
    - + {{story.ticket_number_with_ticket_prefix}} diff --git a/app/javascript/components/backlogs/StoryModal.vue b/app/javascript/components/backlogs/StoryModal.vue index c0fda87..cb590f0 100644 --- a/app/javascript/components/backlogs/StoryModal.vue +++ b/app/javascript/components/backlogs/StoryModal.vue @@ -62,7 +62,7 @@

    - + {{story.ticket_number_with_ticket_prefix}}

    @@ -97,7 +97,7 @@

    {{ $t('title.relatedTasks')}}

    -
    +
    {{ task.ticket_number_with_ticket_prefix }}
    diff --git a/app/javascript/components/kanban/TaskModal.vue b/app/javascript/components/kanban/TaskModal.vue index 1216502..bb6c983 100644 --- a/app/javascript/components/kanban/TaskModal.vue +++ b/app/javascript/components/kanban/TaskModal.vue @@ -65,7 +65,7 @@

    - + {{task.ticket_number_with_ticket_prefix}}

    @@ -131,7 +131,7 @@ >
    - + {{ task.story.ticket_number_with_ticket_prefix }} {{ task.story.title }}
    diff --git a/app/javascript/pages/KanbanPage.vue b/app/javascript/pages/KanbanPage.vue index cad589f..90c4a61 100644 --- a/app/javascript/pages/KanbanPage.vue +++ b/app/javascript/pages/KanbanPage.vue @@ -30,7 +30,7 @@
    - + {{story.ticket_number_with_ticket_prefix}} diff --git a/app/javascript/stylesheets/application.scss b/app/javascript/stylesheets/application.scss index 95c8619..a67a37f 100644 --- a/app/javascript/stylesheets/application.scss +++ b/app/javascript/stylesheets/application.scss @@ -30,4 +30,52 @@ $font-size-xm: 0.8em !default; .rb-border-dotted { border-style: dotted; +} + +.rb-badge-radius { + border-radius: 0.2rem; +} + +.badge { + &.badge-outlined { + background-color: transparent; + border: 1px solid; + border-radius: 0.2rem; + font-weight: normal; + + &.badge-default { + border-color: $gray-600; + color: $gray-600; + } + + &.badge-primary { + border-color: #2196F3; + color: #2196F3 + } + + &.badge-secondary { + border-color: #323a45; + color: #323a45 + } + + &.badge-success { + border-color: #64DD17; + color: #64DD17 + } + + &.badge-warning { + border-color: #FFD600; + color: #FFD600 + } + + &.badge-info { + border-color: #29B6F6; + color: #29B6F6 + } + + &.badge-danger { + border-color: #ef1c1c; + color: #ef1c1c + } + } } \ No newline at end of file