Skip to content

Commit bef0db4

Browse files
committed
Add 'algorithm' class to default.css for better styling.
1 parent 376cf1e commit bef0db4

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

default.css

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,32 @@
8989
margin-bottom: 0;
9090
}
9191

92+
/* Style for algorithms */
93+
ol.algorithm ol {
94+
border-left: 1px solid #90b8de;
95+
margin-left: 1em;
96+
}
97+
ol.algorithm ol.algorithm {
98+
border-left: none;
99+
margin-left: 0;
100+
}
101+
92102
/* Style for switch/case <dl>s */
103+
dl.switch > dd > ol.only {
104+
margin-left: 0;
105+
}
106+
dl.switch > dd > ol.algorithm {
107+
margin-left: -2em;
108+
}
93109
dl.switch {
94110
padding-left: 2em;
95111
}
96112
dl.switch > dt {
97-
text-indent: -1.5em;
113+
atext-indent: -1.5em;
114+
margin-top: 1em;
115+
}
116+
dl.switch > dt + dt {
117+
margin-top: 0;
98118
}
99119
dl.switch > dt:before {
100120
content: '\21AA';
@@ -123,14 +143,16 @@
123143
font-weight: bold;
124144
}
125145

146+
/** Terminology Markup ********************************************************/
147+
148+
126149
/******************************************************************************/
127150
/* Inline Markup */
128151
/******************************************************************************/
129152

130153
/** Terminology Markup ********************************************************/
131154
dfn { /* Defining instance */
132155
font-weight: bolder;
133-
font-style: normal;
134156
}
135157
a > i { /* Instance of term */
136158
font-style: normal;

0 commit comments

Comments
 (0)