]> git.proxmox.com Git - extjs.git/blame - extjs/examples/modern/touchtomatoes/sass/src/view/MoviesListView.scss
add extjs 6.0.1 sources
[extjs.git] / extjs / examples / modern / touchtomatoes / sass / src / view / MoviesListView.scss
CommitLineData
6527f429
DM
1.x-toolbar {\r
2 background-color: #f7f7f7;\r
3\r
4 .x-dock .x-button .x-button-icon {\r
5 @include st-box-flex(0);\r
6 height: 1.7em;\r
7 }\r
8\r
9 .x-button .x-button-icon:before {\r
10 line-height: 1.5em;\r
11 }\r
12 .x-title{\r
13 text-align: center;\r
14 font-weight: 300;\r
15 color: #222;\r
16 }\r
17\r
18\r
19 .x-field-textarea,\r
20 .x-field-text,\r
21 .x-field-number,\r
22 .x-field-search {\r
23 .x-component-outer {\r
24 @include box-shadow($toolbar-input-border-color 0 .1em 0 inset, $toolbar-input-border-color 0 -.1em 0 inset, $toolbar-input-border-color .1em 0 0 inset, $toolbar-input-border-color -.1em 0 0 inset, rgba(#000, .25) 0 .15em .4em inset);\r
25 }\r
26 }\r
27}\r
28\r
29.moviesearch .x-form {\r
30 min-width: 50%;\r
31 .x-field-search {\r
32 width:100%;\r
33\r
34 input {\r
35 padding-left: 15px\r
36 }\r
37 }\r
38}\r
39\r
40.movie .img {\r
41 background-size: contain;\r
42 background-repeat: no-repeat;\r
43}\r
44\r
45.grid .x-list-item {\r
46 display: inline-block;\r
47 width: 50%;\r
48 border: none !important;\r
49 @include perspective(300px);\r
50\r
51 body.x-ios &.x-item-pressed {\r
52 .movie {\r
53 @include transform(translateZ(20px));\r
54 }\r
55 }\r
56\r
57 @include query-small {\r
58 width: 50%;\r
59 }\r
60\r
61 @include query-small-landscape {\r
62 width: 33%;\r
63 }\r
64\r
65 @include query-medium {\r
66 width:33%;\r
67 }\r
68\r
69 @include query-large {\r
70 width: 25%\r
71 }\r
72\r
73 .movie {\r
74 @include st-box;\r
75 @include st-box-orient(vertical);\r
76 @include st-box-align(center);\r
77 @include transition-duration(.3s);\r
78\r
79 $width: (320/2) - ($list-item-padding *2);\r
80 $height: $width * (266/180);\r
81\r
82 .title {\r
83 white-space: nowrap;\r
84 width: $width;\r
85 overflow: hidden;\r
86 text-overflow: ellipsis;\r
87 font-size: .75em;\r
88 text-align: center;\r
89 padding-bottom: 5px;\r
90 }\r
91\r
92\r
93 .img {;\r
94 background-color: black;\r
95 width: $width;\r
96 height: $height;\r
97 background-position: 50%;\r
98 background-size: cover;\r
99 @include box-shadow(10px 10px 38px -8px black);\r
100 }\r
101 .ratings {\r
102 width: $width;\r
103 @include st-box;\r
104 @include st-box-orient(horizontal);\r
105 //@include box-shadow(0px 7px 33px -13px black);\r
106 .critics {\r
107 border-left: 1px solid lightgray;\r
108 text-align: right;\r
109 }\r
110 .user:not(.unknown) {\r
111 //@include inline-icon("user");\r
112 }\r
113\r
114 .critics:not(.unknown) {\r
115 //@include inline-icon("pencil");\r
116 }\r
117 .user, .critics {\r
118 position: relative;\r
119 &:not(.unknown):before {\r
120 text-align: left;\r
121 font-size: 0.75em;\r
122 line-height: 2.8em;\r
123 margin-right: .5em;\r
124 color: rgba(0,0,0,.2);\r
125 }\r
126 @include st-box;\r
127 @include st-box-pack(center);\r
128 @include st-box-align(center);\r
129 padding: 5px;\r
130 background-color: rgb(211, 77, 77);\r
131 width: 50%;\r
132 }\r
133 .user.success, .critics.success {\r
134 background-color: rgb(94, 177, 94);\r
135 }\r
136\r
137 .user.unknown, .critics.unknown{\r
138 background-color: #ddd;\r
139 }\r
140 }\r
141 }\r
142}