Skip to content

Commit

Permalink
BUGFIX: Consistently style custom defined page icons.
Browse files Browse the repository at this point in the history
* Apply page icon styling to .page-icon, rather than specific elements.
  • Loading branch information
ajshort committed Jun 13, 2012
1 parent ce3d48e commit 160d516
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 39 deletions.
18 changes: 11 additions & 7 deletions admin/css/screen.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 28 additions & 25 deletions admin/scss/_style.scss
Expand Up @@ -423,6 +423,32 @@ body.cms {
}
}

/** --------------------------------------------
* Page icons
* -------------------------------------------- */

.page-icon, a .jstree-pageicon {
display: block;
width: 16px;
height: 16px;
background: transparent url(../images/sitetree_ss_pageclass_icons_default.png) no-repeat;
}

.page-icon {
&.class-HomePage {
background-position: 0 -48px;
}
&.class-RedirectorPage {
background-position: 0 -16px;
}
&.class-VirtualPage {
background-position: 0 -32px;
}
&.class-ErrorPage {
background-position: 0 -112px;
}
}

/** --------------------------------------------
* "Add page" dialog
* -------------------------------------------- */
Expand Down Expand Up @@ -487,38 +513,15 @@ body.cms {
padding-bottom: 0;
}

input, label, .icon, .title {
input, label, .page-icon, .title {
float: left;
line-height: 1.3em;
}

.icon {
width: 20px;
display: block;
width: 16px;
height: 16px;
.page-icon {
margin: 0 4px;
background-color: transparent;
background-image: url(../images/sitetree_ss_pageclass_icons_default.png);
background-repeat: no-repeat;
}

.class-HomePage {
background-position: 0 -48px;
}

.class-RedirectorPage {
background-position: 0 -16px;
}

.class-VirtualPage {
background-position: 0 -32px;
}

.class-ErrorPage {
background-position: 0 -112px;
}

.title {
width: 120px;
font-weight: bold;
Expand Down
8 changes: 1 addition & 7 deletions admin/scss/_tree.scss
Expand Up @@ -587,14 +587,8 @@
}

a .jstree-pageicon {
display: block;
float: left;
width: 16px;
height: 16px;
float: left;
margin-right: 4px;
background-color: transparent;
background-image: url(../images/sitetree_ss_pageclass_icons_default.png);
background-repeat: no-repeat;
}

li.class-HomePage > a .jstree-pageicon {
Expand Down

0 comments on commit 160d516

Please sign in to comment.