From 195f9d9d2713ee729313581751c78565dc0bc381 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 25 Jun 2013 17:34:33 -0700 Subject: [PATCH] Carded notifications --- UI/Content/base.less | 1 + UI/Content/icons.less | 55 +++++++++++++++++++ UI/Settings/Notifications/AddTemplate.html | 2 +- UI/Settings/Notifications/AddView.js | 2 +- .../Notifications/CollectionTemplate.html | 24 ++++---- UI/Settings/Notifications/CollectionView.js | 6 +- UI/Settings/Notifications/EditTemplate.html | 1 - UI/Settings/Notifications/EditView.js | 9 ++- UI/Settings/Notifications/ItemTemplate.html | 32 ++++++++--- UI/Settings/Notifications/ItemView.js | 14 +++-- UI/Settings/Notifications/Model.js | 15 ++--- UI/Settings/Notifications/notifications.less | 30 +++++++++- 12 files changed, 147 insertions(+), 44 deletions(-) create mode 100644 UI/Content/icons.less diff --git a/UI/Content/base.less b/UI/Content/base.less index 8f61632ea..87c3d8914 100644 --- a/UI/Content/base.less +++ b/UI/Content/base.less @@ -9,6 +9,7 @@ @import "backgrid/backgrid"; @import "../shared/styles/clickable"; @import "prefixer"; +@import "icons"; .progress { width : 125px; diff --git a/UI/Content/icons.less b/UI/Content/icons.less new file mode 100644 index 000000000..82dd713df --- /dev/null +++ b/UI/Content/icons.less @@ -0,0 +1,55 @@ +@import "FontAwesome/font-awesome.less"; +@import "Bootstrap/variables"; + +/* Icon rotations and mirroring */ +.icon-rotate-90() { + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -ms-transform: rotate(90deg); + -o-transform: rotate(90deg); + transform: rotate(90deg); + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); +} + +.icon-rotate-180() { + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + -o-transform: rotate(180deg); + transform: rotate(180deg); + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); +} + +.icon-rotate-270() { + -webkit-transform: rotate(270deg); + -moz-transform: rotate(270deg); + -ms-transform: rotate(270deg); + -o-transform: rotate(270deg); + transform: rotate(270deg); + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); +} + +.icon-flip-horizontal() { + -webkit-transform: scale(-1, 1); + -moz-transform: scale(-1, 1); + -ms-transform: scale(-1, 1); + -o-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.icon-flip-vertical() { + -webkit-transform: scale(1, -1); + -moz-transform: scale(1, -1); + -ms-transform: scale(1, -1); + -o-transform: scale(1, -1); + transform: scale(1, -1); +} + +.icon-nd-edit:before { + .icon(@wrench); +} + +.icon-nd-delete:before { + .icon(@remove); + color: @errorText; +} \ No newline at end of file diff --git a/UI/Settings/Notifications/AddTemplate.html b/UI/Settings/Notifications/AddTemplate.html index 621e83d85..2f3ba9f31 100644 --- a/UI/Settings/Notifications/AddTemplate.html +++ b/UI/Settings/Notifications/AddTemplate.html @@ -3,7 +3,7 @@

Add Notification

{{formBuilder}} - index