Skip to content

Commit b572b35

Browse files
committed
List Item - vice jako klasicka ne-oocss komponenta
1 parent b275954 commit b572b35

File tree

5 files changed

+124
-123
lines changed

5 files changed

+124
-123
lines changed

css/style.css

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ Foot - stara paticka
14651465
Napr. seznamy ubytovatelu, pobytu, last-minute atd.
14661466
14671467
*/
1468-
.list_item {
1468+
.list-item {
14691469
position: relative;
14701470
padding: 9px 0;
14711471
border: 1px solid transparent;
@@ -1474,22 +1474,22 @@ Napr. seznamy ubytovatelu, pobytu, last-minute atd.
14741474
box-sizing: border-box;
14751475
}
14761476
@media only screen and (min-width: 768px) {
1477-
.list_item {
1477+
.list-item {
14781478
float: left;
14791479
width: calc((100% - 42px) / 3);
14801480
height: 352px;
14811481
padding: 18px 9px 9px;
14821482
margin: 0 7px 0 7px;
14831483
}
14841484
}
1485-
.list_item .image {
1485+
.list-item .image {
14861486
position: relative;
14871487
float: left;
14881488
width: 36%;
14891489
margin-right: 4%;
14901490
}
14911491
@media only screen and (min-width: 768px) {
1492-
.list_item .image {
1492+
.list-item .image {
14931493
width: auto;
14941494
float: none;
14951495
height: 165px;
@@ -1499,44 +1499,33 @@ Napr. seznamy ubytovatelu, pobytu, last-minute atd.
14991499
}
15001500
}
15011501
@media only screen and (min-width: 1180px) {
1502-
.list_item .image {
1502+
.list-item .image {
15031503
height: 215px;
15041504
}
15051505
}
1506-
.list_item .image img {
1506+
.list-item .image img {
15071507
max-width: 100%;
15081508
}
1509-
.container .list_item h2 {
1509+
.container .list-item .image h2 {
15101510
font-size: 14px;
15111511
line-height: 18px;
15121512
margin-bottom: 0;
15131513
}
1514-
@media only screen and (min-width: 768px) {
1515-
.list_item .price {
1516-
position: absolute;
1517-
right: 3px;
1518-
top: 150px;
1519-
}
1520-
}
1521-
@media only screen and (min-width: 1180px) {
1522-
.list_item .price {
1523-
top: 200px;
1524-
}
1525-
}
1526-
.list_item .list_item_content {
1514+
.list-item .content {
15271515
float: left;
15281516
width: 60%;
1517+
padding: 0;
15291518
}
15301519
@media only screen and (min-width: 768px) {
1531-
.list_item .list_item_content {
1520+
.list-item .content {
15321521
float: none;
15331522
width: auto;
15341523
}
15351524
}
1536-
.list_item p {
1525+
.list-item .content p {
15371526
margin-bottom: 0;
15381527
}
1539-
.list_item .place em {
1528+
.list-item .content .place em {
15401529
color: #333;
15411530
font-style: normal;
15421531
display: block;
@@ -1545,35 +1534,47 @@ Napr. seznamy ubytovatelu, pobytu, last-minute atd.
15451534
overflow: hidden;
15461535
white-space: nowrap;
15471536
}
1548-
.container .list_item .place a {
1537+
.container .list-item .content .place a {
15491538
color: #333;
15501539
}
1551-
.list_item .date strong {
1540+
.list-item .content .date strong {
15521541
color: #666;
15531542
}
1554-
.list_item.without_border {
1543+
@media only screen and (min-width: 768px) {
1544+
.list-item .content .price {
1545+
position: absolute;
1546+
right: 3px;
1547+
top: 150px;
1548+
}
1549+
}
1550+
@media only screen and (min-width: 1180px) {
1551+
.list-item .content .price {
1552+
top: 200px;
1553+
}
1554+
}
1555+
.list-item.without_border {
15551556
border-bottom: 0;
15561557
}
1557-
.list_item.bordered {
1558+
.list-item.bordered {
15581559
border: 1px solid #ddd;
15591560
}
1560-
.list_item.active,
1561-
.list_item:hover,
1562-
.list_item:focus,
1563-
.list_item:active {
1561+
.list-item.active,
1562+
.list-item:hover,
1563+
.list-item:focus,
1564+
.list-item:active {
15641565
background-color: #eee;
15651566
cursor: pointer;
15661567
color: #333;
15671568
border: 1px solid #ddd;
15681569
}
1569-
.list_item.active h2 a,
1570-
.list_item:hover h2 a,
1571-
.list_item:focus h2 a,
1572-
.list_item:active h2 a {
1570+
.list-item.active h2 a,
1571+
.list-item:hover h2 a,
1572+
.list-item:focus h2 a,
1573+
.list-item:active h2 a {
15731574
color: #075207;
15741575
text-decoration: underline;
15751576
}
1576-
.discount_in_list_item {
1577+
.discount_in_list-item {
15771578
position: absolute;
15781579
bottom: 17px;
15791580
left: 2px;
@@ -1582,37 +1583,37 @@ Napr. seznamy ubytovatelu, pobytu, last-minute atd.
15821583
font-size: 11px;
15831584
line-height: 13px;
15841585
}
1585-
.discount_in_list_item a {
1586+
.discount_in_list-item a {
15861587
display: inline-block;
15871588
padding: 3px;
15881589
background: #efefef;
15891590
color: #444;
15901591
}
15911592
@media only screen and (min-width: 768px) {
1592-
.discount_in_list_item {
1593+
.discount_in_list-item {
15931594
top: 155px;
15941595
right: 12px;
15951596
left: auto;
15961597
max-width: 150px;
15971598
}
1598-
.discount_in_list_item a {
1599+
.discount_in_list-item a {
15991600
font-size: 12px;
16001601
padding: 7px;
16011602
}
16021603
}
1603-
.discount_in_list_item.with_image_icon {
1604+
.discount_in_list-item.with_image_icon {
16041605
padding-left: 3px;
16051606
margin-top: -10px;
16061607
}
1607-
.discount_in_list_item.with_image_icon a {
1608+
.discount_in_list-item.with_image_icon a {
16081609
padding: 0;
16091610
background: transparent;
16101611
}
1611-
.discount_in_list_item.with_image_icon img {
1612+
.discount_in_list-item.with_image_icon img {
16121613
max-height: 40px;
16131614
}
16141615
@media only screen and (min-width: 768px) {
1615-
.discount_in_list_item.with_image_icon img {
1616+
.discount_in_list-item.with_image_icon img {
16161617
max-height: 50px;
16171618
}
16181619
}

0 commit comments

Comments
 (0)