Skip to content

Commit b27f8b4

Browse files
authored
add scss (Codeception#509)
1 parent bf2fc25 commit b27f8b4

File tree

10 files changed

+2256
-1953
lines changed

10 files changed

+2256
-1953
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ kramdown:
66
syntax_highlighting: rouge
77
highlighter: rouge
88
exclude: [vendor]
9+
sass:
10+
sass_dir: _scss
11+
style: compressed
912
plugins:
1013
- jekyll-algolia
1114
algolia:

_layouts/bootstrap.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
1717
<link href="//netdna.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
1818

19-
<link rel="stylesheet" href="/css/style.min.css">
19+
<link rel="stylesheet" href="{{ '/css/style.css' | relative_url }}">
2020

2121
<!-- Other -->
2222
<link title="Codeception Blog" type="application/rss+xml" rel="alternate" href="/rss.xml">

_scss/_algolia.scss

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/*Algolia*/
2+
3+
/* Search form */
4+
5+
.algolia__input {
6+
margin-bottom: 1rem;
7+
font-size: 20px;
8+
padding: .25rem .5rem;
9+
}
10+
11+
/* Search results container */
12+
13+
.algolia__initial-content {
14+
display: block;
15+
}
16+
17+
.algolia__initial-content--hidden, .algolia__search-content {
18+
display: none;
19+
}
20+
21+
.algolia__search-content--active {
22+
display: block;
23+
}
24+
25+
/* Search results */
26+
27+
.algolia__result {
28+
margin-bottom: 2rem;
29+
}
30+
31+
.algolia__result-link {
32+
font-size: 1.2em;
33+
font-weight: bold;
34+
display: inline-block;
35+
margin-bottom: 5px;
36+
}
37+
38+
.algolia__result-date {
39+
font-size: 0.65em;
40+
}
41+
42+
.algolia__result-text {
43+
font-size: 1em;
44+
}
45+
46+
.algolia__result-link .algolia__result-highlight {
47+
background-color: #D3E8F6;
48+
background-color: rgba(38, 139, 210, 0.2);
49+
}
50+
51+
.algolia__result-text .algolia__result-highlight {
52+
font-weight: bold;
53+
}
54+
55+
/* Theming */
56+
57+
.theme-base-08 .algolia__result-link .algolia__result-highlight {
58+
background-color: #EED9D9;
59+
background-color: rgba(172, 65, 66, 0.2);
60+
}
61+
62+
.theme-base-09 .algolia__result-link .algolia__result-highlight {
63+
background-color: #F6E6DA;
64+
background-color: rgba(210, 132, 69, 0.2);
65+
}
66+
67+
.theme-base-0a .algolia__result-link .algolia__result-highlight {
68+
background-color: #FDF2E3;
69+
background-color: rgba(244, 191, 117, 0.2);
70+
}
71+
72+
.theme-base-0b .algolia__result-link .algolia__result-highlight {
73+
background-color: #E9EEDE;
74+
background-color: rgba(144, 169, 89, 0.2);
75+
}
76+
77+
.theme-base-0c .algolia__result-link .algolia__result-highlight {
78+
background-color: #E3F0EE;
79+
background-color: rgba(117, 181, 170, 0.2);
80+
}
81+
82+
.theme-base-0d .algolia__result-link .algolia__result-highlight {
83+
background-color: #E1ECF0;
84+
background-color: rgba(106, 159, 181, 0.2);
85+
}
86+
87+
.theme-base-0e .algolia__result-link .algolia__result-highlight {
88+
background-color: #EEE3EC;
89+
background-color: rgba(170, 117, 159, 0.2);
90+
}
91+
92+
.theme-base-0f .algolia__result-link .algolia__result-highlight {
93+
background-color: #E9DDD6;
94+
background-color: rgba(143, 85, 54, 0.2);
95+
}

_scss/_all.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@import "main";
2+
@import "algolia";
3+
@import "contributors";
4+
@import "highlight";

_scss/_contributors.scss

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*Contributors*/
2+
3+
.contributors {
4+
width: 600px;
5+
overflow: auto;
6+
margin-bottom: 3em;
7+
8+
li {
9+
width: 178px;
10+
margin-right: 12px;
11+
margin-bottom: 6px;
12+
overflow: auto;
13+
float: left;
14+
padding: 1px 0px;
15+
16+
a {
17+
display: block;
18+
text-decoration: none;
19+
overflow: auto;
20+
}
21+
22+
span {
23+
display: block;
24+
float: left;
25+
margin-left: 12px;
26+
font-size: 15px;
27+
padding-top: 5px;
28+
color: #aaa;
29+
}
30+
31+
a span {
32+
color: #888;
33+
}
34+
35+
img {
36+
float: left;
37+
border: 1px solid #fff;
38+
-webkit-border-radius: 3px;
39+
-moz-border-radius: 3px;
40+
border-radius: 3px;
41+
}
42+
43+
a:hover {
44+
span {
45+
color: #000;
46+
}
47+
48+
img {
49+
border: 1px solid #bbb;
50+
}
51+
}
52+
}
53+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy