Clean up fallback styles
- Use unitless values where possible - Emit styles in a more logical order - Updated documentation of fallback styles
This commit is contained in:
@@ -1,55 +1,34 @@
|
|||||||
/* This is the templates/default/style_fallback.css file.
|
/* The templates/default/style_fallback.css emits CSS statements that all s9y
|
||||||
It emits CSS rules that all templates should have.
|
themes should have.
|
||||||
Classes are declared on top of the file, so if you
|
|
||||||
want to make changes in your own template, you
|
Statements declared in this file are emitted early in the dynamically
|
||||||
should override the rules on the bottom of your
|
generated stylesheet serendipity.css, so you can override them by declaring
|
||||||
style.css template.
|
them again in your theme's style.css or user.css.
|
||||||
|
|
||||||
IT IS NOT ADVISED TO CREATE YOUR OWN style_fallback.css FILE! */
|
IT IS NOT ADVISED TO CREATE YOUR OWN style_fallback.css FILE! */
|
||||||
|
|
||||||
/* Default image classes for left/right/usual layout */
|
/* Images positioned normal/left/right */
|
||||||
.serendipity_image_center {
|
.serendipity_image_center {
|
||||||
border: 0px;
|
border: 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.serendipity_image_left {
|
.serendipity_image_left {
|
||||||
float: left;
|
float: left;
|
||||||
border: 0px;
|
border: 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.serendipity_image_right {
|
.serendipity_image_right {
|
||||||
float: right;
|
float: right;
|
||||||
border: 0px;
|
border: 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Default listing without spacers */
|
/* Images with captions and positioning */
|
||||||
.plainList {
|
|
||||||
list-style: none;
|
|
||||||
margin-left: 0;
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Messages: Centered, important, notice */
|
|
||||||
.serendipity_center {
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.serendipity_msg_important {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.serendipity_msg_notice {
|
|
||||||
color: green;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Embedded images with comments inside the s9y image manager */
|
|
||||||
.serendipity_imageComment_center,
|
.serendipity_imageComment_center,
|
||||||
.serendipity_imageComment_left,
|
.serendipity_imageComment_left,
|
||||||
.serendipity_imageComment_right {
|
.serendipity_imageComment_right {
|
||||||
@@ -74,18 +53,40 @@
|
|||||||
|
|
||||||
.serendipity_imageComment_img,
|
.serendipity_imageComment_img,
|
||||||
.serendipity_imageComment_img img {
|
.serendipity_imageComment_img img {
|
||||||
margin: 0px;
|
margin: 0;
|
||||||
padding: 0px;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.serendipity_imageComment_txt {
|
.serendipity_imageComment_txt {
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
margin: 0px;
|
margin: 0;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
clear: both;
|
clear: both;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Lists without bullets or numbers */
|
||||||
|
.plainList {
|
||||||
|
list-style: none;
|
||||||
|
margin-left: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Messages: centered, important, notice */
|
||||||
|
.serendipity_center {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.serendipity_msg_important {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.serendipity_msg_notice {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
|
||||||
/* END OF style_fallback.css */
|
/* END OF style_fallback.css */
|
||||||
|
Reference in New Issue
Block a user