Skip to content

Commit 1fc8028

Browse files
author
jordanmccullough
committed
Refine pre and code block appearance
1 parent 06f7887 commit 1fc8028

File tree

2 files changed

+39
-14
lines changed

2 files changed

+39
-14
lines changed

_stylesheets/curriculum-beta.css

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,20 @@ body {
7575
text-shadow: 0 1px rgba(0, 0, 0, 0.1);
7676
color: #454545;
7777
border-bottom: solid 1px #e8e8ea; }
78-
.curriculum pre {
79-
margin: 0 15%;
80-
background: white; }
81-
.curriculum pre:before {
82-
content: "\f0c8";
83-
font: normal normal 22px octicons;
84-
float: right;
85-
opacity: .4; }
78+
.curriculum pre, .curriculum table {
79+
background: #f9fafa;
80+
border: solid 1px #edeff0;
81+
border-radius: 3px;
82+
box-shadow: 0px 4px 0 0px #edeff0;
83+
line-height: 2em; }
84+
.curriculum pre:before {
85+
content: "\f0c8";
86+
font: normal normal 22px octicons;
87+
float: right;
88+
color: #c0c7ce; }
89+
.curriculum table th, .curriculum table td {
90+
text-align: left;
91+
padding: 0 1em; }
8692
.curriculum p {
8793
line-height: 1.75em;
8894
margin-bottom: 2em; }
@@ -98,8 +104,10 @@ body {
98104
.curriculum .slide h1, .curriculum .slide h2, .curriculum .slide h3, .curriculum .slide h4, .curriculum .slide h5, .curriculum .slide h6, .curriculum .slide p, .curriculum .slide ul, .curriculum .slide pre, .curriculum .slide svg {
99105
margin-left: 0;
100106
margin-right: 0; }
107+
.curriculum .slide pre code {
108+
font-size: 1.5em; }
101109
.curriculum .slide .alignment {
102-
padding: 0 20%;
110+
padding: 0 10%;
103111
display: table-cell;
104112
vertical-align: middle; }
105113
.curriculum a[href^="http://"],

_stylesheets/curriculum-beta.scss

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,26 @@ body{
5151
border-bottom: solid 1px $mono-light;
5252
}
5353

54-
pre{
55-
margin: 0 15%;
56-
background: $mono-bright;
54+
pre, table{
55+
background: #f9fafa;
56+
border: solid 1px #edeff0;
57+
border-radius: 3px;
58+
box-shadow: 0px 4px 0 0px #edeff0;
59+
line-height: 2em;
60+
}
5761

62+
pre{
5863
&:before {
5964
content: "\f0c8";
6065
font: normal normal 22px octicons;
6166
float: right;
62-
opacity: .4;
67+
color: #c0c7ce;
68+
}
69+
}
70+
table{
71+
th, td{
72+
text-align: left;
73+
padding: 0 1em;
6374
}
6475
}
6576

@@ -87,8 +98,14 @@ body{
8798
margin-right: 0;
8899
}
89100

101+
pre{
102+
code{
103+
font-size: 1.5em;
104+
}
105+
}
106+
90107
.alignment{
91-
padding: 0 20%;
108+
padding: 0 10%;
92109
display: table-cell;
93110
vertical-align: middle;
94111
}

0 commit comments

Comments
 (0)