generated from digital-product-jam-2023/template-simple-data-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
116 lines (89 loc) · 1.83 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* !!!!!!!!!!!!!!!!!!!! */
/* START LAYOUT HELPERS */
/* This section is a mini "framework" using flexbox to let you build layouts of boxes!
See how it is used in the HTML. They key part are the .row and .item classes
Remember you can create box layouts within boxes
Also see how the media queries are used to change the size of boxes for different screen sizes */
/* !!!!!!!!!!!!!!!!!!!! */
#container {
width: 100%;
margin: 0 auto;
}
.row {
display: flex;
flex-wrap: wrap;
}
.item {
box-sizing: border-box;
flex-grow: 0;
flex-basis: 100%;
border: 1px dotted orangered;
}
.content {
flex-grow: 0;
flex-basis: 100%;
box-sizing: border-box;
margin: 5px;
padding: 10px;
border: 1px dotted blueviolet;
}
.item.meta {
flex-basis: 50%;
}
.item.cell {
flex-basis: 25%;
}
/* adjustments for medium screens, like some tablets or landscape on a mobile */
@media (min-width: 576px) {
.item {
flex-basis: 50%;
}
}
/* adjustments for medium-large screens, like some tablets */
@media (min-width: 768px) {
.item {
flex-basis: 33.3333333333333%;
}
}
/* adjustments for large screens, like laptops and desktops */
@media (min-width: 992px) {
#container {
width: 992px;
margin: 0 auto;
}
.item {
flex-basis: 25%;
}
}
/* !!!!!!!!!!!!!!!!!!!! */
/* END LAYOUT HELPERS */
/* !!!!!!!!!!!!!!!!!!!! */
body {
background-color: #f5f5f5;
color: #2d2c2c;
font-family: Arial, Helvetica, sans-serif;
}
p {
color: #494545;
}
.data-record {
border: 1px solid blueviolet;
}
.data-record img {
max-width: 100%;
}
.data-record table {
width: 100%;
}
.data-record table td {
width: 25%;
}
.data-record table thead td {
border-bottom: 2px solid gray;
}
.data-record .item.data-title {
flex-basis: 66.6666666666666667%;
}
.data-record .item.data-image {
flex-basis: 33.33333333333333333%;
}