From e07f7036676925b6f8dc4ffdf638c8c3d6b63941 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 16 Sep 2014 12:21:58 +0200 Subject: [PATCH] recipientList WIP --- .../app/views/agent_ticket_create.jst.eco | 128 ++++++++++++++++++ app/assets/stylesheets/zzz.css.erb | 83 +++++++++++- 2 files changed, 207 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco index eccffe5b3..c7649b624 100644 --- a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco @@ -25,6 +25,134 @@
+
+ + +
diff --git a/app/assets/stylesheets/zzz.css.erb b/app/assets/stylesheets/zzz.css.erb index 512a30495..de09bd532 100644 --- a/app/assets/stylesheets/zzz.css.erb +++ b/app/assets/stylesheets/zzz.css.erb @@ -248,17 +248,16 @@ table { padding: 0; } -.table .checkbox-replacement { +.checkbox-replacement { padding: 0; margin: 0; height: 38px; cursor: pointer; -webkit-user-select: none; - -moz-user-select: none; user-select: none; } -.table .checkbox-replacement input[type=checkbox] { +.checkbox-replacement input[type=checkbox] { display: none; } @@ -433,7 +432,7 @@ label { .form-control:focus, .tokenfield.focus { box-shadow: none; - border-color: #419ed7 !important; + border-color: hsl(0,0%,90%); } .has-error .form-control, @@ -3122,6 +3121,82 @@ footer { border: none; } +.caret { + position: absolute; + top: 50%; + margin-top: -3px; + right: 10px; +} + +.recipientList .dropdown-menu { + margin: 0; + padding: 0; + width: 100%; + color: white; + background: hsl(234,10%,19%); + border-radius: 0; + border: none; + box-shadow: none; +} + .recipientList .dropdown-menu ul { + margin: 0; + } + + .recipientList-entry { + height: 40px; + padding-left: 5px; + } + + .recipientList-entry .checkbox-replacement { + width: 30px; + opacity: 0.7; + } + + .recipientList-icon { + width: 30px; + } + + .recipientList-entry:not(.recipientList-new) .recipientList-icon { + opacity: 0.2; + } + + .recipientList-name { + margin-left: 5px; + margin-top: 2px; + } + + .recipientList-entry:not(:last-child):not(:first-child) { + box-shadow: 0 1px rgba(255,255,255,.13) inset; + } + + .recipientList-entry:hover { + background: hsl(205,90%,60%); + } + + .recipientList-entry:hover + :not(:last-child):not(:first-child) { + box-shadow: none; + } + + .recipientList-entry:hover .recipientList-icon { + opacity: 1; + } + + .recipientList-detail { + opacity: 0.5; + } + + .recipientList-icon.plus { + margin-left: 13px; + } + + .recipientList-new { + background: hsl(145,51%,45%); + } + + .recipientList-new:hover { + background: hsl(147,52%,43%); + } + /* ----------------