[IMP] website: media editor doubleclick for video and begin to use snippet builder
[odoo/odoo.git] / addons / website / static / src / css / common.sass
1 @import "compass/css3"
2 @import "compass/css3/user-interface"
3 @import "compass/css3/transition"
4 @import "compass/support"
5
6 //smartphones, iPhone, portrait 480x320 phones
7 $smart_phone: 320px
8 //portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide.*/
9 $small-tablet: 481px
10 //portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones
11 $portrait-tablet: 641px
12 //tablet, landscape iPad, lo-res laptops ands desktops
13 $tablet: 961px
14 //big landscape tablets, laptops, and desktops
15 $desktop: 1025px
16
17 @mixin editor-font
18     font-size: 14px
19     font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace
20     line-height: normal
21
22 @mixin selection()
23     ::-moz-selection
24         @content
25     ::selection
26         @content
27
28 // Lifted from compass-animation
29 // LICENSED UNDER THE MIT LICENSE (MIT)
30 //
31 // Copyright (c) 2012 Eric Meyer
32 //
33 // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
34 //
35 // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
36 //
37 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
38 @mixin set-experimental-support($moz: false, $webkit: false, $ms: false, $o: false, $khtml: false)
39     $experimental-support-for-mozilla: $moz
40     $experimental-support-for-webkit: $webkit
41     $experimental-support-for-microsoft: $ms
42     $experimental-support-for-opera: $o
43     $experimental-support-for-khtml: $khtml
44
45 @mixin with-only-support-for($moz: false, $webkit: false, $ms: false, $o: false, $khtml: false)
46     // Capture the current state
47     $original-moz: $experimental-support-for-mozilla
48     $original-webkit: $experimental-support-for-webkit
49     $original-o: $experimental-support-for-opera
50     $original-ms: $experimental-support-for-microsoft
51     $original-khtml: $experimental-support-for-khtml
52
53     @include set-experimental-support($moz, $webkit, $ms, $o, $khtml)
54     @content
55     @include set-experimental-support($original-moz, $original-webkit, $original-ms, $original-o, $original-khtml)
56
57 @mixin keyframes($name)
58     @-moz-keyframes #{$name}
59         +with-only-support-for($moz: true)
60             @content
61     @-webkit-keyframes #{$name}
62         +with-only-support-for($webkit: true)
63             @content
64     @-o-keyframes #{$name}
65         +with-only-support-for($o: true)
66             @content
67     @keyframes #{$name}
68         +with-only-support-for
69             @content