Skip to content

Commit a167c28

Browse files
committed
Cleaned up documentation styles a bit, using consistently-styled table for top-level index
1 parent b7c46de commit a167c28

File tree

6 files changed

+35
-362
lines changed

6 files changed

+35
-362
lines changed

site/docs/_sass/_api.scss

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,6 @@ h5 {
8888
}
8989
}
9090

91-
// Remove most spacing between table cells
92-
table {
93-
border-collapse: collapse;
94-
border-spacing: 0;
95-
}
96-
97-
th,
98-
td {
99-
padding: 0;
100-
}
101-
10291
caption {margin: 0;}
10392

10493
$vertical-rhythm-unit: 15px !global;
@@ -109,6 +98,11 @@ table {
10998
margin-bottom: $vertical-rhythm-unit*2;
11099
line-height: inherit;
111100
font-size: inherit;
101+
border: 1px solid #dcdcdc;
102+
103+
// Remove most spacing between table cells
104+
border-collapse: collapse;
105+
border-spacing: 0;
112106

113107
&.zebra {
114108
tbody tr:nth-child(odd) {
@@ -160,17 +154,12 @@ table {
160154
padding-right: 12px;
161155
}
162156
}
163-
}
164-
165-
// api-docs-table
166157

167-
.api-docs-table {
168-
border: 1px solid #dcdcdc;
169-
}
170-
171-
.api-docs-table p:last-child,
172-
.api-docs-table pre:last-child {
173-
margin-bottom: 0;
158+
// ???
159+
p:last-child,
160+
pre:last-child {
161+
margin-bottom: 0;
162+
}
174163
}
175164

176165
.api-docs-breadcrumbs {
@@ -192,7 +181,7 @@ code :target {
192181
background-color: #FFFFCC;
193182
}
194183

195-
// kotlin syntax hightlight
184+
// kotlin syntax highlight
196185

197186
.signature {
198187
background-color: $code-background;

site/docs/_sass/_base.scss

Lines changed: 10 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
1-
/*!
2-
* Copyright 2016-2017 JetBrains s.r.o.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
// Bits and pieces from Minima Jekyll Layout
2+
// The MIT License (MIT) Copyright (c) 2016 Parker Moor
163

17-
/**
18-
* Reset some basic elements
19-
*/
4+
// Reset some basic elements
205
body, h1, h2, h3, h4, h5, h6,
216
p, blockquote, pre, hr,
227
dl, dd, ol, ul, figure {
238
margin: 0;
249
padding: 0;
2510
}
2611

27-
/**
28-
* Basic styling
29-
*/
12+
// Basic styling
3013
body {
3114
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
3215
color: $text-color;
@@ -39,46 +22,15 @@ body {
3922
font-kerning: normal;
4023
}
4124

42-
43-
44-
/**
45-
* Set `margin-bottom` to maintain vertical rhythm
46-
*/
25+
// Set `margin-bottom` to maintain vertical rhythm
4726
h1, h2, h3, h4, h5, h6,
4827
p, blockquote, pre,
4928
ul, ol, dl, figure,
5029
%vertical-rhythm {
5130
margin-bottom: $spacing-unit / 2;
5231
}
5332

54-
55-
56-
/**
57-
* Images
58-
*/
59-
img {
60-
max-width: 100%;
61-
vertical-align: middle;
62-
}
63-
64-
65-
66-
/**
67-
* Figures
68-
*/
69-
figure > img {
70-
display: block;
71-
}
72-
73-
figcaption {
74-
font-size: $small-font-size;
75-
}
76-
77-
78-
79-
/**
80-
* Lists
81-
*/
33+
// Lists
8234
ul, ol {
8335
margin-left: $spacing-unit;
8436
}
@@ -90,20 +42,7 @@ li {
9042
}
9143
}
9244

93-
94-
95-
/**
96-
* Headings
97-
*/
98-
h1, h2, h3, h4, h5, h6 {
99-
font-weight: $base-font-weight;
100-
}
101-
102-
103-
104-
/**
105-
* Links
106-
*/
45+
// Links
10746
a {
10847
color: $brand-color;
10948
text-decoration: none;
@@ -118,11 +57,7 @@ a {
11857
}
11958
}
12059

121-
122-
123-
/**
124-
* Blockquotes
125-
*/
60+
// Blockquotes
12661
blockquote {
12762
color: $grey-color;
12863
border-left: 4px solid $grey-color-light;
@@ -136,9 +71,7 @@ blockquote {
13671
}
13772
}
13873

139-
/**
140-
* Wrapper
141-
*/
74+
// Wrapper
14275
.wrapper {
14376
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
14477
max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
@@ -156,27 +89,9 @@ blockquote {
15689
}
15790
}
15891

159-
160-
161-
/**
162-
* Clearfix
163-
*/
92+
// Clearfix
16493
%clearfix:after {
16594
content: "";
16695
display: table;
16796
clear: both;
16897
}
169-
170-
171-
172-
/**
173-
* Icons
174-
*/
175-
.icon > svg {
176-
display: inline-block;
177-
vertical-align: middle;
178-
179-
path {
180-
fill: $grey-color;
181-
}
182-
}

0 commit comments

Comments
 (0)