Skip to content

Commit

Permalink
fix bug 484 : (again) fix rateButtons display broken by svn:1491
Browse files Browse the repository at this point in the history
fix radio and checkbox display with Opera and IE (related to bug 490)

git-svn-id: http://piwigo.org/svn/trunk@1515 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
chrisaga committed Jul 29, 2006
1 parent 9c86396 commit 7e35acd
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
20 changes: 17 additions & 3 deletions template/yoga/default-colors.css
Expand Up @@ -35,10 +35,24 @@ SELECT, TEXTAREA {
color:black;
background-color: #d3d3d3; /* lightgrey */
}
/*INPUT.text.focus, INPUT.password.focus, INPUT.button.focus,
INPUT.submit.focus, INPUT.reset.focus, INPUT.file.focus,*/

INPUT:focus, SELECT:focus, TEXTAREA:focus, INPUT.focus, FORM .focus {
background-color: #f5f5f5; /* whitesmoke */
background-color: #f5f5f5; /* whitesmoke */
}

/* some theme set a border on INPUT which is not pretty for radio/checkbox */
INPUT[type="radio"], INPUT[type="checkbox"] {
border: none; /* <= Opera needs this */
}

INPUT.radio, INPUT.checkbox {
border: none; /* <= IE6 needs this */
}

/* rate buttons displayed like links */
INPUT.rateButton, INPUT.rateButtonSelected {
color:inherit;
background-color:transparent; /* Konqueror doesn't accept transparent here */
}

.errors { /* Errors display */
Expand Down
5 changes: 0 additions & 5 deletions template/yoga/fix-ie5-ie6.css
Expand Up @@ -11,11 +11,6 @@ H1, #theHeader {
height: 1em; /* for IE6 it's like min-height */
}

/* some theme set a border on INPUT which is not pretty for those */
INPUT.radio, INPUT.checkbox {
border: none;
}

/* fix category thumbnails on main page */
#content UL.thumbnailCategories {
width: 99%; /* buggy IE box model */
Expand Down
4 changes: 1 addition & 3 deletions template/yoga/picture.css
Expand Up @@ -95,8 +95,7 @@ TABLE.infoTable TD.value UL {
list-style-type: square;
}

.rateButton, .rateButtonSelected {
background-color:transparent;
.rateButton, .rateButtonSelected {
padding:0;
border:0;
}
Expand All @@ -106,7 +105,6 @@ TABLE.infoTable TD.value UL {
}

.rateButtonSelected {
color:inherit;
font-weight:bold;
font-size:120%;
}
Expand Down
7 changes: 4 additions & 3 deletions template/yoga/theme/clear/theme.css
@@ -1,7 +1,8 @@
/* $Id$ */

/* text color */
BODY, H1, H2, H3, DT {
BODY, H1, H2, H3, DT,
INPUT.rateButtonSelected /* <= why IE doesn't inherit this ? */ {
color:#696969; /* dimgray */
}

Expand Down Expand Up @@ -53,12 +54,12 @@ FIELDSET, INPUT, SELECT, TEXTAREA,
}

/* links */
A, .rateButton {
A, INPUT.rateButton {
color: #005e89;
background: transparent;
}

A:hover {
A:hover, INPUT.rateButton:hover {
color: #858460;
}

Expand Down
5 changes: 3 additions & 2 deletions template/yoga/theme/dark/theme.css
@@ -1,7 +1,8 @@
/* $Id$ */

/* text color */
BODY, H1, H3, DT {
BODY, H1, H3, DT,
INPUT.rateButtonSelected /* <= why IE doesn't inherit this ? */ {
color:#e0e0e0;
}

Expand Down Expand Up @@ -86,7 +87,7 @@ FIELDSET, INPUT, SELECT, TEXTAREA,
}

/* links */
A, .rateButton {
A, INPUT.rateButton {
color: #FFFFFF;
}

Expand Down

0 comments on commit 7e35acd

Please sign in to comment.