Johannes Zellner 11 éve
commit
527e3ab601
2 módosított fájl, 148 hozzáadás és 0 törlés
  1. 76 0
      fun.html
  2. 72 0
      layout.html

+ 76 - 0
fun.html

@@ -0,0 +1,76 @@
+<html>
+<head>
+
+<style>
+
+@font-face {
+    font-family: "Raleway";
+    font-style: normal;
+    font-weight: 400;
+    src: local("Raleway"), url("http://fonts.gstatic.com/s/raleway/v9/0dTEPzkLWceF7z0koJaX1A.woff2") format("woff2");
+}
+
+body {
+    padding-top: 200px;
+    margin: 0;
+    width: 100%;
+    text-align: center;
+    font-family: Raleway;
+    font-size: 32px;
+    background-color: #0E83CD;
+}
+
+a {
+    display: inline-block;
+    position: relative;
+    text-decoration: none;
+    color: #0972B4;
+    border-width: 0;
+    border-style: solid;
+    border-top-width: 3px;
+    border-color: #0972B4;
+    padding: 10px 0;
+    margin: 30px;
+}
+
+a:hover {
+    color: #0972B4;
+}
+
+a:hover::before {
+    max-width: 100%;
+}
+
+a:active {
+    color: #0972B4;
+}
+
+a::before {
+    position: absolute;
+    top: 0;
+    left: 0;
+    content: attr(data-hover);
+    color: white;
+    max-width: 0px;
+    overflow: hidden;
+    padding: 10px 0;
+    border-width: 0;
+    border-style: solid;
+    border-bottom-width: 3px;
+    border-color: white;
+    transition: max-width 0.5s ease 0s;
+}
+
+</style>
+
+</head>
+
+<body>
+
+<a href="#" data-hover="Katja">Katja</a>
+<a href="#" data-hover="Johannes">Johannes</a>
+<a href="#" data-hover="Dieter">Dieter</a>
+<a href="#" data-hover="Margarethe">Margarethe</a>
+
+</body>
+</html>

+ 72 - 0
layout.html

@@ -0,0 +1,72 @@
+<html>
+<head>
+
+<style>
+
+html, body {
+    margin: 0;
+    color: white;
+    font-size: 24px;
+    background: purple;
+}
+
+.body {
+    height: 100%;
+    width: 100%;
+    display: table;
+    background: gray;
+}
+
+.header {
+    height: 200px;
+    width: 100%;
+    background: #0E83CD;
+    transition: all 250ms;
+    overflow: hidden;
+}
+
+.header:active {
+    height: 10px;
+}
+
+.content {
+    width: 100%;
+    height: 400px;
+    background: #0972B4;
+}
+
+.footer {
+    height: 200px;
+    width: 100%;
+    background: black;
+}
+
+</style>
+
+</head>
+
+<body>
+
+<div class="body">
+
+    <div class="header">
+        <h1>Header</h1>
+    </div>
+
+    <div class="content">
+        Some text somewhere
+    </div>
+
+    <div class="content">
+        More text
+    </div>
+
+    <div class="content">
+        Even more
+    </div>
+</div>
+
+<div class="footer">Footer</div>
+
+</body>
+</html>