Newer
Older
Christophe Matthieu
committed
@import "compass/css3"
@import "compass/css3/user-interface"
@import "compass/css3/transition"
/* ---- SNIPPET EDITOR ---- {{{ */
#oe_snippets
position: fixed
Christophe Matthieu
committed
left: 0px
right: 0px
Christophe Matthieu
committed
// top property is set programmatically
background: rgb(40,40,40)
+box-shadow(0px 10px 10px -10px black inset)
z-index: 1010
overflow: hidden
&:hover
height: auto
.scroll
white-space: nowrap
overflow-y: none
.nav
display: inline-block
border-bottom: none !important
vertical-align: middle
min-width: 120px
> li
display: block
float: none
&.active
background: black !important
> a
padding: 2px 10px !important
width: 100%
display: block
border: 0
z-index: 1
.pill-content
border: 0
.tab-content
display: inline-block
white-space: nowrap
background: black
Christophe Matthieu
committed
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
> div
background: rgb(0,0,0)
label
width: 44px
color: #fff
padding-left: 10px
div
width: 100px
text-align: center
@include transform( translate(-39px, 44px) , rotate(-90deg) )
@include transform-origin(50% 50%)
.oe_snippet
float: left
vertical-align: top
width: 93px
margin-left: 1px
margin-top: 0px
position: relative
overflow: hidden
+user-select(none)
cursor: move
.oe_snippet_thumbnail
text-align: center
height: 100%
background: transparent
color: white
position: relative
&:hover
.oe_snippet_thumbnail_img
@include transform( scale(.95,.95))
.oe_snippet_thumbnail_title
font-size: 12px
display: block
+text-shadow(0 0 2px rgb(0,0,0))
.oe_snippet_thumbnail_img
height: 74px
Christophe Matthieu
committed
width: 92px
background-size: cover
Christophe Matthieu
committed
@include transform( scale(1,1))
span, div
line-height: 18px
& > :not(.oe_snippet_thumbnail)
display: none !important
&.disable
.oe_snippet_thumbnail
background-color: rgba(255, 0, 0, 0.75)
.oe_snippet_thumbnail_img
opacity: 0.8
Christophe Matthieu
committed
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#oe_snippets .oe_snippet_thumbnail
@include background(#747474, radial-gradient(rgba(0,0,0,0.25),rgba(0,0,0,0.4)))
// }}}}
/* ---- SNIPPETS DROP ZONES ---- {{{ */
.oe_drop_zone.oe_insert
display: block
height: 48px
margin: 0px
margin-top: -4px
margin-bottom: -44px
@include transition(margin 250ms linear)
width: 100%
position: absolute
z-index: 1000
&:not(.oe_vertical):before
content: ""
display: block
border-top: dashed 2px rgba(209, 178, 255, 0.72)
position: relative
top: 0px
&.oe_hover:before
border-top: dashed 2px rgba(116, 255, 161, 0.72)
&.oe_vertical
width: 48px
float: left
position: relative
margin: 0px -24px !important
&.oe_overlay
+border-radius(3px)
//@include background-image( repeating-linear-gradient(45deg, rgba(255,255,255,.1) ,rgba(255,255,255,.1) 35px, rgba(0,0,0,.1) 35px, rgba(0,0,0,.1) 75px))
//background-size: 100px 100px
background: rgba(153, 0, 255,.5)
.oe_drop_zone, .oe_drop_zone_style
border: none
//@include background-image( repeating-linear-gradient(45deg, rgba(255,255,255,.1) ,rgba(255,255,255,.1) 35px, rgba(0,0,0,.1) 35px, rgba(0,0,0,.1) 75px))
//background-size: 100px 100px
background: rgba(153, 0, 255, .3)
+border-radius(4px)
&.oe_hover
background: rgba(0, 255, 133, .3)
z-index: 1001
.oe_drop_zone_style
color: white
height: 48px
margin-bottom: 32px
padding-top: 12px
// }}}
/* ---- SNIPPET MANIPULATOR ---- {{{ */
.resize_editor_busy
background-color: rgba(0,0,0,0.3)
Christophe Matthieu
committed
Christophe Matthieu
committed
.oe_overlay
display: none
Christophe Matthieu
committed
height: 0
Christophe Matthieu
committed
position: absolute
background: transparent
Christophe Matthieu
committed
//@include background-image( repeating-linear-gradient(45deg, rgba(255,255,255,.02) ,rgba(255,255,255,.02) 35px, rgba(0,0,0,.02) 35px, rgba(0,0,0,.02) 75px))
+border-radius(3px)
@include transition(opacity 100ms linear)
+box-sizing(border-box)
&.oe_active
display: block
.oe_handle
display: block !important
position: absolute
top: 50%
left: 50%
+box-sizing(border-box)
width: 16px
height: 16px
margin: -2px
Christophe Matthieu
committed
> div
z-index: 1
position: absolute
border-style: dashed
border-width: 1px
border-color: #666666
+box-shadow(0px 0px 0px 1px rgba(255,255,255,0.5), 0px 0px 0px 1px rgba(255,255,255,0.5) inset)
Christophe Matthieu
committed
&.e:before, &.w:before, &.s:before, &.n:before, &.size .oe_handle_button
Christophe Matthieu
committed
z-index: 2
Christophe Matthieu
committed
position: relative
top: 50%
left: 50%
display: block
background: rgba(255, 255, 255, 1)
border: solid 1px rgba(0, 0, 0, .2)
+border-radius(5px)
width: 18px
height: 18px
margin: -9px
padding-left: 1px
font-size: 14px
line-height: 14px
font-family: FontAwesome
color: rgba(0,0,0,.5)
@include transition(background 100ms linear)
&.e, &.w, &.s, &.n
&:hover:before
background: rgba(0, 0, 0, .5)
color: #fff
+box-shadow(0 0 5px 3px rgba(255,255,255,.7))
Christophe Matthieu
committed
&.e, &.w
Christophe Matthieu
committed
top: 4px
height: 100%
Christophe Matthieu
committed
&:before
content: "\f0d9-\f0da"
line-height: 16px
Christophe Matthieu
committed
> div
width: 0
height: 100%
top: 2px
left: 8px
Christophe Matthieu
committed
&.e
left: auto
right: -6px
cursor: w-resize
Christophe Matthieu
committed
&.w
left: -6px
cursor: e-resize
&.s, &.n
Christophe Matthieu
committed
left: 2px
width: 100%
Christophe Matthieu
committed
&:before
Christophe Matthieu
committed
content: "\f07d"
text-align: center
padding: 1px
Christophe Matthieu
committed
> div
width: 100%
height: 0
top: 7px
left: 1px
Christophe Matthieu
committed
&.s
top: auto
cursor: n-resize
Christophe Matthieu
committed
&.n
cursor: s-resize
Christophe Matthieu
committed
> div
top: 5px
Christophe Matthieu
committed
&.size
Christophe Matthieu
committed
z-index: 3
Christophe Matthieu
committed
top: auto
Christophe Matthieu
committed
left: 50%
Christophe Matthieu
committed
bottom: -6px
Christophe Matthieu
committed
.oe_handle_button
position: relative
Christophe Matthieu
committed
z-index: 3
Christophe Matthieu
committed
text-align: center
margin-left: -52px
Christophe Matthieu
committed
margin-top: -10px
Christophe Matthieu
committed
left: 0px
Christophe Matthieu
committed
&:hover
background: rgba(30, 30, 30, .8)
color: #fff
+box-shadow(0 0 5px 3px rgba(255,255,255,.7))
Christophe Matthieu
committed
.size
position: absolute
Christophe Matthieu
committed
width: 64px
cursor: row-resize
top: 9px
margin-left: 52px
padding: 0 5px
Christophe Matthieu
committed
.auto_size
position: absolute
Christophe Matthieu
committed
cursor: pointer
&.readonly
cursor: auto !important
&:before, &.size
display: none !important
Christophe Matthieu
committed
.icon.btn
display: inline-block
.oe_overlay_options
position: absolute
Christophe Matthieu
committed
left: 50% !important
Christophe Matthieu
committed
text-align: center
Christophe Matthieu
committed
z-index: 1002
Christophe Matthieu
committed
> .btn-group
left: -50%
Christophe Matthieu
committed
white-space: nowrap
> a
cursor: pointer
display: inline-block
float: none
margin: 0 -3px
Christophe Matthieu
committed
.btn, a
cursor: pointer
.dropdown
display: inline-block
.dropdown-menu
text-align: left
min-width: 180px
.dropdown-menu select,.dropdown-menu input
display: block
Christophe Matthieu
committed
&.block-w-left .w:before
content: "\F061" !important
&.block-w-right .w:before
content: "\F060" !important
Christophe Matthieu
committed
&.block-w-left.block-w-right .w
display: none !important
Christophe Matthieu
committed
&.block-e-left .e:before
content: "\F061" !important
&.block-e-right .e:before
content: "\F060" !important
Christophe Matthieu
committed
&.block-e-left.block-e-right .e
display: none !important
Christophe Matthieu
committed
&.block-s-top .s:before
content: "\F063" !important
&.block-s-bottom .s:before
content: "\f062" !important
&.block-n-top .n:before
content: "\F063" !important
&.block-n-bottom .n:before
content: "\f062" !important
Christophe Matthieu
committed
Christophe Matthieu
committed
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
.s-resize-important, .s-resize-important *
cursor: s-resize !important
.n-resize-important, .n-resize-important *
cursor: n-resize !important
.e-resize-important, .e-resize-important *
cursor: e-resize !important
.w-resize-important, .w-resize-important *
cursor: w-resize !important
.move-important, .move-important *
cursor: move !important
// }}}
/* add CSS for bootstrap dropdown multi level */
.dropdown-submenu
position: relative
z-index: 1000
.dropdown-submenu
&>.dropdown-menu
top: 0
left: 100%
margin-top: -6px
margin-left: -1px
-webkit-border-radius: 0 6px 6px 6px
-moz-border-radius: 0 6px 6px 6px
border-radius: 0 6px 6px 6px
&:hover
&>.dropdown-menu
display: block
&>a:after
border-left-color: #ffffff
&>a:after
display: block
content: " "
float: right
width: 0
height: 0
border-color: transparent
border-style: solid
border-width: 5px 0 5px 5px
border-left-color: #cccccc
margin-top: 5px
margin-right: -10px
&.pull-left
float: none
&>.dropdown-menu
left: -100%
margin-left: 10px
-webkit-border-radius: 6px 0 6px 6px
-moz-border-radius: 6px 0 6px 6px
border-radius: 6px 0 6px 6px
.oe_snippet_list
width: auto
white-space: nowrap
margin-left: 20px
.oe_snippet_editor
position: fixed
z-index: 1000
bottom: 0
left: 0
right: 0
height: 214px
background: rgb(160,160,160)
box-shadow: 0 1px 3px rgb(100,100,100) inset
.oe_snippet
box-sizing: border-box
display: inline-block
width: 220px
height: 160px
border-radius: 3px
background: white
margin: 20px 20px 20px 0
cursor: pointer
border: 2px solid transparent
box-shadow: 0 1px 3px rgb(100,100,100)
position: relative
top: 0
overflow: hidden
vertical-align: top
user-select: none
white-space: normal
&:after
content: attr(name)
position: absolute
bottom: 0px
left: 0px
right: 0px
background: rgba(255,255,255,0.8)
text-align: center
color: black
padding: 8px
&.oe_selected, &.oe_active
border: 2px solid rgb(151, 137, 255)
box-shadow: 0px 3px 17px rgba(99, 53, 150, 0.59)
& > *
margin-top: 16px
line-height: 1em
zoom: 0.6
& > .container
margin-top: 15px
zoom: 0.17
line-height: 0.999em
line-height: 1em
& > .row
margin-top: 0px
zoom: 0.23
line-height: 0.999em
& > .span6
margin-top: 18px
zoom: 0.34
& > .span12
margin-top: 16px
zoom: 0.23
& > p
position: absolute
top: 0
right: 0
left: 0
bottom: 0
font-size: 20px
padding: 16px
zoom: 1
margin: 0px
&.oe_new
background: gray
box-shadow: 0px 1px 3px rgb(90,90,90) inset
border: 0px
&.oe_selected, &.oe_active
box-shadow: 0px 2px 0px 0px rgb(151,137,255) inset, 0px 3px 17px rgba(99, 53, 150, 0.59) inset
& > *
zoom: 1
margin: 0
line-height: 160px
text-align: center
color: white
font-size: 48px
&:after
position: absolute
left: 0px
right: 0px
top: 0px
bottom: 0px
background: transparent
color: white
text-shadow: 0px 1px 3px black
line-height: 160px
padding: 0px
.oe_snippet_drop
position: relative
border: 2px dashed rgb(174, 52, 255)
background: rgba(147, 52, 255, 0.1)
min-height: 28px
margin: -16px auto
border-radius: 5px
max-width: 50%
&.oe_accepting
border: 2px dashed rgb(52, 255, 166)
background: rgba(52, 255, 190, 0.1)
#website-top-edit
li.oe_snippet_editorbar
padding: 1px 8px 2px
font: normal normal normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif
float: left
margin-top: 6px
border: 1px solid #a6a6a6
border-bottom-color: #979797
background: #eeeeee
border-radius: 3px
& > *
display: inline-block
height: 22px
padding: 4px 6px
outline: 0
border: 0
a.button .icon
cursor: inherit
background-repeat: no-repeat
margin-top: 1px
width: 16px
height: 16px
display: inline-block
Christophe Matthieu
committed
/* ---- COLOR-PICKER ---- {{{ */
Christophe Matthieu
committed
Christophe Matthieu
committed
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
.colorpicker
margin: 0 auto
background: transparent
border: 0
td
padding: 0
background: transparent
> *
width: 16px
height: 16px
border-radius: 2px
margin: 3px
padding: 0
border-width: 1px
display: block
.only-text
display: none
.automatic-color
background: #fff
border-left: 7px solid #f33
border-top: 7px solid #0e0
border-right: 8px solid #33f
border-bottom: 8px solid #fe0
margin: 4px 3px 3px 3px
width: 0
height: 0
.cke_panel_container table.colorpicker
tr:first-child td
padding-top: 6px
tr:last-child td
padding-bottom: 6px
Christophe Matthieu
committed
Christophe Matthieu
committed
// }}}
Christophe Matthieu
committed
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
/* ---- Table Snippet ---- {{{ */
.table_desc
margin: 0 0 20px 0
width: 100%
word-break: break-all
border: 1px solid #dddddd
.table_heading
background-color: #f5f5f5
border: 1px solid #dddddd
color: #666666
font-size: 14px
padding: 4px
table.table_desc tr td
text-align: left
padding: 5px
font-size: 13px
&:first-child
width: 25%
font-weight: bold
border-bottom: 1px solid #c9c9c9
border-right: 1px solid #c9c9c9
border-left: none
&:last-child
border-bottom: 1px solid #c9c9c9
// }}}
Christophe Matthieu
committed
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
/* ---- thumbnail ---- {{{ */
.oe_snippet
&.o_block_banner .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_banner.png')
&.o_block_text_image .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_text_image.png')
&.o_block_image_text .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_image_text.png')
&.o_block_jumbotron .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_jumbotron.png')
&.o_block_text_block .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_text_block.png')
&.o_block_title .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_title.png')
&.o_block_features .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_features.png')
&.o_block_big_picture .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_big_picture.png')
&.o_block_three_columns .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_three_columns.png')
&.o_block_well .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_well.png')
&.o_block_quote .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_quote.png')
&.o_block_panel .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_panel.png')
&.o_block_separator .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_separator.png')
&.o_block_table .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_table.png')
Christophe Matthieu
committed
&.o_block_button .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_button.png')
&.o_block_image_gallery .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_image_gallery.png')
&.o_block_comparison .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_comparison.png')
&.o_block_button .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_button.png')
&.o_block_faq .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_faq.png')
&.o_block_references .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_references.png')
&.o_block_quotes_slider .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_quotes_slider.png')
&.o_block_features .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_features.png')
&.o_block_parallax .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_parallax.png')
&.o_block_quotes_slider .oe_snippet_thumbnail_img
background-image: url('/website/static/src/img/blocks/block_quotes_slider.png')
// }}}