Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/style/value_selector/value_selector.css
blob: 7184046dafa305f0457f08fe931297a63ba907e1 (plain)
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
158
159
160
161
162
163
164
165
166
167
168
169
170
#value-selector {
  width: 100%;
  height: -moz-calc(100% - 20px);
  top: 20px;
  left: 0;
  position: absolute;
}

#screen.active-statusbar #value-selector {
  height: -moz-calc(100% - 40px);
  top: 40px;
}

#screen:-moz-full-screen-ancestor #value-seletcor,
#screen.fullscreen-app #value-selector {
  height: 100%;
  top: 0;
}

#select-options-buttons,
#time-picker-buttons,
#spin-date-picker-buttons {
  /* from building blocks, core.css - menu:not([type="toolbar"]*/
  white-space: nowrap;
  margin: 0;
  padding: 0;
  border-top: solid 1px rgba(255, 255, 255, 0.1);
  background: #2d2d2d url(../themes/default/images/ui/pattern.png) repeat left top;
  display: block;
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  font-size: 0; /* to get rid of the spacing between 2 buttons */
}

#value-selector button:first-child {
    margin-right: 0rem;
}

#select-options-buttons button,
#time-picker-buttons button,
#spin-date-picker-buttons button{
  /* from building block - other/buttons/style.css*/
  width: calc((100% - 4.5rem) / 2);  /*overridden for 2 buttons*/

  height: 3.8rem;
  margin: 1.5rem;
  padding: 0 1.5rem;
  display: inline-block;
  vertical-align: middle;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background: #fafafa url(../themes/default/images/ui/default.png) repeat-x left bottom;
  border: 1px solid #9f9f9f;
  border-radius: 0.3rem;
  font-size: 1.6rem;
  font-family: 'MozTT', Sans-serif;
  font-weight: 600;
  line-height: 3.8rem;
  color: #333;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
  text-decoration: none;
  outline: none;
}

/* Affirmative */
#value-selector button.affirmative {
  background-image: url(../themes/default/images/ui/affirmative.png);
  background-color: #00caf2;
  border-color: #00acce;
}

#select-options-buttons button.full {
    width: calc(100% - 4.5rem);
    margin: 1.5rem;
}

/*active class used to complement the "return false" in onmousedown effect */
#value-selector button.active,
button.affirmative.active {
    border-color: #008aaa;
    background: #008aaa;
    color: #333;
}

#value-selector-container li > label {
    pointer-events: none;
}

#value-selector-container li.active label span {
    background: none repeat scroll 0 0 #00ABCC;
    color: #FFFFFF !important;
}

#time-picker-popup,
#spin-date-picker-popup {
  top: 0px;
  padding: 0 0 7rem;  /*remove the top padding*/

  /* from building blocks, core.css - [role=dialog]*/
  background: url(../themes/default/images/ui/pattern.png) repeat left top, url(../themes/default/images/ui/gradient.png) no-repeat left top;
  background-size: auto auto, 100% 100%;
  overflow: hidden;
  position: absolute;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  white-space: nowrap;
  padding: 0 0 7rem;  /*remove the top padding*/
  font-family: "MozTT", Sans-serif;
  color: #fff;
}

#time-picker-popup h3,
#spin-date-picker-popup h3 {
    font-family: 'MozTT', Sans-serif;
    font-weight: normal;
    font-size: 1.6rem;
    line-height: 1em;
    color: #fff;
    border-bottom: 0.1rem solid #686868;
    margin: 0 0 1.5rem;
    padding-bottom: 1.5rem;
}

.table-wrapper {
  display: table;
  width:  100%;
  height: 100%;
}

.table-cell {
  display: table-cell;
  vertical-align: middle;
  width:  100%;
  height: 100%;
}

/* The following rules is to override the styles defined in building blocks of value selector */
#value-selector li {
  height: auto;
  padding-bottom: 0px;
  line-height: 3.9rem;
}

#value-selector li span {
  padding: 1rem 1.5rem;
  line-height: 4rem;
  word-wrap: break-word;
}

#value-selector li input:checked + span,
#value-selector li[aria-checked="true"] span {
  padding-right: 2.6rem;
  margin-right: 1.2rem;
  background: transparent url("../bb/value_selector/images/icons/checked.png") no-repeat 100% 50%;
}

html[dir="rtl"] #value-selector li input:checked + span,
html[dir="rtl"] #value-selector li[aria-checked="true"] span {
  padding-left: 2.6rem;
  margin-left: 1.2rem;
}