Skip to content

Commit

Permalink
feat(styles): add position offset for pre and table
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Dec 20, 2015
1 parent 026d3b9 commit 1217e01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions _app/assets/themes/curtana/_less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ body:hover .latest {
}

pre {
padding: 1em;
margin: 0 0 1.8rem;
padding: @space-xs;
.margin-offset(-@space-xs, -@space-xs);
margin-bottom: 1.8rem;
overflow-x: auto;
font-size: 80%;
line-height: (@line-height * 1.2);
Expand Down Expand Up @@ -400,11 +401,12 @@ body:hover .latest {
border-spacing: 0;
font-size: 90%;
width: 100%;
margin: 0 0 1.8rem;
.margin-offset(-@space-xs, -@space-xs);
margin-bottom: 1.8rem;

th,
td {
padding: .6em;
padding: .6em @space-xs;
}

th {
Expand Down
2 changes: 1 addition & 1 deletion _app/assets/themes/curtana/_less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@space-lg: 22vw;
@space-md: 8vw;
@space-sm: 4vw;
@space-xs: .8em;
@space-xs: 1vw;
@space-default: @space-md;

@border-lg: 4px;
Expand Down

0 comments on commit 1217e01

Please sign in to comment.