Creo que deje los estilo, PERFECTOS <3

This commit is contained in:
Daniel Cortés
2019-06-30 00:53:35 -04:00
parent 08f6e9a0ab
commit 8a982c2461
35 changed files with 4277 additions and 370 deletions

View File

@@ -1,88 +1,94 @@
$colorfg: #212121;
$colorborder: #f2f2f2;
$color01: #0fa0ce;
@import "app.scss";
body {
margin: 0;
color: $colorfg;
$sidebar-width: 13rem;
/* Base
-------------------------------------*/
.container {
margin-left: $sidebar-width;
max-width: calc(100% - #{$sidebar-width});
}
hr {
border: 1px solid $colorborder;
}
/* Sidebar
-------------------------------------*/
.sidebar {
position:fixed;
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 20ch;
width: $sidebar-width;
border-right: 1px solid $colorborder;
.items {
display: flex;
height: 100%;
flex-direction: column;
justify-content: flex-start;
}
.item {
line-height: 2em;
}
.end {
margin-top: auto;
a {
padding: 2em 0;
}
}
a, span {
display:block;
text-align: center;
text-transform: uppercase;
font-weight: bold;
letter-spacing: .2rem;
text-decoration: none;
color: $colorfg;
}
a:hover {
color: $color01;
}
h1 {
text-align:center;
}
}
.container {
margin-left: 20ch;
height:100vh;
padding: 0em 2em;
.sidebar-items {
display: flex;
flex-direction: column;
height: 100%;
padding: 1rem 0;
letter-spacing: .2rem;
line-height: 2rem;
text-transform: uppercase;
text-align: center;
}
.sidebar-head {
font-weight: 700;
font-size: 1.5rem;
margin-bottom: .6rem;
}
.sidebar-end {
font-weight: 700;
margin-top: auto;
margin-bottom: 2rem;
}
.sidebar-link {
font-weight: 600;
text-decoration: none;
}
.sidebar-link:hover {
color: $color01;
}
@media (max-width: 600px) {
.sidebar{
display: none;
position: static;
flex-direction: column;
text-align: center;
margin: 1rem auto ;
border: 0;
border-bottom: 1px solid $colorborder;
}
.sidebar-end {
margin-bottom: 0;
}
.container{
margin-left: 0;
width: auto;
max-width: 100%;
padding: 2rem;
margin: auto;
}
}
table {
/* Table
-------------------------------------*/
.table {
width: 100%;
border-collapse: collapse;
th {
background: $colorfg;
color: $colorborder;
font-weight: bold;
font-weight: 600;
text-transform: uppercase;
}
@@ -95,84 +101,29 @@ table {
td.controls {
a, input[type=submit]{
display: block;
margin: 0;
border: 0;
padding: 0;
width: 100%;
display:block;
text-transform: uppercase;
text-align: left;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
text-align: left;
font-weight: 600;
letter-spacing: .1em;
color: $colorfg;
}
input[type=submit] {
border: 0;
background-color: white;
cursor: pointer;
}
}
th.controls {
a {
display:block;
text-transform: uppercase;
font-weight: bold;
text-decoration: none;
color: white;
}
}
}
form {
height: 100%;
label {
th.controls a {
display: block;
text-transform: uppercase;
font-weight: bold;
font-size: .9em;
margin-bottom: .6em;
}
input[type=text], textarea{
box-sizing: border-box;
display: block;
width: 100%;
height: 2em;
border: 1px solid $colorfg;
border-radius: 4px;
margin-bottom: 1em;
padding: .4em;
font-size: 1rem;
font-weight: 400;
}
textarea {
font-family: inherit;
box-sizing: border-box;
height: 30em;
}
.button{
display: inline-block;
box-sizing: border-box;
text-align: center;
cursor: pointer;
color: $colorfg;
border: 1px solid $colorfg;
border-radius: 4px;
background-color: #fff;
font-weight: bold;
height: 38px;
padding: 0 38px;
margin-bottom: 3em;
text-transform: uppercase;
text-decoration: none;
color: white;
}
}

View File

@@ -1,61 +1,44 @@
/**
* Ryuuji
*/
$colorfg: #212121;
$colorborder: #f2f2f2;
$color01: #0fa0ce;
@import "~normalize.css/normalize.css";
@import "fonts.scss";
@import "variables.scss";
/* Base
-------------------------------------*/
html {
overflow-y: scroll;
background-color: white;
}
body {
font-size: 15px;
line-height: 1.6rem;
font-family: "OpenSans", sans-serif;
color: $colorfg;
line-height: 1.6em;
font-size: 1.25em;
max-width: 80ch;
padding: 2rem;
margin: auto;
}
hr {
border: 1px solid $colorborder;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 2rem;
letter-spacing: .1rem;
font-weight: 600;
text-transform: uppercase;
}
a {
color: $colorfg;
}
form label {
display: block;
text-transform: uppercase;
font-weight: bold;
font-size: .9em;
}
form input {
display: block;
width: 100%;
height: 2em;
border: 1px solid $colorfg;
border-radius: 4px;
margin-bottom: 1em;
padding: .4em;
}
button {
display: inline-block;
box-sizing: border-box;
text-align: center;
cursor: pointer;
color: $colorfg;
border: 1px solid $colorfg;
border-radius: 4px;
background-color: #fff;
font-weight: bold;
height: 3em;
padding: 0 3em;
text-transform: uppercase;
.container{
max-width: 38rem;
padding: 2rem;
margin: auto;
}
/* Nav Bar
-------------------------------------*/
.navbar {
display: flex;
border-bottom: 1px solid $colorborder;
@@ -63,27 +46,81 @@ button {
.navbar-items {
display: flex;
list-style: none;
padding-left: 0;
}
width: 38rem;
padding: 1rem 0;
margin: auto;
.navbar-item a {
text-transform: uppercase;
font-weight: bold;
letter-spacing: .2rem;
text-decoration: none;
margin-left: 1em;
color: $colorfg;
}
.navbar-item a:hover {
color: $color01;
list-style: none;
letter-spacing: .2rem;
line-height: 2rem;
text-transform: uppercase;
justify-content: space-between;
}
.navbar-item-link{
text-decoration: none;
font-weight: 600;
}
.navbar-item-head{
text-decoration: none;
font-weight: 700;
}
.navbar-item-link:hover { color: $color01; }
@media only screen and (max-width: 768px) {
.navbar-items, .navbar {
.navbar {
width: 100%;
margin: 1rem auto;
}
.navbar-items {
flex-direction: column;
text-align: center;
}
.navbar-item-head{
font-size: 1.5rem;
margin-bottom: .6rem;
}
}
/* Forms
-------------------------------------*/
label {
display: block;
font-weight: 600;
text-transform: uppercase;
}
.form-input {
display: block;
width: 100%;
height: 2rem;
border: 1px solid $colorfg;
border-radius: 4px;
margin-bottom: 1em;
padding: .4em;
}
textarea.form-input {
height: 20rem;
}
.form-submit {
display: inline-block;
text-align: center;
cursor: pointer;
color: $colorfg;
border: 1px solid $colorfg;
border-radius: 4px;
background-color: #fff;
font-weight: 600;
height: 2.4rem;
padding: 0 2rem;
text-transform: uppercase;
}

20
resources/sass/fonts.scss vendored Normal file
View File

@@ -0,0 +1,20 @@
@font-face {
font-family: 'OpenSans';
font-style: normal;
font-weight: 500;
src: url('../fonts/OpenSans-Regular.ttf') format('truetype')
}
@font-face {
font-family: 'OpenSans';
font-style: normal;
font-weight: 600;
src: url('../fonts/OpenSans-SemiBold.ttf') format('truetype')
}
@font-face {
font-family: 'OpenSans';
font-style: normal;
font-weight: 700;
src: url('../fonts/OpenSans-Bold.ttf') format('truetype')
}

3
resources/sass/variables.scss vendored Normal file
View File

@@ -0,0 +1,3 @@
$colorfg: #212121;
$colorborder: #f2f2f2;
$color01: #0fa0ce;