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
204 changes: 204 additions & 0 deletions src/015-flex/example/example.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,208 @@

.trash{
color: black;
}

.page-content {
padding: 0;
}

.main-content::before {
content: '';
display: block;
position: relative;
width: 100%;
height: 300px;
background: url(../solved/css/images/image.jpg) no-repeat center -50% fixed;
background-size: 100% 100%;
z-index: -1;
}

.card-wrapper {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
max-width: 1200px;
width: 100%;
margin: -50px auto 0;
}

.card {
width: 350px;
border-radius: 5px;
border: 2px solid #DDDDDD;
margin-bottom: 50px;
cursor: pointer;
}

.card img {
transition: all 0.5s;
}

.card:hover img {
transform: scale(1.2);
}

.card p {
color: #787878;
padding: 10px;
line-height: 1.3em;
}

.img-frame {
width: 100%;
overflow: hidden;
}

.info {
border-top: 2px solid #DDDDDD;
display: flex;
justify-content: space-between;
padding: 10px 10px 5px 10px;
}

.info ul, .info .button {
display: inline-block;
}

.info ul li {
display: inline-block;
}

.info ul li:not(:last-child):after {
content: ',';
color: #AAAAAA;
}

.info ul a {
text-decoration: none;
color: #AAAAAA;
}

.info ul a:hover {
color: #888888;
}

.info .button {
text-decoration: none;
display: inline-block;
padding: 10px 5px 0;
transition: all 1s;
}

.info .button:hover {
background-color: #eee;
}

.info > .button, .info > ul {
align-self: baseline;
}

footer {
padding-top: 30px;
padding-bottom: 30px;
background-color: #9370DB;
font-size: 0.8em;
font-family: sans-serif;
}

footer .content {
display: none;
}

footer span.footer-title {
padding: 40px 50px;
}

footer .content {
padding-left: 50px;
padding-right: 80px;
}

footer span.footer-title {
cursor: pointer;
position: relative;
width: 100%;
display: block;
color: #FFFFFF;
box-sizing: border-box;
text-align: center;
font-size: 1.1em;
}

.content ul {
max-width: 350px;
}

.content .day {
width: 70%;
}

.content .hours {
width: 30%;
min-width: 110px;
}

.content p {
color: #FFFFFF;
line-height: 1.5em;
}

.content .icons, .content table {
color: #FFFFFF;
width: 100%;
}

.content td:first-child {
padding-right: 20px;
}

.content td {
padding-bottom: 10PX;
padding-top: 10PX;
font-weight: lighter;
}

.content tr {
border-bottom: 1px solid rgba(255,255,255,0.2);

}

.content li {
display: inline-block;
margin-bottom: 5px;
}

@media (min-width: 769px) {
footer {
display: flex;
flex-wrap: wrap;
padding: 30px 10px;
}

footer span.footer-title {
padding: 0 0 40px;
text-align: left;
}

footer span.footer-title::after {
display: none;
}

footer .content {
display: block;
padding-left: 0;
padding-right: 40px;
margin-bottom: 50px;
}

footer .footer-block {
width: 50%;
}
}

@media (min-width: 1200px) {
footer .footer-block {
width: 25%;
}
}
Loading