more plugin proof way of setting Font Awesome icons, fixes #1
This commit is contained in:
@@ -59,6 +59,7 @@ Latest (master):
|
|||||||
* Changesets will look similar to issue's journal
|
* Changesets will look similar to issue's journal
|
||||||
+ Improved revision page layout and added Font Awesome icons
|
+ Improved revision page layout and added Font Awesome icons
|
||||||
+ Improved file content view
|
+ Improved file content view
|
||||||
|
* Fixed #1: Font Awesome icons will no longer break plugins' icons
|
||||||
|
|
||||||
v1.2.0 (2015-03-03):
|
v1.2.0 (2015-03-03):
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 8 + 16px;
|
padding-left: 5px + 20px;
|
||||||
background-position: 0 center;
|
background-position: 0 center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
|
||||||
> a {
|
> a {
|
||||||
padding-left: $sidebar-padding-horizontal + 8 + 16px;
|
padding-left: $sidebar-padding-horizontal + 5px + 20px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: $sidebar-padding-horizontal center;
|
background-position: $sidebar-padding-horizontal center;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,13 @@ $icon-danger-hover-color: darken($brand-danger, 10%);
|
|||||||
{
|
{
|
||||||
.icon {
|
.icon {
|
||||||
@extend %fa-icon;
|
@extend %fa-icon;
|
||||||
|
padding-left: 20px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 0% 50%;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
margin-left: -20px;
|
||||||
|
}
|
||||||
|
|
||||||
.contextual & {
|
.contextual & {
|
||||||
margin-left: .5em;
|
margin-left: .5em;
|
||||||
@@ -268,21 +275,12 @@ $icon-danger-hover-color: darken($brand-danger, 10%);
|
|||||||
*/
|
*/
|
||||||
@if $use-font-awesome
|
@if $use-font-awesome
|
||||||
{
|
{
|
||||||
#admin-menu {
|
%admin-icon {
|
||||||
#admin-index > & {
|
|
||||||
a {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
li {
|
|
||||||
> a {
|
|
||||||
@extend %fa-icon;
|
@extend %fa-icon;
|
||||||
padding-left: $sidebar-padding-horizontal;
|
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
width: 1em;
|
width: 20px;
|
||||||
margin-right: .5em;
|
margin-left: -(5px + 20px);
|
||||||
color: $gray;
|
color: $gray;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -295,21 +293,97 @@ $icon-danger-hover-color: darken($brand-danger, 10%);
|
|||||||
color: $gray-darkest;
|
color: $gray-darkest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#admin-menu {
|
||||||
|
#admin-index > & {
|
||||||
|
a {
|
||||||
|
padding-left: 5px + 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.projects:before { content: $fa-var-cubes; }
|
li {
|
||||||
.users:before { content: $fa-var-user; }
|
> a {
|
||||||
.groups:before { content: $fa-var-group; }
|
padding-left: $sidebar-padding-horizontal + 5px + 20px;
|
||||||
.roles:before { content: $fa-var-eye; }
|
}
|
||||||
.trackers:before { content: $fa-var-ticket; }
|
}
|
||||||
.issue_statuses:before { content: $fa-var-pencil-square; }
|
|
||||||
.workflows:before { content: $fa-var-sitemap; }
|
.projects {
|
||||||
.custom_fields:before { content: $fa-var-edit; }
|
@extend %admin-icon;
|
||||||
.enumerations:before { content: $fa-var-list; }
|
|
||||||
.settings:before { content: $fa-var-gear; }
|
&:before { content: $fa-var-cubes; }
|
||||||
.plugins:before { content: $fa-var-puzzle-piece; }
|
}
|
||||||
.info:before { content: $fa-var-info-circle; }
|
|
||||||
.server_authentication:before { content: $fa-var-key; }
|
.users {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-user; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.groups {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-group; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.roles {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-eye; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.trackers {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-ticket; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.issue_statuses {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-pencil-square; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.workflows {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-sitemap; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom_fields {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-edit; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.enumerations {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-list; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-gear; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugins {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-puzzle-piece; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-info-circle; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.server_authentication {
|
||||||
|
@extend %admin-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-key; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@else
|
@else
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
@if $use-font-awesome
|
@if $use-font-awesome
|
||||||
{
|
{
|
||||||
.jstElements {
|
.jstElements {
|
||||||
button[type="button"] {
|
%jstb-icon {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: $body-bg;
|
background: $body-bg;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
@@ -37,21 +37,95 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.jstb_strong:before { content: $fa-var-bold; }
|
.jstb_strong {
|
||||||
.jstb_em:before { content: $fa-var-italic; }
|
@extend %jstb-icon;
|
||||||
.jstb_ins:before { content: $fa-var-underline; }
|
|
||||||
.jstb_del:before { content: $fa-var-strikethrough; }
|
&:before { content: $fa-var-bold; }
|
||||||
.jstb_code:before { content: $fa-var-code; }
|
}
|
||||||
.jstb_h1:before { content: $fa-var-header; }
|
|
||||||
.jstb_h2:before { content: $fa-var-header; font-size: 11px; }
|
.jstb_em {
|
||||||
.jstb_h3:before { content: $fa-var-header; font-size: 9px; }
|
@extend %jstb-icon;
|
||||||
.jstb_ul:before { content: $fa-var-list-ul; }
|
|
||||||
.jstb_ol:before { content: $fa-var-list-ol; }
|
&:before { content: $fa-var-italic; }
|
||||||
.jstb_bq:before { content: $fa-var-indent; }
|
}
|
||||||
.jstb_unbq:before { content: $fa-var-outdent; }
|
|
||||||
.jstb_pre:before { content: $fa-var-terminal; }
|
.jstb_ins {
|
||||||
.jstb_link:before { content: $fa-var-link; }
|
@extend %jstb-icon;
|
||||||
.jstb_img:before { content: $fa-var-image; }
|
|
||||||
|
&:before { content: $fa-var-underline; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_del {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-strikethrough; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_code {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-code; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_h1 {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-header; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_h2 {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { font-size: .7857em; content: $fa-var-header; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_h3 {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { font-size: .6429em; content: $fa-var-header; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_ul {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-list-ul; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_ol {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-list-ol; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_bq {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-indent; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_unbq {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-outdent; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_pre {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-terminal; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_link {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-link; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.jstb_img {
|
||||||
|
@extend %jstb-icon;
|
||||||
|
|
||||||
|
&:before { content: $fa-var-image; }
|
||||||
|
}
|
||||||
|
|
||||||
button.jstb_help {
|
button.jstb_help {
|
||||||
color: $link-color;
|
color: $link-color;
|
||||||
@@ -60,9 +134,7 @@
|
|||||||
color: $link-hover-color;
|
color: $link-hover-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
&:before { content: $fa-var-question-circle; }
|
||||||
content: $fa-var-question-circle;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user