Skip to content

Commit e796201

Browse files
committed
Website improvements
1 parent 90d3b0f commit e796201

File tree

4 files changed

+70
-131
lines changed

4 files changed

+70
-131
lines changed

website/page.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>MyCLabs\ACL</title>
88

99
<link rel="stylesheet" href="{{ baseUrl }}/css/bootstrap.min.css">
10-
<link rel="stylesheet" href="{{ baseUrl }}/css/highlight.github.css">
10+
<link rel="stylesheet" href="{{ baseUrl }}/css/highlight.tomorrow-night.css">
1111
<link rel="stylesheet" href="{{ baseUrl }}/css/main.css">
1212

1313
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
@@ -20,6 +20,9 @@
2020
Powerful and efficient access control library for your PHP application.
2121
</small>
2222
</a>
23+
<a href="https://github.com/myclabs/ACL">
24+
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
25+
</a>
2326
</header>
2427

2528
<main>

website/public/css/highlight.github.css

Lines changed: 0 additions & 129 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/* Tomorrow Night Theme */
2+
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
3+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
4+
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
5+
.tomorrow-comment, pre .comment, pre .title {
6+
color: #969896;
7+
}
8+
9+
.tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo {
10+
color: #cc6666;
11+
}
12+
13+
.tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant {
14+
color: #de935f;
15+
}
16+
17+
.tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute {
18+
color: #f0c674;
19+
}
20+
21+
.tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata {
22+
color: #b5bd68;
23+
}
24+
25+
.tomorrow-aqua, pre .css .hexcolor {
26+
color: #8abeb7;
27+
}
28+
29+
.tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title {
30+
color: #81a2be;
31+
}
32+
33+
.tomorrow-purple, pre .keyword, pre .javascript .function {
34+
color: #b294bb;
35+
}
36+
37+
pre code {
38+
display: block;
39+
background: #1d1f21;
40+
color: #c5c8c6;
41+
font-family: Menlo, Monaco, Consolas, monospace;
42+
line-height: 1.5;
43+
border: 1px solid #ccc;
44+
padding: 10px;
45+
}

website/public/css/main.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
body {
2-
font-size: 18px;
2+
font-size: 19px;
33
}
44

55
main {
@@ -53,7 +53,27 @@ header.navbar {
5353
position:fixed;
5454
}
5555
}
56+
@media (max-width: 960px) {
57+
body {
58+
font-size: 17px;
59+
}
60+
pre {
61+
font-size: 12px;
62+
}
63+
}
5664

5765
.page-header {
5866
margin-top: 0;
5967
}
68+
69+
pre {
70+
padding: 0;
71+
border-color: #3D5166;
72+
background-color: #1D2B3A;
73+
border-radius: 4px;
74+
margin: 15px;
75+
}
76+
pre code {
77+
border: none;
78+
background-color: #1D2B3A;
79+
}

0 commit comments

Comments
 (0)