Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 26 additions & 17 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1,40 +1,49 @@
body {
/*text-align: center;*/
background-size: cover;
font-family: "Amatic SC", cursive;
background-color: rgb(95, 207, 128);
}

.light {
color: white;
font-family: 'Amatic SC', cursive;
background-color: rgb(95,207,128);
}

.dark {
color: black;
}

#quote-box {
position: absolute;
top: 14%;
left: 10%;
right: 10%;
width: 80%;
line-height: .5;
line-height: 0.5;
}
.quote {
font-size: 6rem;
font-weight: 400;
line-height: 1.1;
text-shadow: 0 1px 1px rgba(0,0,0, .8);
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
position: relative;
margin: 0;
}
.quote:before, .quote:after {
}
.quote:before,
.quote:after {
font-size: 6rem;
line-height: 2.5rem;
position: absolute;
}
.quote:before {
content: "“";
top: .25em;
left: -.5em;
top: 0.25em;
left: -0.5em;
}
.quote:after {
content: "”";
bottom: -.1em;
margin-left: .1em;
bottom: -0.1em;
margin-left: 0.1em;
position: absolute;
}
.source {
Expand All @@ -61,22 +70,21 @@ body {
}

#loadQuote {
font-size: 2.5rem;;
font-size: 2.5rem;
position: fixed;
width: 7em;
display: inline-block;
left: 50%;
margin-left: -6em;
bottom: 150px;
border-radius: 4px;
border: 2px solid #fff;
color: #fff;
background-color: rgba(255,255,255, 0);
border: 2px solid;
background-color: rgba(255, 255, 255, 0);
padding: 15px 0;
transition: .5s ;
transition: 0.5s;
}
#loadQuote:hover {
background-color: rgba(255,255,255,.25);
background-color: rgba(255, 255, 255, 0.25);
}
#loadQuote:focus {
outline: none;
Expand All @@ -86,7 +94,8 @@ body {
.quote {
font-size: 2.5rem;
}
.quote:before, .quote:after {
.quote:before,
.quote:after {
font-size: 3rem;
}
.source {
Expand Down
15 changes: 9 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>Random Quotes</title>
<link href="https://fonts.googleapis.com/css?family=Amatic+SC" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/styles.css">
</head>

<body>
<div id="quote-box">
<p class="quote">You can do anything but not everything</p>
<p class="source">David Allen<span class="citation">Making It All Work</span><span class="year">2009</span></p>
</div>
<button id="loadQuote">Show another quote</button>
<div id="quote-box">
<p class="quote">You can do anything but not everything</p>
<p class="source">David Allen<span class="citation">Making It All Work</span><span class="year">2009</span></p>
</div>
<script src="js/script.js"></script>
<button id="loadQuote">Show another quote</button>
</div>
<script src="js/script.js" type="module"></script>
</body>

</html>
Loading