Skip to content
Browse files

fixed css if snippet includes a definition list

  • Loading branch information...
1 parent 7defb5c commit 05c1b35359204624443abb63c119b188f1a55735 @selfthinker committed
Showing with 22 additions and 43 deletions.
  1. +9 −26 all.css
  2. +5 −9 print.css
  3. +8 −8 style.css
View
35 all.css
@@ -6,21 +6,21 @@ dl.wpsnip {
/* __________ snippet header __________ */
-dl.wpsnip dt {
+dl.wpsnip > dt {
font-weight: bold;
}
-dl.wpsnip dt cite {
+dl.wpsnip > dt cite {
font-style: normal;
}
/* "snippet from wp" */
-dl.wpsnip dt em {
+dl.wpsnip > dt em {
font-weight: normal;
float: right;
}
-[dir=rtl] dl.wpsnip dt em {
+[dir=rtl] dl.wpsnip > dt em {
float: left;
}
-dl.wpsnip dt em span {
+dl.wpsnip > dt em span {
position: absolute;
left: -50000px;
top: -50000px;
@@ -28,35 +28,18 @@ dl.wpsnip dt em span {
/* __________ wp content __________ */
-dl.wpsnip dd blockquote {
+dl.wpsnip > dd blockquote {
border: none;
padding: 0;
margin: 0;
}
-/* tables */
-dl.wpsnip dd .infobox,
-dl.wpsnip dd .metadata {
- float: right;
- margin-left: 10px;
-}
-[dir=rtl] dl.wpsnip dd .infobox,
-[dir=rtl] dl.wpsnip dd .metadata {
- float: left;
- margin-left: 0;
- margin-right: 10px;
-}
-/* top messages */
-dl.wpsnip dd .dablink {
- font-style: italic;
- font-size: 90%;
- margin-bottom: 1em;
-}
+
/* license below the content */
-dl.wpsnip dd .wplicense {
+dl.wpsnip > dd .wplicense {
clear: both;
text-align: right;
font-size: 90%;
}
-[dir=rtl] dl.wpsnip dd .wplicense {
+[dir=rtl] dl.wpsnip > dd .wplicense {
text-align: left;
}
View
14 print.css
@@ -1,11 +1,11 @@
/* __________ snippet header __________ */
-dl.wpsnip dt {
+dl.wpsnip > dt {
padding-bottom: .2em;
border-bottom: 1px solid #000;
}
-dl.wpsnip dt cite a.interwiki {
+dl.wpsnip > dt cite a.interwiki {
padding-left: 0;
padding-right: 0;
background-image: none;
@@ -13,15 +13,11 @@ dl.wpsnip dt cite a.interwiki {
/* __________ wp content __________ */
-dl.wpsnip dd {
+dl.wpsnip > dd {
margin: 0;
}
-/* tables */
-dl.wpsnip dd .infobox,
-dl.wpsnip dd .metadata {
- border: 1px solid #000;
-}
+
/* license below the content */
-dl.wpsnip dd .wplicense {
+dl.wpsnip > dd .wplicense {
border-top: 1px solid #000;
}
View
16 style.css
@@ -1,34 +1,34 @@
/* __________ snippet header __________ */
-dl.wpsnip dt {
+dl.wpsnip > dt {
border: solid __border__;
border-width: 1px 1px 3px;
font-size: 120%;
padding: .2em .3em;
}
/* "snippet from wp" */
-dl.wpsnip dt em {
+dl.wpsnip > dt em {
font-size: 85%;
font-style: normal;
line-height: 1.8;
}
-dl.wpsnip dt em a {
+dl.wpsnip > dt em a {
font-weight: bold;
}
/* __________ wp content __________ */
-dl.wpsnip dd {
+dl.wpsnip > dd {
background-color: __background_neu__;
padding: 1em .5em 0;
margin: 0;
}
-/* tables */
-dl.wpsnip dd .infobox,
-dl.wpsnip dd .metadata {
- border: 1px solid __border__;
+
+dl.wpsnip dl {
+ margin-bottom: 1.4em;
}
+
/* license below the content */
dl.wpsnip dd .wplicense {
border-top: 1px solid __border__;

0 comments on commit 05c1b35

Please sign in to comment.
Something went wrong with that request. Please try again.