Normalizace CSS

To aby se v tom prase vyznalo. Bude třeba to celý překopat, protože
mi z toho krvácí oči.
master
Emil Miler 3 years ago
parent 16e18f0111
commit 83aeb9b2a3

@ -1,286 +1,243 @@
@font-face { @font-face {
font-family: myFirstFont; font-family: myFirstFont;
src: url('../fonts/megrim2.ttf') format('truetype'); src: url('../fonts/megrim2.ttf') format('truetype');
} }
body { * { box-sizing: border-box }
font-family: 'Titillium Web', sans-serif;
}
/*plynulý posun při kliknutí na kotvu*/
html {
scroll-behavior: smooth;
}
html { scroll-behavior: smooth }
body { font-family: 'Titillium Web', sans-serif }
.menu{ .menu{
text-align: center;
text-align: center; font-family: myFirstFont;
font-family: myFirstFont; font-size: 50px;
font-size: 50px;
} }
.menu a { .menu a {
color:inherit; color:inherit;
text-decoration: none; text-decoration: none;
} }
.logo {display: none; .logo { display: none }
}
ul.leaf { ul.leaf {
list-style-image: url('../img/troj-modry-maly.png'); list-style-image: url('../img/troj-modry-maly.png');
} }
.menu-1, .logo, .logo-mob, .menu-2 { .menu-1, .logo, .logo-mob, .menu-2 {
margin: auto; margin: auto;
width: 90% width: 90%
}
.logo-mob img{
width: 90%;
} }
.logo-mob img{
width: 90%;
}
#header { #header {
text-align: center; text-align: center;
margin: 10 0 10 0 ; /* border-bottom: 6px solid grey;
/* border-bottom: 6px solid grey; border-bottom-style:inset;*/
border-bottom-style:inset;*/
}
hr.header{ height: 12px; border: 0; box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5); width: 100%;
margin-left: -0%; }
hr.footer{
border: 0; height: 0; /* Firefox... */ box-shadow: 0 0 10px 1px black;
}
hr.footer:after { /* Not really supposed to work, but does */ content: "\00a0"; /* Prevent margin collapse */ }
.footer {
text-align: center;
font-size: 13px;
line-height: 1;
} }
* { hr.header{
box-sizing: border-box; height: 12px;
border: 0;
box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
width: 100%;
} }
/* Create two equal columns that floats next to each other */ hr.footer{
border: 0;
height: 0;
box-shadow: 0 0 10px 1px black;
margin: 3em 0;
}
hr.footer:after { /* Not really supposed to work, but does */ content: "\00a0"; /* Prevent margin collapse */ }
.footer {
text-align: center;
font-size: 13px;
line-height: 1;
}
/* Clear floats after the columns */ /* Clear floats after the columns */
.row:after { .row:after {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
} }
.column { .column {
width: 100%; width: 100%;
/*height: 300px; Should be removed. Only for demonstration */ /*height: 300px; Should be removed. Only for demonstration */
padding: 1%; padding: 1%;
text-align: justify; text-align: justify;
/* /*
top: 50%; top: 50%;
transform: translateY(-50%);*/ transform: translateY(-50%);*/
} }
/*.column p { /*.column p {
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
}*/ }*/
.carusell { .carusell {
/* background: LightGreen;*/ /* background: LightGreen;*/
margin-top: 5px; margin-top: 5px;
} }
.title { .title {
display: block; display: block;
font-size: 30px; font-size: 30px;
text-align: left; text-align: left;
font-weight: 700; font-weight: 700;
} }
.column-img { .column-img {
max-width: 100%; max-width: 100%;
width: 100%; width: 100%;
height: auto; height: auto;
text-align: center; text-align: center;
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
p { p {
text-align: justify; text-align: justify;
} }
.troj { .troj {
width:25px; width:25px;
} }
h3 { h3 {
margin-bottom: 0px; margin-bottom: 0px;
} }
.todo:before { .todo:before {
content: "TODO"; content: "TODO";
} }
.todo { .todo {
/*background-color: yellow;*/ /*background-color: yellow;*/
color: red; color: red;
}
@media screen and (max-width: 999px){
.desktop-block {display: none;
}
}
@media screen and (min-width: 1000px) {
.container{
margin: 0 auto;
width: 80%;
max-width: 1000px;
}
.menu-1, .menu-2 {
border-width: 0px;
width: 7%;
display: inline-block;
}
.logo {
/* min-width: 200px;*/
border-width: 0px;
width: 30%;
display: inline-block;
}
.menu{
text-align: center;
font-family: myFirstFont;
font-size: 20px;
}
.menu:hover a{
font-weight:bold;
}
.menuspace{
height: 105px;
}
/*offset kotvy*/
:target:before {
content: "";
display: block;
height: 120px;
margin: -120px 0 0;
}
.menu-container{
text-align: center;
position: fixed;
background-color: white;
width: 100%;
/*margin-left: -21%;*/
margin-top: -10px;
z-index: 100;
}
.logo img{
width: 300px;
margin-bottom: -15px;
}
.logo-mob {display: none;}
.menu-1 {border-color: red}
.logo {border-color: green}
.menu-2 {border-color: blue}
.column {
float: left;
width: 50%;
/*height: 300px; Should be removed. Only for demonstration */
} }
.normal-column { /* RESPONSIVITY */
width: 46%;
margin: 2%;
}
.column-big {
float: left;
width: 100%;
}
@media screen and (max-width: 999px){
.title { .desktop-block {
display: block; display: none;
}
text-align: right;
font-weight: 700;
text-transform:uppercase;
}
.profil-left {
clip-path: polygon(0% 0%, 60% 0%, 100% 100%, 0% 100%);
}
.profil-right {
clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.row {
display: flex;
/* flex-direction: column;*/
align-items: center;
/* justify-content: center;*/
margin-bottom: 20px;
} }
@media screen and (min-width: 1000px) {
.container{
.mobile-block {display: none; margin: 0 auto;
} width: 80%;
max-width: 1000px;
}
.menu-1, .menu-2 {
border-width: 0px;
width: 7%;
display: inline-block;
}
.logo {
/* min-width: 200px;*/
border-width: 0px;
width: 30%;
display: inline-block;
}
.menu{
text-align: center;
font-family: myFirstFont;
font-size: 20px;
}
.menu:hover a{
font-weight:bold;
}
.menuspace{
height: 105px;
}
/*offset kotvy*/
:target:before {
content: "";
display: block;
height: 120px;
margin: -120px 0 0;
}
.menu-container{
text-align: center;
position: fixed;
background-color: white;
width: 100%;
/*margin-left: -21%;*/
margin-top: -10px;
z-index: 100;
}
.logo img{
width: 300px;
margin-bottom: -15px;
}
.logo-mob {display: none;}
.menu-1 {border-color: red}
.logo {border-color: green}
.menu-2 {border-color: blue}
.column {
float: left;
width: 50%;
}
.normal-column {
width: 46%;
margin: 2%;
}
.column-big {
float: left;
width: 100%;
}
.title {
display: block;
text-align: right;
font-weight: 700;
text-transform:uppercase;
}
.profil-left {
clip-path: polygon(0% 0%, 60% 0%, 100% 100%, 0% 100%);
}
.profil-right {
clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.row {
display: flex;
/* flex-direction: column;*/
align-items: center;
/* justify-content: center;*/
margin-bottom: 20px;
}
.mobile-block { display: none }
} }

Loading…
Cancel
Save