From 68aebd634cc1f65be46c341c87ab2b9bd4333624 Mon Sep 17 00:00:00 2001 From: Achim Date: Thu, 31 Mar 2016 12:01:11 +0200 Subject: [PATCH] Modified Alerts for com/org/releases - used the core icons for all note and warning alerts - adjusted the alert colors and theme-specific icon colors --- .../owncloud_com/static/img/note_pencil.svg | 15 ++++--------- .../owncloud_com/static/img/warning.svg | 21 +++---------------- .../owncloud_org/static/img/note_pencil.svg | 10 +++++++++ .../owncloud_org/static/img/warning.svg | 8 +++++++ .../themes/owncloud_org/static/styles.css | 8 ++++++- .../static/img/note_pencil.svg | 10 +++++++++ .../owncloud_release/static/img/warning.svg | 8 +++++++ .../themes/owncloud_release/static/styles.css | 9 +++++++- 8 files changed, 58 insertions(+), 31 deletions(-) create mode 100644 _shared_assets/themes/owncloud_org/static/img/note_pencil.svg create mode 100644 _shared_assets/themes/owncloud_org/static/img/warning.svg create mode 100644 _shared_assets/themes/owncloud_release/static/img/note_pencil.svg create mode 100644 _shared_assets/themes/owncloud_release/static/img/warning.svg diff --git a/_shared_assets/themes/owncloud_com/static/img/note_pencil.svg b/_shared_assets/themes/owncloud_com/static/img/note_pencil.svg index 43d13587a..4b78598b9 100644 --- a/_shared_assets/themes/owncloud_com/static/img/note_pencil.svg +++ b/_shared_assets/themes/owncloud_com/static/img/note_pencil.svg @@ -2,16 +2,9 @@ - - - - - - - - - - + width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"> + + diff --git a/_shared_assets/themes/owncloud_com/static/img/warning.svg b/_shared_assets/themes/owncloud_com/static/img/warning.svg index a949e150b..f28db06a6 100644 --- a/_shared_assets/themes/owncloud_com/static/img/warning.svg +++ b/_shared_assets/themes/owncloud_com/static/img/warning.svg @@ -2,22 +2,7 @@ - - - - - - - - - - + width="32px" height="32px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve"> + diff --git a/_shared_assets/themes/owncloud_org/static/img/note_pencil.svg b/_shared_assets/themes/owncloud_org/static/img/note_pencil.svg new file mode 100644 index 000000000..150df4ee9 --- /dev/null +++ b/_shared_assets/themes/owncloud_org/static/img/note_pencil.svg @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/_shared_assets/themes/owncloud_org/static/img/warning.svg b/_shared_assets/themes/owncloud_org/static/img/warning.svg new file mode 100644 index 000000000..f28db06a6 --- /dev/null +++ b/_shared_assets/themes/owncloud_org/static/img/warning.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/_shared_assets/themes/owncloud_org/static/styles.css b/_shared_assets/themes/owncloud_org/static/styles.css index 92474c47e..e950b6d35 100644 --- a/_shared_assets/themes/owncloud_org/static/styles.css +++ b/_shared_assets/themes/owncloud_org/static/styles.css @@ -66,7 +66,7 @@ h3 { .alert .admonition-title { font-weight: bold; } - + .alert-warning { color: #DE5828 } @@ -95,6 +95,12 @@ h3 { color: white; } +.admonition.note {.alert();.alert-info(); border: 1px solid #428BCA !important; padding-left: 60px; padding-top: 15px; background: #d9edf7 url(img/note_pencil.svg) no-repeat 15px center; } +.admonition.note a {color: #428BCA; font-weight: bold;} +.admonition.warning {.alert();.alert-danger(); border:1px solid rgba(221,17,68,0.85); color: #d14; padding-left: 60px; padding-top: 15px; background: #f7f7f9 url(img/warning.svg) no-repeat 15px center; } +.admonition.warning a {color: #d14; font-weight: bold;} +.admonition-title { display: none;} + button a {color: #1d2d44} button a:hover {text-decoration: none; } diff --git a/_shared_assets/themes/owncloud_release/static/img/note_pencil.svg b/_shared_assets/themes/owncloud_release/static/img/note_pencil.svg new file mode 100644 index 000000000..150df4ee9 --- /dev/null +++ b/_shared_assets/themes/owncloud_release/static/img/note_pencil.svg @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/_shared_assets/themes/owncloud_release/static/img/warning.svg b/_shared_assets/themes/owncloud_release/static/img/warning.svg new file mode 100644 index 000000000..f28db06a6 --- /dev/null +++ b/_shared_assets/themes/owncloud_release/static/img/warning.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/_shared_assets/themes/owncloud_release/static/styles.css b/_shared_assets/themes/owncloud_release/static/styles.css index b4e8173a5..b86a130ef 100644 --- a/_shared_assets/themes/owncloud_release/static/styles.css +++ b/_shared_assets/themes/owncloud_release/static/styles.css @@ -84,6 +84,14 @@ h3 { color: white; } +/* Alert Settings */ + +.admonition.note {.alert();.alert-info(); border: 1px solid #428BCA !important; padding-left: 60px; padding-top: 15px; background: #d9edf7 url(img/note_pencil.svg) no-repeat 15px center; } +.admonition.note a {color: #428BCA; font-weight: bold;} +.admonition.warning {.alert();.alert-danger(); border:1px solid rgba(221,17,68,0.85); color: #d14; padding-left: 60px; padding-top: 15px; background: #f7f7f9 url(img/warning.svg) no-repeat 15px center; } +.admonition.warning a {color: #d14; font-weight: bold;} +.admonition-title { display: none;} + button a {color: #1d2d44} button a:hover {text-decoration: none; } @@ -450,4 +458,3 @@ li.next { } /* -- End specific css for documentation -- */ -