├── README.md ├── .editorconfig ├── bower.json ├── .gitignore ├── _objects.flag.scss └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | objects.flag 2 | ============ 3 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | charset = utf-8 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "spacelab-objects.flag", 3 | "version": "0.1.0", 4 | "authors": [ 5 | "Axel Salder", 6 | "Daniel Blomeyer" 7 | ], 8 | "description": "here be a description", 9 | "main": "_objects.flag.scss", 10 | "keywords": [ 11 | "spacelab", 12 | "css" 13 | ], 14 | "license": "MIT", 15 | "homepage": "https://github.com/spacelab/objects.flag", 16 | "private": true, 17 | "ignore": [ 18 | "**/.*", 19 | "node_modules", 20 | "bower_components", 21 | "test", 22 | "tests" 23 | ], 24 | "dependencies": { 25 | "spacelab-objects.clearfix": "spacelab/objects.clearfix" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | # Commenting this out is preferred by some people, see 24 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- 25 | node_modules 26 | 27 | # Users Environment Variables 28 | .lock-wscript 29 | -------------------------------------------------------------------------------- /_objects.flag.scss: -------------------------------------------------------------------------------- 1 | /* 2 | Example: 3 | 4 |
5 |
6 |
7 |
8 | */ 9 | 10 | %flag, 11 | .flag { 12 | display: table; 13 | width: 100%; 14 | } 15 | 16 | %flag__image, 17 | .flag__image, 18 | %flag__body, 19 | .flag__body { 20 | display: table-cell; 21 | vertical-align: middle; 22 | 23 | .flag--top & { 24 | vertical-align: top; 25 | } 26 | 27 | .flag--bottom & { 28 | vertical-align: bottom; 29 | } 30 | 31 | } 32 | 33 | %flag__image, 34 | .flag__image { 35 | 36 | > img { 37 | display: block; 38 | max-width: none; 39 | } 40 | } 41 | 42 | %flag__body, 43 | .flag__body { 44 | width: 100%; 45 | } 46 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 spacelab 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | --------------------------------------------------------------------------------