-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
92 lines (68 loc) · 1.57 KB
/
notes.txt
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
Device Independet Pixels:
ukuran realtime browsers
hardware pixels: ukuran hardware
Device Pixel Ratio of 2
viewport width = hardware pixels / device pixel ratio
<meta name="viewport" content="width=device-width, initial-scale=1"/>
position: relative;
max-width: 100%
tap able elements
min-width: 48px;
min-height: 48px;
prioritize the content from the small devices
https://github.com/google/ios-webkit-debug-proxy
https://www.smashingmagazine.com/2014/09/testing-mobile-emulators-simulators-remote-debugging/
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference#Keyword_index
// links external css
<link rel="stylesheet" media="screen and (min-width: 500px" href="links.css"/>
// internal css
@media screen and (max-width: 500px) {}
@media screen and (min-width: 499px) {}
// grid based system
display: grid;
// flex
display: flex;
flex-wrap: wrap;
order: (number);
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Basic_Concepts_of_Grid_Layout
#Responsive Patterns
>Mostly Fluid
>Layout Shifter
>Column Drop
>Off Canvas
#Responsive Tables
>Hidden Columns { display: none; }
>No More Tables
table, thead, tbody, tr, td, th { display: block; }
thead tr {
position: absolute;
top: -99999px;
left: -99999px;
}
td {
position: relative;
padding-left: 50%;
}
td {
positon: relative;
padding-left: 50%;
}
td:before {
position: absolute;
left: 6px;
content: attr(data-th);
font-weight: bold;
}
>Contained Tables
give the table a div class
{
width: 100%;
overflow-x: auto;
}
CSS Units
>vh
>vw
>vmin
>vmax
#Fonts
>Ideal Measure: 45 - 90 dpl ~65dpl