aboutsummaryrefslogtreecommitdiff
path: root/css/style.css
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-08-22 19:52:41 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-08-22 19:52:41 +0200
commit12020567638455e5922e9713bc082d74251b4ab6 (patch)
tree3af1c5c73ea34c3c3eefda9a596f27448f797740 /css/style.css
parent9d2e46397c220bd452f4a8cd22dc5dc087e99c93 (diff)
downloadtaamas.xyz-12020567638455e5922e9713bc082d74251b4ab6.tar.gz
taamas.xyz-12020567638455e5922e9713bc082d74251b4ab6.zip
AƱadido viewport y eliminada estructura de lista de la barra de navegaciĆ³n.
Diffstat (limited to 'css/style.css')
-rw-r--r--css/style.css43
1 files changed, 25 insertions, 18 deletions
diff --git a/css/style.css b/css/style.css
index 5ca12a8..5be730e 100644
--- a/css/style.css
+++ b/css/style.css
@@ -24,6 +24,11 @@ a:visited {
outline: 2px solid white;
}
+/* No outline cuando es por clic. */
+:focus:not(:focus-visible) {
+ outline: none;
+}
+
h1 {
padding: 1em 0;
font-variant: small-caps;
@@ -43,16 +48,9 @@ h1 {
justify-content: space-around;
}
-.navbar li {
+.navbar a {
flex-basis: 10%;
flex-grow: 1;
-}
-
-.navbar .liright {
- float: right;
-}
-
-.navbar li a {
display: block;
color: #CBD7E1;
padding: 20px 20px;
@@ -60,7 +58,7 @@ h1 {
text-decoration: none;
}
-.navbar li:hover a {
+.navbar a:hover {
background-color: #C8E8FF;
color: #17212B;
}
@@ -105,6 +103,12 @@ ul ul {
display: grid;
}
+.odd, .even {
+ margin: 0 5% 5%;
+ max-width: 50%;
+ height: auto;
+}
+
.odd {
float: left;
margin-left: 0;
@@ -115,20 +119,13 @@ ul ul {
margin-right: 0;
}
-.odd, .even {
- margin: 0 10% 5%;
- max-width: 50%;
- height: auto;
-}
-
.odd img, .even img {
- display: block;
max-width: 100%;
height: auto;
margin: 0;
}
-img {
+img, video {
max-width: 100%;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 15px;
@@ -167,11 +164,21 @@ img {
@media only screen and (max-width: 600px) {
+ h1 {
+ font-size: 2em;
+ }
+
+ .navbar {
+ font-size: 1em;
+ }
+
.odd, .even {
+ float: none;
margin: 0 10% 20px;
max-width: 100%;
height: auto;
- float: none;
+ display: block;
+ text-align: center;
}
ul {