Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
RonenNess committed Jan 19, 2016
1 parent 8b48801 commit f62600e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# RPGUI
CSS & JavaScript lib to easily create old-school RPG style GUI for web games!
Lightweight framework for old-school RPG GUI in web!

[Live examples here](http://ronenness.github.io/RPGUI/)

## Table of Contents

Expand Down
9 changes: 7 additions & 2 deletions dist/rpgui.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ inside your html file.

/* center things */
.rpgui-center {
text-align: center; }
text-align: center;
align-content: center; }

/* rotate object 90 degrees */
.rpgui-rotate-90 {
Expand Down Expand Up @@ -74,18 +75,20 @@ inside your html file.
padding-right: 35px; }

/* button hover */
.rpgui-button.hover,
.rpgui-button:hover {
background-image: url("img/button-hover.png"); }

/* button clicked */
.rpgui-button.down,
.rpgui-button:active {
background-image: url("img/button-down.png"); }

/* golden button stuff */
.rpgui-button.golden p {
display: inline-block; }

/* button style */
/* golden button style */
.rpgui-button.golden {
/* hide button default stuff */
background-color: Transparent;
Expand All @@ -111,10 +114,12 @@ inside your html file.
overflow: visible; }

/* button hover */
.rpgui-button.golden.hover,
.rpgui-button.golden:hover {
background-image: url("img/button-golden-hover.png"); }

/* button clicked */
.rpgui-button.golden.down,
.rpgui-button.golden:active {
background-image: url("img/button-golden-down.png"); }

Expand Down
2 changes: 1 addition & 1 deletion dist/rpgui.min.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/styles/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@
}

/* button hover */
.rpgui-button.hover,
.rpgui-button:hover {

background-image: url("img/button-hover.png");

}

/* button clicked */
.rpgui-button.down,
.rpgui-button:active {

background-image: url("img/button-down.png");
Expand All @@ -52,7 +54,7 @@
display: inline-block
}

/* button style */
/* golden button style */
.rpgui-button.golden {

/* hide button default stuff */
Expand Down Expand Up @@ -83,12 +85,14 @@
}

/* button hover */
.rpgui-button.golden.hover,
.rpgui-button.golden:hover {

background-image: url("img/button-golden-hover.png");
}

/* button clicked */
.rpgui-button.golden.down,
.rpgui-button.golden:active {

background-image: url("img/button-golden-down.png");
Expand Down
2 changes: 2 additions & 0 deletions src/styles/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/* center things */
.rpgui-center {
text-align: center;
align-content: center;
}

/* rotate object 90 degrees */
Expand All @@ -42,3 +43,4 @@
-webkit-transform-origin: 0% 50%; /* Chrome, Safari, Opera */
transform-origin: 0% 50%;
}

0 comments on commit f62600e

Please sign in to comment.