Files
developtools_ace-js2bundle/ace-loader/test/rich/expected/mediaQuery.js
T
houhaoyu e73398d464 houhaoyu@huawei.com
Signed-off-by: houhaoyu <houhaoyu@huawei.com>
Change-Id: I25cb3ea67d45402dfcc6c7814e2e53ea27eb01e0
2021-11-25 19:30:24 +08:00

98 lines
2.9 KiB
JavaScript

/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{
"@app-component/mediaQuery": {
"_descriptor": {},
"data": {},
"template": {
"type": "div",
"attr": {
"debugLine": "pages/mediaQuery/mediaQuery:1",
"value": "mediaQuery_test"
}
},
"style": {
"@MEDIA": [
{
"condition": "screen and (min-width: 600) and (max-width: 1200)",
".header": {
"width": "100%",
"height": "60px",
"fontSize": "16px",
"alignItems": "center",
"justifyContent": "center"
},
".footer": {
"width": "100%",
"height": "40px",
"alignItems": "center"
}
},
{
"condition": "(device-type: tv)",
".page-title-wrap": {
"paddingTop": "50px",
"paddingBottom": "80px",
"justifyContent": "center"
},
".page-title": {
"paddingTop": "30px",
"paddingBottom": "30px",
"paddingLeft": "40px",
"paddingRight": "40px",
"borderTopColor": "#bbbbbb",
"borderRightColor": "#bbbbbb",
"borderBottomColor": "#bbbbbb",
"borderLeftColor": "#bbbbbb",
"color": "#bbbbbb",
"borderBottomWidth": "2px"
},
".btn": {
"height": "80px",
"textAlign": "center",
"borderBottomLeftRadius": "5px",
"borderBottomRightRadius": "5px",
"borderTopLeftRadius": "5px",
"borderTopRightRadius": "5px",
"marginRight": "60px",
"marginLeft": "60px",
"marginBottom": "50px",
"color": "#ffffff",
"fontSize": "30px",
"backgroundColor": "#0faeff"
},
".container": {
"width": "500px",
"height": "500px",
"backgroundColor": "#fa8072"
},
".title": {
"fontSize": "16px",
"color": "#333333",
"alignItems": "center"
},
".button": {
"paddingTop": "50px",
"fontSize": "16px",
"color": "#666666",
"alignItems": "center",
"justifyContent": "center"
}
}
]
}
}
}