Skip to content

Commit

Permalink
fix coding style in stylesheet (common css)
Browse files Browse the repository at this point in the history
Signed-off-by: Chirayu Chiripal <[email protected]>
  • Loading branch information
chirayuchiripal committed Aug 10, 2014
1 parent 5b30378 commit 2ee69e2
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 57 deletions.
88 changes: 45 additions & 43 deletions themes/original/css/common.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,35 +295,35 @@
}

<?php if ($GLOBALS['cfg']['BrowseMarkerEnable']) { ?>
/* marked table rows */
td.marked,
table tr.marked td,
table tr.marked th,
table tr.marked {
background: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>;
}
<?php
/* marked table rows */
td.marked,
table tr.marked td,
table tr.marked th,
table tr.marked {
background: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>;
}
<?php
}
?>

<?php if ($GLOBALS['cfg']['BrowsePointerEnable']) { ?>
/* hovered items */
.odd:hover,
.even:hover,
.hover {
background: <?php echo $GLOBALS['cfg']['BrowsePointerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>;
}
/* hovered items */
.odd:hover,
.even:hover,
.hover {
background: <?php echo $GLOBALS['cfg']['BrowsePointerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>;
}

/* hovered table rows */
table tr.odd:hover th,
table tr.even:hover th,
table tr.hover th {
background: <?php echo $GLOBALS['cfg']['BrowsePointerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>;
}
<?php
/* hovered table rows */
table tr.odd:hover th,
table tr.even:hover th,
table tr.hover th {
background: <?php echo $GLOBALS['cfg']['BrowsePointerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>;
}
<?php
}
?>

Expand Down Expand Up @@ -358,10 +358,10 @@


<?php if (! empty($GLOBALS['cfg']['FontFamilyFixed'])) { ?>
.value {
font-family: <?php echo $GLOBALS['cfg']['FontFamilyFixed']; ?>;
}
<?php
.value {
font-family: <?php echo $GLOBALS['cfg']['FontFamilyFixed']; ?>;
}
<?php
}
?>
.attention {
Expand Down Expand Up @@ -443,15 +443,16 @@
margin: 0.3em 0 0 0;
border: 2px solid;
background-repeat: no-repeat;
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%;
padding: 0.1em 0.1em 0.1em 36px;
<?php
} else { ?>
background-position: 99% 50%;
padding: 0.1em 46px 0.1em 0.1em;
<?php
if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%;
padding: 0.1em 0.1em 0.1em 36px;
<?php
} else { ?>
background-position: 99% 50%;
padding: 0.1em 46px 0.1em 0.1em;
<?php
}
}
?>
}

Expand Down Expand Up @@ -504,15 +505,16 @@
font-weight: bold;
background-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath('s_really.png');?>);
background-repeat: no-repeat;
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 5px 50%;
padding: 0.2em 0.2em 0.2em 25px;
<?php
if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 5px 50%;
padding: 0.2em 0.2em 0.2em 25px;
<?php
} else { ?>
background-position: 97% 50%;
padding: 0.2em 25px 0.2em 0.2em;
} else { ?>
background-position: 97% 50%;
padding: 0.2em 25px 0.2em 0.2em;
<?php
}
}
?>
}
/* end messageboxes */
Expand Down
34 changes: 20 additions & 14 deletions themes/pmahomme/css/common.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,13 +738,16 @@
margin: .5em 0 0.5em;
border: 1px solid;
background-repeat: no-repeat;
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%;
padding: 10px 10px 10px 10px;
<?php } else { ?>
background-position: 99% 50%;
padding: 10px 35px 10px 10px;
<?php } ?>
<?php
if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%;
padding: 10px 10px 10px 10px;
<?php
} else { ?>
background-position: 99% 50%;
padding: 10px 35px 10px 10px;
<?php
} ?>

-moz-border-radius: 5px;
-webkit-border-radius: 5px;
Expand Down Expand Up @@ -1522,13 +1525,16 @@
margin: 1.5em 0;
border: 1px solid #000;
background-repeat: no-repeat;
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%;
padding: 10px 10px 10px 25px;
<?php } else { ?>
background-position: 99% 50%;
padding: 25px 10px 10px 10px
<?php } ?>
<?php
if ($GLOBALS['text_dir'] === 'ltr') { ?>
background-position: 10px 50%;
padding: 10px 10px 10px 25px;
<?php
} else { ?>
background-position: 99% 50%;
padding: 25px 10px 10px 10px
<?php
} ?>
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
Expand Down

0 comments on commit 2ee69e2

Please sign in to comment.