From 5ed900c9bc48062bec363c5f6281365c39a34d6c Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 3 Apr 2015 17:47:39 -0400 Subject: [PATCH] Add new co-alert CSS styles and fix some other UI issues --- static/css/core-ui.css | 75 +++++++++++++++++++ .../css/directives/ui/convert-user-to-org.css | 35 +++++++++ static/directives/convert-user-to-org.html | 8 +- static/directives/plan-manager.html | 8 +- static/directives/plans-table.html | 10 +-- .../repo-view/repo-panel-settings.html | 14 ++-- static/partials/user-view.html | 8 +- 7 files changed, 135 insertions(+), 23 deletions(-) create mode 100644 static/css/directives/ui/convert-user-to-org.css diff --git a/static/css/core-ui.css b/static/css/core-ui.css index 37cc03d69..214e79114 100644 --- a/static/css/core-ui.css +++ b/static/css/core-ui.css @@ -960,3 +960,78 @@ margin-bottom: 10px; } +.co-alert { + padding: 16px; + padding-left: 46px; + position: relative; + margin-bottom: 20px; + position: relative; + border: 1px solid #eee; +} + +.co-alert.co-alert-success { + background: #F0FFF4; +} + +.co-alert.co-alert-success:before { + font-family: FontAwesome; + content: "\f058"; + position: absolute; + top: 11px; + left: 12px; + font-size: 22px; + color: #83D29C; +} + +.co-alert.co-alert-info { + background: #F0FAFF; +} + +.co-alert.co-alert-info:before { + font-family: FontAwesome; + content: "\f05a"; + position: absolute; + top: 11px; + left: 12px; + font-size: 22px; + color: #83B7D2; +} + +.co-alert.co-alert-warning { + background: #FFFBF0; +} + +.co-alert.co-alert-warning:before { + font-family: FontAwesome; + content: "\f071"; + position: absolute; + top: 11px; + left: 12px; + font-size: 22px; + color: #E4C212; +} + +.co-alert.co-alert-danger { + background: #FFF0F0; +} + +.co-alert.co-alert-danger:before { + font-family: core-icons; + content: "\f107"; + position: absolute; + top: 11px; + left: 12px; + font-size: 22px; + color: red; +} + +.co-alert.co-alert-danger:after { + font-family: FontAwesome; + content: "\f12a"; + position: absolute; + top: 16px; + left: 20px; + font-size: 16px; + color: white; + z-index: 2; +} \ No newline at end of file diff --git a/static/css/directives/ui/convert-user-to-org.css b/static/css/directives/ui/convert-user-to-org.css new file mode 100644 index 000000000..c0cf59336 --- /dev/null +++ b/static/css/directives/ui/convert-user-to-org.css @@ -0,0 +1,35 @@ +.convert-user-to-org .convert-form h3 { + margin-bottom: 20px; +} + +.convert-user-to-org #convertForm { + max-width: 700px; +} + +.convert-user-to-org #convertForm .form-group { + margin-bottom: 20px; +} + +.convert-user-to-org #convertForm input { + margin-bottom: 10px; + margin-left: 20px; +} + +.convert-user-to-org #convertForm .existing-data { + font-size: 16px; + font-weight: bold; +} + +.convert-user-to-org #convertForm .description { + margin-top: 10px; + display: block; + color: #888; + font-size: 12px; + margin-left: 20px; +} + +.convert-user-to-org #convertForm .existing-data { + display: block; + padding-left: 20px; + margin-top: 10px; +} diff --git a/static/directives/convert-user-to-org.html b/static/directives/convert-user-to-org.html index 8011ecf50..4dc143c20 100644 --- a/static/directives/convert-user-to-org.html +++ b/static/directives/convert-user-to-org.html @@ -2,7 +2,7 @@
-
+
Cannot convert this account into an organization, as it is a member of {{user.organizations.length}} other organization{{user.organizations.length > 1 ? 's' : ''}}. Please leave {{user.organizations.length > 1 ? 'those organizations' : 'that organization'}} first. @@ -10,7 +10,7 @@
-
+
Note: Converting a user account into an organization cannot be undone
@@ -20,8 +20,6 @@
-

Convert to organization

-
@@ -88,7 +86,7 @@