/
util.css
executable file
·157 lines (128 loc) · 2.63 KB
/
util.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/* Feel free to add any useful code */
/* This will help you scroll just the content of your app. Eg:
<header class="fixed">
...
<article class="scrollable header">
*/
html {
height: 100%;
font-size: 62.5%; /* Setting base font to 10px and define all your units in rem. 1rem = 10px */
}
body {
margin: 0;
height: 100%;
display: block;
overflow: hidden;
}
.hidden {
visibility: hidden;
}
section[role="region"] {
height: 100%;
}
section[role="region"] > header.fixed:first-child {
position: absolute;
width: 100%;
}
.scrollable {
overflow: scroll;
height: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
position: relative;
}
.scrollable.header {
border-top: transparent solid 5rem;
}
/* Setting proper paddings and margins */
section[role="region"] > .content {
padding: 0 3rem 1.5rem 3rem;
background: #fff;
}
section[role="region"] > .content header h2 {
margin: 3rem -3rem 1.5rem -3rem;
}
section[role="region"] > .content header:first-child h2 {
margin-top: 0;
}
/* This should be fixed in lists BB */
section[role="region"] > .content [data-type="list"] {
margin: 0 -3rem;
}
section[role="region"] > .content [data-type="list"] li > p {
margin: 0 1.5rem;
}
section[role="region"] > .content [data-type="list"] li > a {
margin: 0 1.5rem;
}
section[role="region"] > .content [data-type="list"] li > a:after {
left: -1.5rem;
right: -1.5rem;
}
section[role="region"] > .content [data-type="list"] header {
padding: 0.5rem 1.5rem;
}
section[role="region"] > .content [data-type="list"] li > a > aside:not(.pack-end) {
margin-left: -1.5rem;
}
[aria-disabled="true"] {
pointer-events: none;
}
/* Fonts */
h1 { /* Main header */
font-size: 2.5rem;
font-weight: normal;
}
h2 { /* Subheader, Dialog title */
font-size: 1.6rem;
font-weight: normal;
}
p {
font-size: 1.9rem;
font-weight: normal;
line-height: 2.5rem;
}
p.testinfo{
color:#004D91;
}
p.large { /* Dialog body */
font-size: 2.3rem;
font-weight: 300;
line-height: 3rem;
}
p.alt { /* Body medium, Buttons */
font-size: 1.7rem;
font-weight: 500;
line-height: 2.2rem;
}
p.small { /* Status bar */
font-size: 1.5rem;
line-height: 2rem;
}
p.mini { /* Fine print */
font-size: 1.4rem;
line-height: 1.9rem;
}
p.micro { /* App icon label */
font-size: 1.3rem;
line-height: 1.8rem;
}
p.head{
margin-top:0;
padding-top:1.5rem;
font-size: 2.3rem;
font-weight: 300;
line-height: 3rem;
}
ul, ol, li {
list-style: none;
margin: 0;
padding: 0;
font-size: 1.9rem;
font-weight: normal;
line-height: 2.5rem;
}
ul[type="test"] li{
display:inline-block;
}