Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 01/article-img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 96 additions & 9 deletions 01/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,99 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>devmentor.pl - HTML & CSS BASICS - #01</title>
</head>
<body>

</body>
</html>
</head>
<body>
<header class="header">
<nav class="header__container">
<img src="./logo.jpg" alt="Logo" class="header__img" />
<ul class="header__nav">
<li class="header__nav-item">Home</li>
<li class="header__nav-item">Artykuł</li>
<li class="header__nav-item">Kontakt</li>
</ul>
</nav>
</header>
<main class="main">
<section class="main__article-container">
<article class="main__article">
<h1 class="main__article-title">Konkretny artykuł !</h1>
<p class="main__article-content">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit ipsum
dolorem quis illo ratione et, rerum molestias cupiditate tenetur
veniam est ipsam? Fugiat, perferendis. Deserunt quaerat deleniti
tempore recusandae harum! Id nesciunt harum explicabo nisi cum amet
libero sed sit laudantium, consequuntur magnam, velit doloremque?
Iusto tempore, voluptates officiis minus id ut, cum neque assumenda
est itaque blanditiis deleniti officia. Perferendis provident
explicabo fugit deleniti laudantium atque accusamus distinctio
facilis cupiditate delectus obcaecati similique tenetur aperiam
ratione maiores cum incidunt debitis, consequatur, corrupti
excepturi porro eius placeat odio. Est, ducimus!
</p>
<p class="main__article-date">20.11.2012</p>
<p class="main__article-author">Jan Nieznany</p>
<img
src="./article-img.jpg"
alt="Money image"
class="main__article-img"
/>
<table class="main__article-table">
<thead>
<tr>
<th>Imię</th>
<th>Nazwisko</th>
<th>Wiek</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jasiu</td>
<td>Kapela</td>
<td>55</td>
</tr>
</tbody>
</table>
</article>
</section>
<section class="main_form-container">
<form class="main__form" action="#" method="POST">
<input
class="main__form-email"
placeholder="Wpisz swój adres email..."
type="email"
/>
<textarea
class="main__form-comment"
placeholder="Wpisz komentarz tutaj..."
name="email"
id="email"
cols="30"
rows="10"
></textarea>
<button class="main__form-submit" type="submit">Wyślij</button>
</form>
</section>
<section class="main__comments-container">
<article class="main__comment">
<p class="main__comment-content">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quasi natus
perferendis hic, perspiciatis quis aperiam iure, similique odio
cumque blanditiis nostrum omnis exercitationem fuga libero, deleniti
dolore! Consectetur, reiciendis odio.
</p>
<p class="main__comment-author">Arkadiusz Pan Pawłowski</p>
<p class="main__comment-date">14-10-2011</p>
</article>
</section>
</main>
<footer class="footer">
<h2 class="footer__copyright">
Wszelkie prawa zastrzeżone <span>&copy</span>
</h2>
</footer>
</body>
</html>
Binary file added 01/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
169 changes: 88 additions & 81 deletions 02/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,54 +1,61 @@
/*Acco*/
.ac-container {
max-width: 400px;
max-width: 400px;
}

/*
Znacznik label, którego przodkiem jest klasa .ac-container
(0, 1, 1)
*/
?? {
height: 30px !important;
line-height: 21px !important;
font-size: 12px !important;
font-family: 'Open Sans','Arial Narrow',Arial,sans-serif !important;
padding: 5px 20px;
position: relative;
z-index: 20;
display: block;
height: 30px;
cursor: pointer;
color: #777;
text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
line-height: 33px;
font-size: 19px;
background: #fff;
background: -moz-linear-gradient(top,#fff 1%,#eaeaea 100%);
background: -webkit-gradient(linear,left top,left bottom,color-stop(1%,#fff),color-stop(100%,#eaeaea));
background: -webkit-linear-gradient(top,#fff 1%,#eaeaea 100%);
background: -o-linear-gradient(top,#fff 1%,#eaeaea 100%);
background: -ms-linear-gradient(top,#fff 1%,#eaeaea 100%);
background: linear-gradient(top,#fff 1%,#eaeaea 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff',endColorstr='#eaeaea',GradientType=0 );
box-shadow: 0 0 0 1px rgba(155,155,155,0.3),1px 0 0 rgba(255,255,255,0.9) inset,0 2px 2px rgba(0,0,0,0.1);
font-size: 12px;
height: 30px;
line-height: 20px;
.ac-container label {
height: 30px !important;
line-height: 21px !important;
font-size: 12px !important;
font-family: "Open Sans", "Arial Narrow", Arial, sans-serif !important;
padding: 5px 20px;
position: relative;
z-index: 20;
display: block;
height: 30px;
cursor: pointer;
color: #777;
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
line-height: 33px;
font-size: 19px;
background: #fff;
background: -moz-linear-gradient(top, #fff 1%, #eaeaea 100%);
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(1%, #fff),
color-stop(100%, #eaeaea)
);
background: -webkit-linear-gradient(top, #fff 1%, #eaeaea 100%);
background: -o-linear-gradient(top, #fff 1%, #eaeaea 100%);
background: -ms-linear-gradient(top, #fff 1%, #eaeaea 100%);
background: linear-gradient(top, #fff 1%, #eaeaea 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff',endColorstr='#eaeaea',GradientType=0 );
box-shadow: 0 0 0 1px rgba(155, 155, 155, 0.3),
1px 0 0 rgba(255, 255, 255, 0.9) inset, 0 2px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
height: 30px;
line-height: 20px;
}

.ac-container {
width: 100%;
margin: 10px auto 30px auto;
text-align: left;
width: 100%;
margin: 10px auto 30px auto;
text-align: left;
}

/*
Zmiana koloru tła po najechaniu przez kursor myszy na znacznik label,
który znajduje się wewnątrze elementu o klasie .ac-container
(0, 2, 1)
*/
?? {
background: #fff;
.ac-container label:hover {
background: #fff;
}

/*
Expand All @@ -61,26 +68,26 @@ i ten brat musi posiadać przodka o klasie .ac-container
to samo co w 1) ale z efektem najechania kursorem na label
(0, 3, 2)
*/
??,
?? {
background: #f1f2f3;
color: #666;
text-shadow: 0 1px 1px rgba(255,255,255,0.6);
box-shadow: 0 0 0 1px rgba(155,155,155,0.3),0 2px 2px rgba(0,0,0,0.1);
height: 30px;
line-height: 21px;
font-size: 13px;
.ac-container input:checked + label,
.ac-container input:checked + label:hover {
background: #f1f2f3;
color: #666;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
box-shadow: 0 0 0 1px rgba(155, 155, 155, 0.3), 0 2px 2px rgba(0, 0, 0, 0.1);
height: 30px;
line-height: 21px;
font-size: 13px;
}

.ac-container label:hover:after,
.ac-container input:checked + label:hover:after {
content: '';
position: absolute;
width: 24px;
height: 24px;
right: 13px;
top: 7px;
background: transparent url(../images/arrow_down.png) no-repeat center center;
content: "";
position: absolute;
width: 24px;
height: 24px;
right: 13px;
top: 7px;
background: transparent url(../images/arrow_down.png) no-repeat center center;
}

/*
Expand All @@ -89,60 +96,60 @@ którego poprzedni brat jest zaznaczonym inputem (użyj pseudoklasy),
którego przodek to element o klasie .ac-container
(0, 3, 3)
*/
?? {
background-image: url(../images/arrow_up.png);
.ac-container input:checked + label::before:hover {
background-image: url(../images/arrow_up.png);
}

.ac-container input {
display: none;
display: none;
}

.ac-container article {
background: rgba(255,255,255,0.5);
margin-top: -1px;
overflow: hidden;
height: 0;
position: relative;
z-index: 10;
-webkit-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
-moz-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
-o-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
-ms-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
background: rgba(255, 255, 255, 0.5);
margin-top: -1px;
overflow: hidden;
height: 0;
position: relative;
z-index: 10;
-webkit-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-moz-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-o-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-ms-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
}

.ac-container article p {
font-style: normal;
color: #777;
line-height: 23px;
font-size: 10px;
padding: 20px;
text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
font: normal normal 12px 'Open Sans';
font-style: normal;
color: #777;
line-height: 23px;
font-size: 10px;
padding: 20px;
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
font: normal normal 12px "Open Sans";
}

/*
Rodzeństwo o typie article, dla elementu input, który jest zaznaczony (użyj pseudoklasy)
oraz posiada przodka o klasie .ac-container
(0, 2, 2)
*/
?? {
-webkit-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
-moz-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
-o-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
-ms-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
box-shadow: 0 0 0 1px rgba(155,155,155,0.3);
.ac-container input:checked ~ article {
-webkit-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
-moz-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
-o-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
-ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
box-shadow: 0 0 0 1px rgba(155, 155, 155, 0.3);
}

.ac-container input:checked ~ article.ac-small {
height: 140px;
height: 140px;
}

.ac-container input:checked ~ article.ac-medium {
height: 180px;
height: 180px;
}

.ac-container input:checked ~ article.ac-large {
height: 230px;
}
height: 230px;
}
Binary file added 03/fonts/SourceSansPro-Bold.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-It.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-Regular.otf
Binary file not shown.
Loading