Skip to content

Commit 7e07e1a

Browse files
authored
Merge pull request #1 from msdrigg/main
Merging changes from upstream in iA-Writer-Templates
2 parents 517b167 + 433c5a5 commit 7e07e1a

2 files changed

Lines changed: 30 additions & 24 deletions

File tree

CodeNice.iatemplate/Contents/Resources/github.css

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,13 @@ html {
7474
}
7575
}
7676

77-
/* GitHub embeds input into the first paragraph, iA Writer doesn’t */
77+
/* Fix for paragraph list items. GitHub embeds input into the first paragraph, iA Writer doesn’t. */
78+
.markdown-body .task-list-item {
79+
clear: left;
80+
}
7881
.markdown-body .task-list-item-checkbox {
79-
float: left; /* Removes from flow in case of paragraph list items */
80-
width: 1.6rem; /* Same as p line-height (changing width/height affects svg size) */
81-
height: 1.6rem; /* Same as width */
82-
margin: 0 0 0 -1.6rem; /* 0s to overwrite user agent styles */
83-
border: none; /* Otherwise iPhone draws a border */
84-
font-size: 1rem; /* Required to overwrite user agent styles, set to same as p */
85-
background-repeat: no-repeat;
86-
background-position: 40% 40%; /* x=roughly align with bullets and between ordinal and text, y=4px down to roughly align to baseline. */
87-
background-size: 50% 50%; /* Desired size 12px / 21px line-height for Preview */
88-
-webkit-print-color-adjust: exact; /* Prevents from hiding when printed */
89-
opacity: 1; /* Otherwise they are 0.4 on iPhone, where it applies disabled effect even with above */
82+
float: left; /* takes out of flow */
83+
height: 1.5rem; /* same as line height */
9084
}
9185

9286
/* GitHub doesn't process figures and images aren't given padding */
@@ -100,3 +94,12 @@ html {
10094
.markdown-body figcaption {
10195
margin-bottom: 16px; /* same as between paragraphs */
10296
}
97+
98+
.markdown-body img {
99+
height: auto;
100+
}
101+
102+
/* give elements on new pages the same top margin as first element of document */
103+
.markdown-body .page-break + * {
104+
margin-top: 0;
105+
}

CodeNote.iatemplate/Contents/Resources/github.css

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,13 @@ html {
7474
}
7575
}
7676

77-
/* GitHub embeds input into the first paragraph, iA Writer doesn’t */
77+
/* Fix for paragraph list items. GitHub embeds input into the first paragraph, iA Writer doesn’t. */
78+
.markdown-body .task-list-item {
79+
clear: left;
80+
}
7881
.markdown-body .task-list-item-checkbox {
79-
float: left; /* Removes from flow in case of paragraph list items */
80-
width: 1.6rem; /* Same as p line-height (changing width/height affects svg size) */
81-
height: 1.6rem; /* Same as width */
82-
margin: 0 0 0 -1.6rem; /* 0s to overwrite user agent styles */
83-
border: none; /* Otherwise iPhone draws a border */
84-
font-size: 1rem; /* Required to overwrite user agent styles, set to same as p */
85-
background-repeat: no-repeat;
86-
background-position: 40% 40%; /* x=roughly align with bullets and between ordinal and text, y=4px down to roughly align to baseline. */
87-
background-size: 50% 50%; /* Desired size 12px / 21px line-height for Preview */
88-
-webkit-print-color-adjust: exact; /* Prevents from hiding when printed */
89-
opacity: 1; /* Otherwise they are 0.4 on iPhone, where it applies disabled effect even with above */
82+
float: left; /* takes out of flow */
83+
height: 1.5rem; /* same as line height */
9084
}
9185

9286
/* GitHub doesn't process figures and images aren't given padding */
@@ -100,3 +94,12 @@ html {
10094
.markdown-body figcaption {
10195
margin-bottom: 16px; /* same as between paragraphs */
10296
}
97+
98+
.markdown-body img {
99+
height: auto;
100+
}
101+
102+
/* give elements on new pages the same top margin as first element of document */
103+
.markdown-body .page-break + * {
104+
margin-top: 0;
105+
}

0 commit comments

Comments
 (0)