* {
box-sizing: border-box;
+ margin: 0;
+ padding: 0;
}
:root {
- --bgColorDark: #242930;
+ --bgColorDark: #0e0e0e;
--bgColorMidDark: #353b43;
--bgColorLightDark: #4f5864;
--bgColorLight: #D2D2D2;
+ --bgColorBlue: #1b6694;
+ --bgColorSalamandra: rgb(236, 162, 143);
--globalScale: 1;
+ --navLinkColor: linear-gradient(#1482c8 0 0);
}
h1 {
a:active {
text-decoration: none;
font-size: 1.5rem;
+ color: var(--bgColorSalamandra);
}
html {
"main"
"footer";
height: 100%;
- margin: 0;
+}
+
+::-webkit-scrollbar {
+ width: 0.35rem;
+}
+
+::-webkit-scrollbar-thumb {
+ background-color: var(--bgColorBlue);
}
aside {
+ position: fixed;
+ inset: 0 calc(100% - 18rem);
grid-area: aside;
display: none;
flex-flow: column nowrap;
align-items: flex-start;
justify-content: flex-start;
- width: 100%;
- padding: 0 1rem;
+ width: 18rem;
+ height: calc(100% - 5rem);
+ margin-top: 5rem;
+ padding: 2rem 1rem;
background-color: var(--bgColorDark);
+ overflow: auto;
}
-aside .item {
+aside > div, li {
+ color: var(--bgColorLight);
display: flex;
- flex-flow: row nowrap;
+ flex-flow: column nowrap;
align-items: center;
justify-content: space-between;
font-size: 1.5rem;
}
nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
grid-area: navbar;
+ background-color: var(--bgColorDark);
+ width: 100%;
+}
+
+nav div:first-child {
display: flex;
flex-flow: row nowrap;
align-items: center;
- justify-content: space-between;
+ justify-content: flex-start;
width: 100%;
- padding: 0 2rem;
- background-color: var(--bgColorLightDark);
+ margin-left: 1rem;
+}
+
+nav div img:first-child {
+ width: 3rem;
+}
+
+nav ul {
+ display: none;
+ flex-flow: row nowrap;
+ align-items: center;
+ justify-content: flex-end;
+ list-style-type: none;
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
}
+.nav-items {
+ padding-bottom: .15em;
+ background: var(--navLinkColor), var(--navLinkColor);
+ background-size: .3em .1em;
+ background-position:50% 100%;
+ background-repeat: no-repeat;
+ transition: .3s linear, background-size .3s .2s linear;
+}
+
+.nav-items:hover {
+ background-size: 50% .1em;
+ background-position: 10% 100%, 90% 100%;
+}
+
+nav li {
+ display: flex;
+ align-items: center;
+ height: 100%;
+ }
+
+nav a {
+ display: block;
+ color: white;
+ text-align: center;
+ padding: 1rem 1.5rem;
+ text-decoration: none;
+ }
+
+nav button {
+ display: flex;
+ position: absolute;
+ width: 4rem;
+ height: 4rem;
+ right: 0.4rem;
+
+ background-image: url('../images/menu.png');
+ background-color: transparent; /* Cuando usamos background-image se pone el background-color en blanco por default por eso le indicamos que sea transparente para que se pueda ver la imagen. */
+ background-position: top left;
+ background-repeat: no-repeat;
+ background-size: cover;
+
+ border: none;
+ cursor: pointer;
+
+ transition: background-image ease 0.2s;
+
+}
+
+nav button[data-visible="true"] {
+ background-image: url('../images/menu-abierto.png');
+}
+
main {
grid-area: main;
padding: 2rem;
background-color: var(--bgColorMidDark);
+ background-image: url('../images/salamandra_margin.svg');
+ background-size: 10rem;
+ background-position-x: right;
+ background-position-y: bottom;
+ background-repeat: no-repeat;
+}
+
+/* Regla que aplica solo a firefox */
+@-moz-document url-prefix() {
+ main {
+ background-image: url('../images/salamandra.svg');
+ background-position-x: right 1rem;
+ background-position-y: bottom 1rem;
+ }
}
main hr {
padding: 0 0.3rem;
}
+.content .highlight code {
+ white-space: pre-wrap;
+ overflow-x: auto;
+}
+
footer {
grid-area: footer;
display: flex;
background-color: var(--bgColorLightDark);
}
-.bg-logo {
- background-image: url('../images/salamandra.svg');
- background-attachment: fixed;
- background-size: cover;
- background-position: center;
-}
-
.greetings {
- background-color: var(--bgColorMidDark);
width: 80%;
height: 80%;
margin: 0 auto;
}
body {
- grid-template-columns: 11rem 1fr;
+ grid-template-columns: 13rem 1fr;
grid-template-areas: /* Tabletas se muestra el aside */
"navbar navbar"
- "aside main"
+ "main main"
"footer footer";
}
- aside {
+ nav ul {
display: flex;
}
+
+ aside {
+ display: none !important;
+ }
+
+ nav button, aside li a {
+ display: none;
+ }
+
}
@media screen and (min-width: 1280px) {