Skip to content

Commit

Permalink
Minor CSS fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Aug 14, 2018
1 parent 1f00a64 commit 7ae424a
Show file tree
Hide file tree
Showing 4 changed files with 280 additions and 4 deletions.
272 changes: 272 additions & 0 deletions public/css/styles.1.29.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
/* Variables */
/* Styles */
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
font-family: "Source Serif Pro", serif;
color: #170c0c;
background: #9156b7;
font-size: 1.2em;
margin: 0;
height: 100%;
}
body {
position: relative;
padding-bottom: 20em;
min-height: 100%;
}
header,
section,
footer {
width: 95%;
margin: 0 auto;
}
@media (max-width: 800px) {
header,
section,
footer {
width: 100%;
}
}
header {
text-align: center;
margin: 1em auto;
padding: 1rem 0 2rem;
}
header p {
margin-bottom: 0;
}
header h1 {
margin: 0 auto;
font-family: "Lobster";
font-size: 6rem;
font-weight: normal;
}
@media (max-width: 800px) {
header h1 {
font-size: 4rem;
}
}
header .emoji {
font-size: 4rem;
white-space: nowrap;
}
.strike {
display: block;
text-align: center;
overflow: hidden;
white-space: nowrap;
width: 80%;
max-width: 460px;
margin: 0 auto;
}
.strike span {
position: relative;
display: inline-block;
}
.strike span:before,
.strike span:after {
content: "";
position: absolute;
top: 50%;
width: 9999px;
height: 1px;
background: #170c0c;
}
.strike span:before {
right: 100%;
margin-right: 15px;
}
.strike span:after {
left: 100%;
margin-left: 15px;
}
section {
font-weight: bold;
min-height: 100%;
margin: 0 auto;
position: relative;
}
@media (min-width: 800px) {
section {
padding: 0 0 10em;
}
}
section#content {
min-height: 100vh;
background: url('../images/background/geometry-alt-purple-2.png');
background-repeat: repeat;
position: relative;
}
section#content div#content-inner {
max-width: 1200px;
margin: 0 auto;
}
form,
p {
padding: 0.5rem 1rem;
margin: 0;
}
form {
max-width: 960px;
min-height: 3em;
margin: 2em auto;
content: "";
display: block;
clear: both;
}
input,
button {
font-family: 'Merriweather Sans';
margin: 0 auto;
padding: 10px;
font-size: 0.8em;
cursor: pointer;
}
.btn-login {
font-family: 'Merriweather Sans';
font-size: 0.87em;
position: absolute;
z-index: 10;
top: 10px;
right: 10px;
padding: 10px 20px;
text-decoration: none;
background-color: #170c0c;
color: #fff;
}
.btn-login:hover {
color: #fff;
background-color: #281d1d;
}
.btn-login,
.btn-login:hover {
-webkit-transition: background-color 0.1s;
transition: background-color 0.1s;
}
input {
border: 5px solid #170c0c;
float: none;
width: 100%;
}
@media (min-width: 800px) {
input {
width: 60%;
float: left;
height: 3em;
}
}
input:focus {
border-color: #4a3f3f;
outline: none;
cursor: text;
}
input,
input:focus {
-webkit-transition: border-color 0.3s;
transition: border-color 0.3s;
}
button {
color: #fff;
font-weight: bold;
background: #170c0c;
text-align: center;
border: 1px solid #170c0c;
width: 100%;
margin-top: 1em;
border: 3px solid #392e2e;
}
@media (min-width: 800px) {
button {
width: 40%;
height: 3em;
float: right;
margin-top: 0em;
border: none;
}
}
a {
color: #170c0c;
-webkit-transition: color 0.5s;
transition: color 0.5s;
}
a:hover {
color: #281d1d;
}
iframe.twitter-tweet,
blockquote.twitter-tweet,
twitterwidget {
margin: 2em auto !important;
max-width: 90% !important;
}
footer {
border-top: 4px dashed #392e2e;
font-size: 0.8em;
font-weight: normal;
margin: 0 auto;
}
@media (min-width: 800px) {
footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 1rem;
}
}
footer a {
font-weight: bold;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
.chromeframe {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 5px;
}
img.logo {
display: block;
margin: 0 auto -1em;
width: 20%;
max-width: 600px;
}
@media (max-width: 800px) {
img.logo {
width: 40%;
padding-top: 4em;
}
}
img.logo-slack {
height: 1.1em;
max-width: 100px;
vertical-align: bottom;
}
@media (min-width: 800px) {
.keep-together {
white-space: nowrap;
}
}
a.hashtag {
font-style: italic;
text-decoration: none;
}
a.hashtag:hover {
text-decoration: underline;
}
.center-text {
text-align: center;
}
/* Animations */
.unshifted {
-webkit-transition: -webkit-transform 0.4s, opacity 1s;
transition: transform 0.4s, opacity 1s;
}
1 change: 1 addition & 0 deletions public/css/styles.1.29.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions src/styles/styles.1.28.less → src/styles/styles.1.29.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

@main-color: #170c0c;
@background-color: #170c0c;
@line-color: rgba(57, 46, 46, 0.5);
@link-color: #170c0c;
@site-width: 1200px;
@site-width-mobile: 800px;
Expand Down Expand Up @@ -73,7 +74,8 @@ header{
text-align: center;
overflow: hidden;
white-space: nowrap;
width: 460px;
width: 80%;
max-width: 460px;
margin: 0 auto;
span {
position: relative;
Expand All @@ -85,7 +87,7 @@ header{
top: 50%;
width: 9999px;
height: 1px;
background: @main-color;
background: @line-color;
}

&:before {
Expand Down Expand Up @@ -227,6 +229,7 @@ iframe.twitter-tweet,
blockquote.twitter-tweet,
twitterwidget{
margin: 2em auto !important;
max-width: 90% !important;
}

footer{
Expand All @@ -238,7 +241,7 @@ footer{
padding: 1rem;
}

border-top: 4px dashed @main-color + #222;
border-top: 4px dashed @line-color;
font-size: 0.8em;
font-weight: normal;
margin: 0 auto;
Expand Down
2 changes: 1 addition & 1 deletion views/layouts/main.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="css/styles.1.28.min.css">
<link rel="stylesheet" href="css/styles.1.29.min.css">
<meta name="msapplication-TileColor" content="#FFFFFF">
<meta name="msapplication-TileImage" content="images/favicon-144.png">
<link rel="shortcut icon" href="images/favicon.ico"/>
Expand Down

0 comments on commit 7ae424a

Please sign in to comment.