Skip to content
Snippets Groups Projects
Commit d392b259 authored by Frank Steinberg's avatar Frank Steinberg
Browse files

Minor fixes.

parent 5d71cba5
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,8 @@ styleguide { ...@@ -3,7 +3,8 @@ styleguide {
font-family: Helvetica, Arial, Geneva, sans-serif; font-family: Helvetica, Arial, Geneva, sans-serif;
} }
styleguide chapter table { styleguide chapter p, styleguide chapter h1, styleguide chapter h2, styleguide chapter h3, styleguide chapter h4, styleguide chapter ol, styleguide chapter ul, styleguide chapter table {
margin-left: 1em;
} }
styleguide p.list-item { styleguide p.list-item {
...@@ -198,71 +199,4 @@ styleguide specs div * { ...@@ -198,71 +199,4 @@ styleguide specs div * {
styleguide category:before, styleguide subcategory:before {
white-space: pre;
content: " " attr(id);
}
styleguide name {
display: inline-block;
margin-bottom:1em;
}
styleguide chapter, styleguide category, styleguide subcategory {
margin-top:1em;
margin-bottom:1em;
margin-left:0em;
display: block;
}
styleguide category.collapsed, styleguide subcategory.collapsed {
height: 1em;
overflow: hidden;
}
styleguide chapter.collapsed {
height: 2em;
overflow: hidden;
padding: 0px;
}
styleguide category.collapsed subcategory, styleguide subcategory.collapsed subcategory {
display: none;
}
styleguide name {
margin-left:1em;
}
styleguide h2 {
margin: 0px 1em;
font-size: 110%;
}
styleguide nav {
display:inline-block;
position: absolute;
left:5px;
overflow: hidden;
margin-left:0em;
width:20px;
height:18px;
transform: rotate(0deg);
transition: -webkit-transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
background-position: center;
background-size: 0.75rem auto;
background-repeat: no-repeat;
background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 320 512%27%3E%3Cpath fill=%27%23003f57%27 d=%27M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z%27/%3E%3C/svg%3E");
}
styleguide chapter.collapsed nav, styleguide category.collapsed nav, styleguide subcategory.collapsed nav {
transform: rotate(-90deg);
}
styleguide *[source="original"] {
background-color: #ffd0d0;
}
styleguide *[source="lang-file"] {
background-color: white;
}
styleguide nav:not([todo="0"]) {
background-color: #ffb0b0;
}
...@@ -46,8 +46,81 @@ div#original { ...@@ -46,8 +46,81 @@ div#original {
display:none; display:none;
} }
.fade {
background-color: rgba(0.5,0.5,0.5,0.6);
pointer-events: none;
styleguide category:before, styleguide subcategory:before {
white-space: pre;
content: " " attr(id);
}
styleguide name {
display: inline-block;
margin-bottom:1em;
}
styleguide chapter, styleguide category, styleguide subcategory {
margin-top:1em;
margin-bottom:1em;
margin-left:0em;
display: block;
}
styleguide category.collapsed, styleguide subcategory.collapsed {
height: 1.3em;
overflow: hidden;
}
styleguide chapter.collapsed {
height: 1.3em;
overflow: hidden;
padding: 0px;
}
styleguide category.collapsed subcategory, styleguide subcategory.collapsed subcategory {
display: none;
} }
styleguide name {
margin-left:1em;
}
styleguide h2 {
margin-top: 0px;
margin-bottom: 0px;
}
styleguide h2 { font-size: large; }
styleguide h3 { font-size: medium; }
styleguide h4 { font-size: small; }
styleguide nav {
display:inline-block;
position: absolute;
left:5px;
overflow: hidden;
margin-left:0em;
width:20px;
height:18px;
transform: rotate(0deg);
transition: -webkit-transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
background-position: center;
background-size: 0.75rem auto;
background-repeat: no-repeat;
background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 320 512%27%3E%3Cpath fill=%27%23003f57%27 d=%27M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z%27/%3E%3C/svg%3E");
}
styleguide chapter.collapsed nav, styleguide category.collapsed nav, styleguide subcategory.collapsed nav {
transform: rotate(-90deg);
}
styleguide *[source="original"] {
background-color: #ffd0d0;
}
styleguide *[source="lang-file"] {
background-color: white;
}
styleguide nav:not([todo="0"]) {
background-color: #ffb0b0;
}
...@@ -752,7 +752,7 @@ ...@@ -752,7 +752,7 @@
</xsl:element> </xsl:element>
<xsl:apply-templates select="following-sibling::*[1]" mode="in-chapter"/> <xsl:apply-templates select="following-sibling::*[1]" mode="in-chapter"/>
</xsl:when> </xsl:when>
<xsl:when test="w:pPr/w:pStyle/@w:val='ProseBody'"> <xsl:when test="w:pPr/w:pStyle/@w:val='ProseBody' and w:r">
<xsl:element name="p"> <xsl:element name="p">
<xsl:attribute name="class">body</xsl:attribute> <xsl:attribute name="class">body</xsl:attribute>
<xsl:apply-templates select="w:r"/> <xsl:apply-templates select="w:r"/>
......
...@@ -27,12 +27,12 @@ ...@@ -27,12 +27,12 @@
<xsl:attribute name="type">text/css</xsl:attribute> <xsl:attribute name="type">text/css</xsl:attribute>
<xsl:attribute name="href">bjcp-styleguide.css</xsl:attribute> <xsl:attribute name="href">bjcp-styleguide.css</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="link">
<xsl:attribute name="rel">stylesheet</xsl:attribute>
<xsl:attribute name="type">text/css</xsl:attribute>
<xsl:attribute name="href">pell.css</xsl:attribute>
</xsl:element>
<xsl:if test="not($edit = 'no')"> <xsl:if test="not($edit = 'no')">
<xsl:element name="link">
<xsl:attribute name="rel">stylesheet</xsl:attribute>
<xsl:attribute name="type">text/css</xsl:attribute>
<xsl:attribute name="href">pell.css</xsl:attribute>
</xsl:element>
<xsl:element name="link"> <xsl:element name="link">
<xsl:attribute name="rel">stylesheet</xsl:attribute> <xsl:attribute name="rel">stylesheet</xsl:attribute>
<xsl:attribute name="type">text/css</xsl:attribute> <xsl:attribute name="type">text/css</xsl:attribute>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment