From 37a5468e397d8423bf4f021d4eb0f636483cc70e Mon Sep 17 00:00:00 2001 From: Marion Curtil Date: Fri, 6 Mar 2020 14:32:35 +0100 Subject: [PATCH] :lipstick: Manages the overlay and edition buttons state --- .../configuration/configuration.component.css | 14 ++++---- .../configuration.component.html | 6 ++-- .../formatted-tickets.component.css | 33 ++++++++++++++----- .../formatted-tickets.component.html | 11 ++++--- .../formatted-tickets.component.ts | 10 ++++++ .../get-started/get-started.component.html | 2 +- .../kanban-issues.component.html | 2 +- src/app/components/login/login.component.html | 2 +- src/styles.css | 11 ++++--- 9 files changed, 61 insertions(+), 30 deletions(-) diff --git a/src/app/components/configuration/configuration.component.css b/src/app/components/configuration/configuration.component.css index 775084d..6748f64 100755 --- a/src/app/components/configuration/configuration.component.css +++ b/src/app/components/configuration/configuration.component.css @@ -12,7 +12,7 @@ h2 { flex-direction: row; justify-content: flex-start; align-items: stretch; - padding: 10px 0px 40px; + padding: 10px 0 40px; } .form-section-title { @@ -25,7 +25,7 @@ h2 { } .form-section { - padding: 0px 20px 20px 10px; + padding: 0 20px 20px 10px; background: #eee; margin: 5px 0 5px 20px; border-radius: 5px; @@ -40,7 +40,7 @@ h2 { } .centered-form-section { - padding: 0px 20px 20px 10px; + padding: 0 20px 20px 10px; background: #eee; margin: 5px 0 5px 20px; border-radius: 5px; @@ -97,7 +97,7 @@ h2 { .center-self { display: flex; align-items: center; - margin: 30px 0px 10px; + margin: 30px 0 10px; justify-content: flex-start; } @@ -118,8 +118,8 @@ h2 { color: #369; text-align: center; border-radius: 50%; - margin: 0px 20px 0px 5px; - box-shadow: 2px 2px 4px 0px #ccc; + margin: 0 20px 0 5px; + box-shadow: 2px 2px 4px 0 #ccc; } .number-circle + div { @@ -211,7 +211,7 @@ h2 { /* overrding button margins */ button { - margin: 0px 20px 10px 20px; + margin: 0 20px 10px 20px; } form p { diff --git a/src/app/components/configuration/configuration.component.html b/src/app/components/configuration/configuration.component.html index 0e3d658..b2105a3 100755 --- a/src/app/components/configuration/configuration.component.html +++ b/src/app/components/configuration/configuration.component.html @@ -6,7 +6,7 @@

Configuration

Let's configure which Jira tickets to print and the space they'll take on a post-it.

- +
@@ -34,7 +34,7 @@

Let's configure which Jira tickets to print and the space they'll take on a

- +
@@ -104,7 +104,7 @@

Let's configure which Jira tickets to print and the space they'll take on a

- +
diff --git a/src/app/components/formatted-tickets/formatted-tickets.component.css b/src/app/components/formatted-tickets/formatted-tickets.component.css index 6416d92..ea9ca33 100755 --- a/src/app/components/formatted-tickets/formatted-tickets.component.css +++ b/src/app/components/formatted-tickets/formatted-tickets.component.css @@ -341,8 +341,7 @@ p { } .full-ticket:hover .overlay div { - opacity: 0.35; - + animation: 0.3s fadein both } .full-ticket:hover .overlay img { @@ -366,13 +365,13 @@ p { /*================================================== * Edition styling * ===============================================*/ - .btn { + .card-round-button { display: inline-block; position: absolute; text-decoration: none; bottom: -20px; - right: 60px; - background: #ff8181; + right: 80px; + background: #336699; color: #FFF; width: 40px; height: 40px; @@ -383,17 +382,20 @@ p { vertical-align: middle; overflow: hidden; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.29); - border-bottom: solid 3px #bd6565; + border-width: 0; + border-bottom: solid 3px #193d61; transition: .4s; margin: 0; padding: 0; } - .btn2 { - right:100px; + .card-cancel-button { + right:130px; + background: #888888; + border-bottom: solid 3px #333333; } - .btn:active { + .card-round-button:active { top: none; position: absolute; -ms-transform: translateY(2px); @@ -402,4 +404,17 @@ p { box-shadow: 0 0 1px rgba(0, 0, 0, 0.15); border-bottom: none; } + + .card-round-button:hover { + box-shadow: inset 10px 10px 40px 5px rgba(0,0,0,0.2); + } + + @keyframes fadein { + from { opacity: 0; } + to { opacity: 0.35; } + } + + .permanent-opacity { + animation: 0.3s fadein both; + } } \ No newline at end of file diff --git a/src/app/components/formatted-tickets/formatted-tickets.component.html b/src/app/components/formatted-tickets/formatted-tickets.component.html index 8955fe4..1404512 100755 --- a/src/app/components/formatted-tickets/formatted-tickets.component.html +++ b/src/app/components/formatted-tickets/formatted-tickets.component.html @@ -3,7 +3,7 @@

{{sprintName}}

-
+

{{issue.key | ticketkey}}

@@ -32,13 +32,16 @@

{{sprintName}}

end date
-
+
+
+
+
- - + +
diff --git a/src/app/components/formatted-tickets/formatted-tickets.component.ts b/src/app/components/formatted-tickets/formatted-tickets.component.ts index efe5ff1..e97b456 100755 --- a/src/app/components/formatted-tickets/formatted-tickets.component.ts +++ b/src/app/components/formatted-tickets/formatted-tickets.component.ts @@ -20,6 +20,7 @@ export class FormattedTicketsComponent implements OnInit, OnDestroy { isTimeTracked = false isComponentGrouped = false step = Step.PRINTING + fullTicketInEdition: number | null = null private unsubscribe = new Subject() constructor( @@ -117,6 +118,15 @@ export class FormattedTicketsComponent implements OnInit, OnDestroy { }) } + //Edition mode + enterFullTicketEditionMode(index: number) { + this.fullTicketInEdition = index + } + + exitFullTicketEditionMode() { + this.fullTicketInEdition = null + } + ngOnDestroy(): void { this.unsubscribe.next() this.unsubscribe.complete() diff --git a/src/app/components/get-started/get-started.component.html b/src/app/components/get-started/get-started.component.html index 750d10e..1ff9e29 100755 --- a/src/app/components/get-started/get-started.component.html +++ b/src/app/components/get-started/get-started.component.html @@ -40,7 +40,7 @@

Sign in

alt="where to find the board id in the url" />
- +

Printing configuration

diff --git a/src/app/components/kanban-issues/kanban-issues.component.html b/src/app/components/kanban-issues/kanban-issues.component.html index d4b040d..d49416c 100755 --- a/src/app/components/kanban-issues/kanban-issues.component.html +++ b/src/app/components/kanban-issues/kanban-issues.component.html @@ -19,5 +19,5 @@

{{boardName}}

{{form.errors?.noIssue.message}}

- + diff --git a/src/app/components/login/login.component.html b/src/app/components/login/login.component.html index c650728..e000fb5 100755 --- a/src/app/components/login/login.component.html +++ b/src/app/components/login/login.component.html @@ -51,7 +51,7 @@

Let's retrieve your Jira board

- +
diff --git a/src/styles.css b/src/styles.css index bd9dc71..20ffae9 100755 --- a/src/styles.css +++ b/src/styles.css @@ -36,10 +36,13 @@ body, input[text], button { /* BUTTONS ============================== */ button:focus { outline: none !important; +} + +.regular-button:focus { border: 0; } -button { +.regular-button { margin: 30px 65px; background-color:#369; border-radius: 24px; @@ -53,16 +56,16 @@ button { text-decoration:none; } -button:hover { +.regular-button:hover { background-color:#476e9e; } -button:enabled:active { +.regular-button:enabled:active { position:relative; top:1px; } -button:disabled { +.regular-button:disabled { background-color: #555; }