Skip to content

Commit

Permalink
Further improved media styles
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Jan 1, 2017
1 parent 096b5ec commit 954302b
Showing 1 changed file with 35 additions and 10 deletions.
45 changes: 35 additions & 10 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*******************************************************************************
Slate Theme for GitHub Pages
by Jason Costello, @jsncostello
Modified by BalusC
*******************************************************************************/

@import url(github-light.css);
Expand Down Expand Up @@ -35,10 +36,6 @@ footer, header, hgroup, menu, nav, section {
display: block;
}

ol, ul {
list-style-position: inside;
}

table {
border-collapse: collapse;
border-spacing: 0;
Expand All @@ -52,9 +49,7 @@ body {
box-sizing: border-box;
color:#373737;
background: #212121;
font-size: 17px;
font-family: 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}

Expand Down Expand Up @@ -166,8 +161,6 @@ pre, code {
background-color: #fff;

font-family: Consolas, Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
font-size: 14px;
line-height: 1.4;
}

pre {
Expand Down Expand Up @@ -313,13 +306,38 @@ Full-Width Styles
}


/*******************************************************************************
Large Device Styles
*******************************************************************************/

@media screen {
body {
font-size: 17px;
line-height: 1.7;
transition: all .3s;
}
pre, code {
font-size: 14px;
line-height: 1.4;
transition: all .3s;
}
}


/*******************************************************************************
Medium Device Styles
*******************************************************************************/

@media screen and (max-width: 1023px) {
body {
font-size:16px;
font-size: 16px;
line-height: 1.6;
transition: all .3s;
}
pre, code {
font-size: 13px;
line-height: 1.3;
transition: all .3s;
}
}

Expand All @@ -330,6 +348,13 @@ Small Device Styles

@media screen and (max-width: 480px) {
body {
font-size:15px;
font-size: 15px;
line-height: 1.5;
transition: all .3s;
}
pre, code {
font-size: 12px;
line-height: 1.2;
transition: all .3s;
}
}

0 comments on commit 954302b

Please sign in to comment.