Skip to content

Commit

Permalink
Converte stylsheet da aplicação pra SCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
elomar committed Mar 3, 2012
1 parent 295b587 commit fcc09e1
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 107 deletions.
107 changes: 0 additions & 107 deletions app/assets/stylesheets/layout.css

This file was deleted.

116 changes: 116 additions & 0 deletions app/assets/stylesheets/layout.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
$largura: 710px;
$cor-background: #cff;
$cor-link: #09c;
$cor-link-visitado: #069;

.container {
width: $largura;
}

body {
background: $cor-background;
}

header {
padding-top: 20px;

img {
padding: 1em;
background: white;
}
}

section {
margin-top: 1em;
font-size: 120%;
padding: 20px;
background: white;

h1 {
font-size: 200%;
}
}

/* Links */

a {
color: $cor-link;
text-decoration: none;

&:hover {
color: $cor-link-visitado;
text-decoration: underline;
}

&:visited {
color: $cor-link-visitado;
}
}

/* Navegação */

nav {
float: right;
cor-background: white;
padding: 0 0.7em;
white-space: nowrap;

ul {
margin: 0;
padding: 0;

li {
list-style-type: none;
display: inline-block;
padding: 0.2em 0;

a {
padding: 0 5px;
font-weight: bold;

&:visited {
color: $cor-link;
}

&:hover {
text-decoration: underline;
}
}
}
}
}

/* Botão de criar conta*/

a.signup_button {
margin-left: auto;
margin-right: auto;
display: block;
text-align: center;
width: 190px;
color: white;
background: #006400;
font-size: 150%;
font-weight: bold;
padding: 20px;
}

/* Cantos arredondados */

.round {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}

footer {
text-align: center;
margin-top: 10px;
width: $largura;
margin-left: auto;
margin-right: auto;

nav {
float: none;
}
}

0 comments on commit fcc09e1

Please sign in to comment.