| /* | |
| * Copyright 2008 Google Inc. | |
| * | |
| * 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. | |
| */ | |
| @def rawInt 1; | |
| @def rawFloat 1.5; | |
| @def rawDouble 1.5; | |
| @def percentInt 50%; | |
| @def percentFloat 50.5%; | |
| @def lengthInt 50px; | |
| @def lengthFloat 1.5px; | |
| @def lengthString 100px; | |
| @def colorString #f00; | |
| @def multiValueBorderDef 1px solid rgba(0,0,0,0.2); | |
| /* Uncomment this, and you should get an error about a @def shadowing a name */ | |
| /* | |
| .colorString { | |
| background-color: #f00; | |
| } | |
| */ | |
| /* Shouldn't get an error here because the method to access the style name | |
| * is annotated with @ClassName() | |
| */ | |
| @def overrideInt 10px; | |
| .overrideInt { | |
| width: 10px; | |
| } |