| 1 | /* |
|---|
| 2 | Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. |
|---|
| 3 | For licensing, see LICENSE.md or http://ckeditor.com/license |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | /* |
|---|
| 7 | richcombo.css (part of editor.css) |
|---|
| 8 | ================================= |
|---|
| 9 | |
|---|
| 10 | This file holds the style set of the "Rich Combo" widget which is commonly used |
|---|
| 11 | in the toolbar. It doesn't, however, styles the panel that is displayed when |
|---|
| 12 | clicking on the combo, which is instead styled by panel.css. |
|---|
| 13 | |
|---|
| 14 | The visual representation of a rich combo widget looks as follows: |
|---|
| 15 | |
|---|
| 16 | +-- .cke_combo----------------------------------------------------------------------+ |
|---|
| 17 | | +-- .cke_combo_label --+ +-- .cke_combo_button ---------------------------------+ | |
|---|
| 18 | | | | | +-- .cke_combo_text --+ +-- .cke_combo_open -------+ | | |
|---|
| 19 | | | | | | | | +-- .cke_combo_arrow --+ | | | |
|---|
| 20 | | | | | | | | | | | | | |
|---|
| 21 | | | | | | | | +----------------------+ | | | |
|---|
| 22 | | | | | +---------------------+ +--------------------------+ | | |
|---|
| 23 | | +----------------------+ +------------------------------------------------------+ | |
|---|
| 24 | +-----------------------------------------------------------------------------------+ |
|---|
| 25 | */ |
|---|
| 26 | |
|---|
| 27 | /* The box that hold the entire combo widget */ |
|---|
| 28 | .cke_combo |
|---|
| 29 | { |
|---|
| 30 | display: inline-block; |
|---|
| 31 | float: left; |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | .cke_rtl .cke_combo |
|---|
| 35 | { |
|---|
| 36 | float: right; |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | /* The label of the combo widget. It is invisible by default, yet |
|---|
| 40 | it's important for semantics and accessibility. */ |
|---|
| 41 | .cke_combo_label |
|---|
| 42 | { |
|---|
| 43 | display: none; |
|---|
| 44 | float: left; |
|---|
| 45 | line-height: 26px; |
|---|
| 46 | vertical-align: top; |
|---|
| 47 | margin-right: 5px; |
|---|
| 48 | filter: alpha(opacity = 70); /* IE */ |
|---|
| 49 | opacity: 0.7; /* Safari, Opera and Mozilla */ |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | .cke_rtl .cke_combo_label |
|---|
| 53 | { |
|---|
| 54 | float: right; |
|---|
| 55 | margin-left: 5px; |
|---|
| 56 | margin-right: 0; |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | /* The container for combo text and arrow. */ |
|---|
| 60 | .cke_combo_button |
|---|
| 61 | { |
|---|
| 62 | display: inline-block; |
|---|
| 63 | -moz-border-radius: 5px; |
|---|
| 64 | -webkit-border-radius: 5px; |
|---|
| 65 | border-radius: 5px; |
|---|
| 66 | background: url(images/sprites.png) 0 -100px repeat-x; /* For backwards compatibility. */ |
|---|
| 67 | float: left; |
|---|
| 68 | padding: 2px 4px 2px 6px; |
|---|
| 69 | height: 22px; |
|---|
| 70 | margin: 0 5px 5px 0; |
|---|
| 71 | |
|---|
| 72 | background: -moz-linear-gradient(bottom, #fff, #d3d3d3 100px); |
|---|
| 73 | background: -webkit-gradient(linear, left bottom, left -100, from(#fff), to(#d3d3d3)); |
|---|
| 74 | } |
|---|
| 75 | |
|---|
| 76 | /* Different states of the container. */ |
|---|
| 77 | .cke_combo_off .cke_combo_button:hover, |
|---|
| 78 | .cke_combo_off .cke_combo_button:focus, |
|---|
| 79 | .cke_combo_off .cke_combo_button:active |
|---|
| 80 | { |
|---|
| 81 | background: #DFF1FF; |
|---|
| 82 | outline: none; |
|---|
| 83 | } |
|---|
| 84 | |
|---|
| 85 | .cke_rtl .cke_combo_button |
|---|
| 86 | { |
|---|
| 87 | float: right; |
|---|
| 88 | margin-left: 5px; |
|---|
| 89 | margin-right: 0; |
|---|
| 90 | } |
|---|
| 91 | |
|---|
| 92 | /* A basic support for the high-contrast mode to enhance the readability. */ |
|---|
| 93 | .cke_hc .cke_combo_button |
|---|
| 94 | { |
|---|
| 95 | border: 1px solid black; |
|---|
| 96 | padding: 1px 3px 1px 3px; |
|---|
| 97 | } |
|---|
| 98 | |
|---|
| 99 | .cke_hc .cke_rtl .cke_combo_button |
|---|
| 100 | { |
|---|
| 101 | border: 1px solid black; |
|---|
| 102 | } |
|---|
| 103 | |
|---|
| 104 | /* The label that shows the current value of the rich combo. |
|---|
| 105 | By default, it holds the name of the property. |
|---|
| 106 | See: .cke_combo_inlinelabel */ |
|---|
| 107 | .cke_combo_text |
|---|
| 108 | { |
|---|
| 109 | line-height: 24px; |
|---|
| 110 | text-overflow: ellipsis; |
|---|
| 111 | overflow: hidden; |
|---|
| 112 | color: #666666; |
|---|
| 113 | float: left; |
|---|
| 114 | cursor: default; |
|---|
| 115 | width: 60px; |
|---|
| 116 | } |
|---|
| 117 | |
|---|
| 118 | .cke_rtl .cke_combo_text |
|---|
| 119 | { |
|---|
| 120 | float: right; |
|---|
| 121 | text-align: right; |
|---|
| 122 | } |
|---|
| 123 | |
|---|
| 124 | /* The label of the combo whose value hasn't been changed (it's default). |
|---|
| 125 | It displays the name of the property the combo is responsible for. */ |
|---|
| 126 | .cke_combo_inlinelabel |
|---|
| 127 | { |
|---|
| 128 | font-style: italic; |
|---|
| 129 | opacity: 0.70; |
|---|
| 130 | } |
|---|
| 131 | |
|---|
| 132 | .cke_combo_off .cke_combo_button:hover .cke_combo_inlinelabel, |
|---|
| 133 | .cke_combo_off .cke_combo_button:active .cke_combo_inlinelabel, |
|---|
| 134 | .cke_combo_off .cke_combo_button:focus .cke_combo_inlinelabel |
|---|
| 135 | { |
|---|
| 136 | opacity: 1; |
|---|
| 137 | } |
|---|
| 138 | |
|---|
| 139 | /* The handler which opens the panel of rich combo properties. |
|---|
| 140 | It holds an arrow as a visual indicator. */ |
|---|
| 141 | .cke_combo_open |
|---|
| 142 | { |
|---|
| 143 | cursor: default; |
|---|
| 144 | display: inline-block; |
|---|
| 145 | font-size: 0; |
|---|
| 146 | height: 19px; |
|---|
| 147 | line-height: 17px; |
|---|
| 148 | margin: 1px 3px; |
|---|
| 149 | width: 5px; |
|---|
| 150 | } |
|---|
| 151 | |
|---|
| 152 | /* The arrow which is displayed inside of the .cke_combo_open handler. */ |
|---|
| 153 | .cke_combo_arrow |
|---|
| 154 | { |
|---|
| 155 | margin: 9px 0 0; |
|---|
| 156 | float: left; |
|---|
| 157 | opacity: 0.70; |
|---|
| 158 | |
|---|
| 159 | /* Pure CSS Arrow */ |
|---|
| 160 | height: 0; |
|---|
| 161 | width: 0; |
|---|
| 162 | font-size: 0; |
|---|
| 163 | border-left: 3px solid transparent; |
|---|
| 164 | border-right: 3px solid transparent; |
|---|
| 165 | border-top: 3px solid #2f2f2f; |
|---|
| 166 | } |
|---|
| 167 | |
|---|
| 168 | .cke_hc .cke_combo_arrow |
|---|
| 169 | { |
|---|
| 170 | font-size: 10px; |
|---|
| 171 | width: auto; |
|---|
| 172 | border: 0; |
|---|
| 173 | margin-top: 4px; |
|---|
| 174 | } |
|---|
| 175 | |
|---|
| 176 | /* Disabled combo button styles. */ |
|---|
| 177 | .cke_combo_disabled .cke_combo_inlinelabel, |
|---|
| 178 | .cke_combo_disabled .cke_combo_open |
|---|
| 179 | { |
|---|
| 180 | opacity: 0.3; |
|---|
| 181 | } |
|---|
| 182 | |
|---|