Skip to content

Commit

Permalink
Simplify ticket state circles (#35)
Browse files Browse the repository at this point in the history
* Simplify state circles

This removes duplicate directives from tabs.rst which will help if we have to reference the exact same code somewhere else. This commit can't be merged before 50bd993 because of compatibility

* QA: Fix whitspace and move style attrs to CSS

Co-authored-by: Ryan Lue <hello@ryanlue.com>
  • Loading branch information
MrGeneration and rlue committed Sep 8, 2020
1 parent 00d5e3c commit 325984a
Show file tree
Hide file tree
Showing 36 changed files with 32 additions and 7 deletions.
29 changes: 27 additions & 2 deletions _static/theme/theme_overrides.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
.wy-table-responsive table td {
white-space: normal !important;
white-space: normal !important;
}

.wy-table-responsive table td img {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
}

.zammad-state-circle {
width: 1em;
height: 1em;
border-radius: 50%;
border-width: 3px;
border-style: solid;
margin: -18px auto;
}

.border-green {
border-color: #31af68;
}

.border-charcoal {
border-color: #43484c;
}

.border-yellow {
border-color: #fcac01;
}

.border-red {
border-color: #f45801;
}
8 changes: 4 additions & 4 deletions advanced/tabs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ menu area. These are your **open tabs.**

.. |grn| raw:: html

<div style="width: 1em; height: 1em; border-radius: 50%; border: 3px solid #31af68; margin: 0 auto"></div>
<div class="zammad-state-circle border-green"></div>

.. |blk| raw:: html

<div style="width: 1em; height: 1em; border-radius: 50%; border: 3px solid #43484c; margin: 0 auto"></div>
<div class="zammad-state-circle border-charcoal"></div>

.. |ylw| raw:: html

<div style="width: 1em; height: 1em; border-radius: 50%; border: 3px solid #fcac01; margin: 0 auto"></div>
<div class="zammad-state-circle border-yellow"></div>

.. |red| raw:: html

<div style="width: 1em; height: 1em; border-radius: 50%; border: 3px solid #f45801; margin: 0 auto"></div>
<div class="zammad-state-circle border-red"></div>

* A **pulsing dot** means that a ticket has new activity since you last viewed it.
* Drag and drop tabs to rearrange them.
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def setup(app):
'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
'_static/theme/theme_overrides.css'
],
}
}
Binary file added locale/en/LC_MESSAGES/advanced/keyboard-shortcuts.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/advanced/search.mo
Binary file not shown.
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/advanced/tabs.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/advanced/text-modules.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/advanced/ticket-actions.mo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/advanced/ticket-templates.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/advanced/time-accounting.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/basics/find-ticket.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/basics/find-ticket/browse.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/basics/find-ticket/search.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/basics/service-ticket.mo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/basics/what-is-a-ticket.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/extras/caller-log.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/extras/chat.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/extras/customers.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/extras/dashboard.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/extras/organizations.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/extras/profile-and-settings.mo
Binary file not shown.
Binary file added locale/en/LC_MESSAGES/index.mo
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 325984a

Please sign in to comment.