Forums / All Other Contributions/Addons / CSS Buttons for Admin [Support Thread]

CSS Buttons for Admin [Support Thread]

Results 1 to 20 of 20
28 Dec 2013, 20:17
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

CSS Buttons for Admin [Support Thread]

I'm about to upload this contribution to the Plugins area ... it's a small change that can totally change the look of your admin console, changing the display from something like
Attachment 13611
to something like this
Attachment 13610
Once I've got the plugin's download URL, I'll update here.
29 Dec 2013, 01:35
#3
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: CSS Buttons for Admin [Support Thread]

lat9:

Once reviewed, the plugin will be available here: http://www.zen-cart.com/downloads.php?do=file&id=1804


I LOVE you!!! this will go GREAT with my admin templates.. My templates are simple templates which use some CSS3 and no images, but they make a nice change to the drab stock green admin (no offense..:laugh: ).. Just like the storefront CSS buttons eliminates the need for cumbersome storefront image button sets, I would LOVE LOVE LOVE to replace ALL the admin image buttons with CSS buttons.. It eliminates the need for creating buttons for contributions which have an admin interface..
29 Dec 2013, 13:44
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

DivaVocals:

It eliminates the need for creating buttons for contributions which have an admin interface..

That was the main reason I created the plugin; I was getting eye-strain from all the differently-formatted buttons ... although I do like the look of the button-pack provided by Super Orders. Have you ever considered just packaging up those buttons as an admin-level plugin?
29 Dec 2013, 15:29
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: CSS Buttons for Admin [Support Thread]

lat9:

That was the main reason I created the plugin; I was getting eye-strain from all the differently-formatted buttons ...

That's why I eventually replaced the three Super Order buttons with CSS buttons. I thought the original SO buttons looked too "ugly". CSS buttons were cleaner..

lat9:

although I do like the look of the button-pack provided by Super Orders. Have you ever considered just packaging up those buttons as an admin-level plugin?
I never thought about that.. I have to admit I "borrowed" those buttons and icons from one of the few available admin templates.. (Can't remember which one..) I loved the way those buttons looked and how they spruced up the look of the admin which is why I included them in the SO package.. Maybe I will package them up and submit them..
02 Jan 2014, 19:56
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

The plugin is now available for download ...
02 Jan 2014, 20:59
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: CSS Buttons for Admin [Support Thread]

lat9:

The plugin is now available for download ...


Downloaded earlier this morning and now I am incorporating it into my admin template so I can submit it.. Well done.. installed SMOOTH as glass!!!
03 Jan 2014, 19:17
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: CSS Buttons for Admin [Support Thread]

Wanted to share a small change I made so that the buttons on the login page match the rest of the admin CSS buttons..

In "YOUR_ADMIN/includes/stylesheet.css" find the following:
body#login legend{
background:#ffffff;
border:1px solid #003D00;
color:#333333;
font-size:90%;
padding:0.2em 0.5em;
text-align:right;
}


After that add this:
/* <<<<<<<<<<<<<<<<< Begin CSS Login Buttons >>>>>>>>>>>>>>>>>>>> */
.button, input.button, input[type=button] {
    background-color:white; 
    border:1px solid #003366; 
    color:#404040; 
    border-radius:6px; 
    display:inline-block; 
    font-family:Verdana; 
    font-size:11px; 
    font-weight:bold; 
    margin: 0; 
    padding:3px 8px; 
    text-decoration:none; 
}
.button:hover, input.button:hover, input[type=button]:hover {
    background-color:#ccc; 
    border: 1px solid #003d00; 
    cursor: pointer;
}
/* <<<<<<<<<<<<<<<<< End CSS Login Buttons >>>>>>>>>>>>>>>>>>>> */
03 Jan 2014, 19:53
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

Instead, how about
  1. Moving the @import url("stylesheet_admin_css_buttons.css"); statement to the bottom of the stylesheet.css
  2. Modifying stylesheet_admin_css_buttons.css to include the additional selectors:

.cssButton, .cssButton:hover, input.cssButton, .button, input.button, input[type=button] { background-color:white; border:1px solid #003366; color:#404040; border-radius:6px; display:inline-block; font-family:Verdana; font-size:11px; font-weight:bold; margin: 0; padding:3px 8px; text-decoration:none; }
span.cssButton:hover { background-color: #dcdcdc; }
input.cssButton:hover, .button:hover, input.button:hover, input[type=button]:hover { background-color:#ccc; border: 1px solid #003d00; cursor: pointer; }
03 Jan 2014, 20:27
#10
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: CSS Buttons for Admin [Support Thread]

lat9:

Instead, how about
  1. Moving the @import url("stylesheet_admin_css_buttons.css"); statement to the bottom of the stylesheet.css
  2. Modifying stylesheet_admin_css_buttons.css to include the additional selectors:

.cssButton, .cssButton:hover, input.cssButton, .button, input.button, input[type=button] { background-color:white; border:1px solid #003366; color:#404040; border-radius:6px; display:inline-block; font-family:Verdana; font-size:11px; font-weight:bold; margin: 0; padding:3px 8px; text-decoration:none; }
span.cssButton:hover { background-color: #dcdcdc; }
input.cssButton:hover, .button:hover, input.button:hover, input[type=button]:hover { background-color:#ccc; border: 1px solid #003d00; cursor: pointer; }


:laugh: Why not.. **lol**
03 Jan 2014, 20:37
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: CSS Buttons for Admin [Support Thread]

lat9:

Instead, how about
  1. Moving the @import url("stylesheet_admin_css_buttons.css"); statement to the bottom of the stylesheet.css
  2. Modifying stylesheet_admin_css_buttons.css to include the additional selectors:

.cssButton, .cssButton:hover, input.cssButton, .button, input.button, input[type=button] { background-color:white; border:1px solid #003366; color:#404040; border-radius:6px; display:inline-block; font-family:Verdana; font-size:11px; font-weight:bold; margin: 0; padding:3px 8px; text-decoration:none; }
span.cssButton:hover { background-color: #dcdcdc; }
input.cssButton:hover, .button:hover, input.button:hover, input[type=button]:hover { background-color:#ccc; border: 1px solid #003d00; cursor: pointer; }


Only needed to execute step 2. Moving the import statement it appears stops all the CSS buttons from working..

I also adjusted the background and text color for the hover:

span.cssButton:hover { 
    background-color: #dcdcdc; /* Grey Hover Color */ 
    }
input.cssButton:hover, .button:hover, input.button:hover, input[type=button]:hover { 
    /*background-color:#599659;*/ /* Green Hover Color */ 
    background-color:#dcdcdc; /* Grey Hover Color */ 
    border: 1px solid #003d00; 
    /*color: white;*/
    cursor: pointer;
    }
20 Jan 2014, 14:43
#12
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

v1.0.1 is now available in the plugins ...
27 Jan 2014, 09:42
#13
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Posts:
1,326
Plugin Contributions:
0

Re: CSS Buttons for Admin [Support Thread]

A small point but I've noticed that in Option Values Manager the Update & Delete buttons are stacked rather than side-by-side.

When I have 50 attributes displayed the first part of the page load (the attribute list) shows them as side-by-side but once the copy options at the bottom kick in the Update & Delete revert to being stacked.
27 Jan 2014, 13:33
#14
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

simon1066:

A small point but I've noticed that in Option Values Manager the Update & Delete buttons are stacked rather than side-by-side.

When I have 50 attributes displayed the first part of the page load (the attribute list) shows them as side-by-side but once the copy options at the bottom kick in the Update & Delete revert to being stacked.

I'll give it a look and report back ...
27 Jan 2014, 14:14
#15
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

Add the following to the bottom of the stylesheet_admin_css_buttons.css file. It makes the text size for the edit/delete buttons smaller and widens up the last column for tables that use the attributes-even (and -odd) class.

.attributes-odd td:last-child, .attributes-even td:last-child { width: 12%; }
.attributes-even .button_edit, .attributes-odd .button_edit, .attributes-even .button_delete, .attributes-odd .button_delete { font-size: smaller; }
27 Jan 2014, 14:50
#16
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: CSS Buttons for Admin [Support Thread]

lat9:

Add the following to the bottom of the stylesheet_admin_css_buttons.css file. It makes the text size for the edit/delete buttons smaller and widens up the last column for tables that use the attributes-even (and -odd) class.

.attributes-odd td:last-child, .attributes-even td:last-child { width: 12%; }
.attributes-even .button_edit, .attributes-odd .button_edit, .attributes-even .button_delete, .attributes-odd .button_delete { font-size: smaller; }


The second line may not be necessary as it makes the buttons too small (IMHO..:smile:)..
27 Jan 2014, 14:54
#17
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

DivaVocals:

The second line may not be necessary as it makes the buttons too small (IMHO..:smile:)..

I'm with you, how about simply
.attributes-odd td:last-child, .attributes-even td:last-child { width: 15%; }
27 Jan 2014, 14:54
#18
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Posts:
1,326
Plugin Contributions:
0

Re: CSS Buttons for Admin [Support Thread]

lat9:

Add the following to the bottom of the stylesheet_admin_css_buttons.css file. It makes the text size for the edit/delete buttons smaller and widens up the last column for tables that use the attributes-even (and -odd) class.

.attributes-odd td:last-child, .attributes-even td:last-child { width: 12%; }
.attributes-even .button_edit, .attributes-odd .button_edit, .attributes-even .button_delete, .attributes-odd .button_delete { font-size: smaller; }


Thank you, that's great. I've massaged the values slightly to fine tune.
28 Dec 2014, 21:01
#19
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

v1.0.4 is now available from the Plugins area. This version provides downwardly-compatible changes required for Zen Cart v1.5.4.
24 Dec 2015, 20:13
#20
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: CSS Buttons for Admin [Support Thread]

I've just submitted v1.0.5 to the plugins for review, incorporating Zen Cart v1.5.5 changes.