-
Notifications
You must be signed in to change notification settings - Fork 13.5k
/
Copy path_platform.scss
150 lines (122 loc) · 2.87 KB
/
_platform.scss
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
/**
* Platform
* --------------------------------------------------
* Platform specific tweaks
*/
/**
* Apply roboto font
*/
.roboto {
font-family: "Roboto", $font-family-base;
input {
font-family: "Roboto", $font-family-base;
}
}
/*
.platform-android {
.bar {
padding: 0;
line-height: 40px;
.button {
line-height: 40px;
}
.button-icon:before {
font-size: 24px;
}
}
.back-button {
&.button-icon:before {
line-height: 40px;
}
margin-left: -3px;
padding: 0px 2px !important;
&.ion-android-arrow-back:before {
font-size: 12px;
}
&.back-button.active,
&.back-button.activated {
background-color: rgba(0,0,0,0.1);
}
}
.item-divider {
background: none;
border-top-width: 0;
border-bottom-width: 2px;
text-transform: uppercase;
margin-top: 10px;
font-size: 14px;
}
.item {
border-left-width: 0;
border-right-width: 0;
}
.item-divider ~ .item:not(.item-divider) {
border-bottom-width: 0;
}
.back-button:not(.ng-hide) + .left-buttons + .title {
// Don't allow normal titles in this mode
display: none;
}
.bar .title {
text-align: left;
font-weight: normal;
}
font-family: 'Roboto';
h1, h2, h3, h4, h5 {
font-family: 'Roboto', $font-family-base;
}
.tab-item {
font-family: 'Roboto', $font-family-base;
}
input, button, select, textarea {
font-family: 'Roboto', $font-family-base;
}
*/
//}
.platform-ios.platform-cordova {
// iOS7/8 has a status bar which sits on top of the header.
// Bump down everything to make room for it. However, if
// if its in Cordova, and set to fullscreen, then disregard the bump.
&:not(.fullscreen) {
.bar-header:not(.bar-subheader) {
height: $bar-height + $ios-statusbar-height;
&.item-input-inset .item-input-wrapper {
margin-top: 19px !important;
}
> * {
margin-top: $ios-statusbar-height;
}
}
.tabs-top > .tabs,
.tabs.tabs-top {
top: $bar-height + $ios-statusbar-height;
}
.has-header,
.bar-subheader {
top: $bar-height + $ios-statusbar-height;
}
.has-subheader {
top: (2 * $bar-height) + $ios-statusbar-height;
}
.has-tabs-top {
top: $bar-height + $tabs-height + $ios-statusbar-height;
}
.has-header.has-subheader.has-tabs-top {
top: 2 * $bar-height + $tabs-height + $ios-statusbar-height;
}
}
&.status-bar-hide {
// Cordova doesn't adjust the body height correctly, this makes up for it
margin-bottom: 20px;
}
}
@media (orientation:landscape) {
.platform-ios.platform-browser.platform-ipad {
position: fixed; // required for iPad 7 Safari
}
}
.platform-c:not(.enable-transitions) * {
// disable transitions on grade-c devices (Android 2)
-webkit-transition: none !important;
transition: none !important;
}