Skip to content

Commit d034ba8

Browse files
authored
Merge pull request #56 from ZediWards/master
Manifesto button added
2 parents e0ef0de + 5a97978 commit d034ba8

File tree

2 files changed

+60
-2
lines changed

2 files changed

+60
-2
lines changed

content/_index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"title" : "Code Is Science : Home"
33
}
44

5-
# Code is science!
5+
<header class="flex_header">
6+
<h1 class="flex_header_h1">Code is science!</h1>
7+
<a class="manifesto_CTA"href="/manifesto" target="blank">Read and Sign<br>the Manifesto!</a>
8+
</header>
69

710
## Premise
811

themes/codeisscience/static/css/style.css

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ body {
1111
flex-direction: column;
1212
min-height: 100vh;
1313
}
14+
1415
/*Main*/
1516
* {
1617
box-sizing: border-box;
@@ -23,6 +24,58 @@ main {
2324
display: flex;
2425
flex-grow: 1;
2526
}
27+
28+
/*flex_Header*/
29+
.flex_header {
30+
display: flex;
31+
justify-content: space-between;
32+
align-items: center;
33+
}
34+
35+
.flex_header_h1 {
36+
margin-bottom: 0px;
37+
text-transform: uppercase;
38+
}
39+
40+
.manifesto_CTA {
41+
text-decoration: none;
42+
display: inline-block;
43+
text-align: center;
44+
letter-spacing: .05em;
45+
font-size: 1.5em;
46+
color: #ffffff;
47+
background-color: #f47a37;
48+
margin: .38em 1em .38em 0;
49+
padding: 1em 1.5em;
50+
border-radius: 10px;
51+
cursor: pointer;
52+
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16),
53+
0px 3px 6px 0px rgba(0, 0, 0, 0.23);
54+
55+
}
56+
57+
/*border setup for hover/ focus state*/
58+
.manifesto_CTA{
59+
border: solid 1px transparent;
60+
border-radius: 10px;
61+
}
62+
63+
.manifesto_CTA:hover,
64+
.manifesto_CTA:focus
65+
{
66+
color: #f47a37;
67+
background: #ffffff;
68+
border-color: currentColor;
69+
outline: none;
70+
}
71+
72+
.manifesto_CTA:active {
73+
transform: translateY(1px);
74+
filter: saturate(150%);
75+
box-shadow: none;
76+
}
77+
/**********************************************************/
78+
2679
main article {
2780
margin: 0.5em;
2881
flex: 1 1;
@@ -65,11 +118,13 @@ main .side-menu {
65118
/*Media Queries*/
66119
@media only screen and (max-width: 700px) {
67120
/* For mobile phones: */
121+
.flex_header_h1,
68122
.main,
69123
.side-menu {
70124
width: 100%;
71125
}
72-
main {
126+
main,
127+
.flex_header {
73128
flex-direction: column;
74129
}
75130
}

0 commit comments

Comments
 (0)