123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- @import "compass/css3";
- .emojionearea {
- &, &.form-control {
- display: block;
- width: 100%;
- height: auto;
- padding: 0;
- font-size: 14px;
- background-color: #fff;
- background-image: none;
- border: 1px solid #ccc;
- @include border-radius(4px);
- @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075));
- @include transition(border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s);
- @include box-sizing(border-box);
- overflow: hidden;
- }
- &.focused {
- border-color: #66afe9;
- outline: 0;
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6));
- }
- .emojionearea-editor {
- display: block;
- @include box-sizing(border-box);
- height: auto;
- min-height: 8em;
- max-height: 15em;
- overflow: auto;
- padding: 6px 12px;
- line-height: 1.42857143;
- font-size: inherit;
- color: #555;
- background-color: inherit;
- background-image: none;
- border: 0;
- cursor: text;
- @include border-radius(0);
- @include box-shadow(none);
- &:empty:before {
- content: attr(placeholder);
- display: block;
- }
- &:focus {
- border: 0;
- outline: 0;
- @include box-shadow(none);
- }
- [class*=emojione-], .emojione {
- font-size: inherit;
- height: 2ex;
- width: 2.1ex;
- min-height: 20px;
- min-width: 20px;
- display: inline-block;
- margin: -.2ex .15em .2ex;
- line-height: normal;
- vertical-align: middle;
- max-width: 100%;
- top: 0;
- }
- }
- .emojionearea-filters {
- @include box-sizing(border-box);
- background: #e5e5e5;
- width: 100%;
- height: 46px;
- position: relative;
- overflow: hidden;
- .emojionearea-filter {
- @include box-sizing(content-box);
- top: 0 !important;
- margin: 0;
- width: 32px;
- height: 32px;
- width: 28px;
- height: 28px;
- display: inline-block;
- background-color: #e5e5e5;
- border: 9px solid #e5e5e5;
- border-left-width: 14px;
- border-right-width: 14px;
- @include opacity(0.7);
- i, img {
- display: block;
- width: 28px;
- height: 28px;
- top: 0;
- margin: 0;
- }
- &:hover {
- background-color: #f2f2f2;
- border-color: #f2f2f2;
- @include opacity(0.9);
- }
- &.active {
- background-color: #f9f9f9;
- border-color: #f9f9f9;
- @include opacity(1);
- }
- }
- .emojionearea-filters-scroll {
- height: 46px;
- overflow: hidden;
- width: 10000%;
- display: block;
- left: 0;
- margin: 0;
- position: absolute;
- @include transition(left ease-in-out .25s);
- }
- .emojionearea-filter-arrow-left,
- .emojionearea-filter-arrow-right {
- display: block;
- width: 22px;
- height: 46px;
- position: absolute;
- top: 0;
- @include box-shadow(0px 0px 2px rgba(0,0,0,0.2));
- background: #e5e5e5;
- z-index: 1;
- &:hover {
- background: #f2f2f2;
- }
- &:after {
- content: "";
- width: 0;
- height: 0;
- border-style: solid;
- border-width: 5px 0;
- border-color: transparent;
- position: absolute;
- top: 18px;
- }
- &.disabled {
- @include box-shadow(none);
- }
- }
- .emojionearea-filter-arrow-left {
- @include transition(left ease-in-out .15s);
- left: -30px;
- border-right: 1px solid #c9c9c9;
- &:after {
- left: 6px;
- border-right: 8px solid #333;
- }
- &.disabled:after {
- border-right-color: #aaa;
- }
- }
- .emojionearea-filter-arrow-right {
- @include transition(right ease-in-out .15s);
- right: -30px;
- border-left: 1px solid #c9c9c9;
- &:after {
- right: 6px;
- border-left: 8px solid #333;
- }
- &.disabled:after {
- border-left-color: #aaa;
- }
- }
- }
- &.focused .emojionearea-filters {
- .emojionearea-filter-arrow-left.active {
- left: 0;
- }
- .emojionearea-filter-arrow-right.active {
- right: 0;
- }
- }
- .emojionearea-tabs {
- padding: 0;
- background: #f9f9f9;
- @include box-sizing(border-box);
- [class*=emojione-] {
- @include box-sizing(content-box);
- margin: 0;
- width: 24px;
- height: 24px;
- top: 0;
- }
- .emojionearea-tab {
- @include box-sizing(border-box);
- padding: 4px 4px 4px 10px;
- max-height: 136px;
- overflow: auto;
- .emojibtn {
- @include box-sizing(content-box);
- width: 24px;
- height: 24px;
- float: left;
- display: block;
- margin: 1px;
- padding: 3px;
- &:hover {
- @include border-radius(4px);
- background-color: #e4e4e4;
- cursor: pointer;
- }
- i, img {
- float: left;
- display: block;
- width: 24px;
- height: 24px;
- }
- }
- }
- }
- .emojionearea-editor + .emojionearea-filters,
- .emojionearea-editor + .emojionearea-tabs,
- .emojionearea-filters + .emojionearea-editor,
- .emojionearea-tabs + .emojionearea-editor {
- border-top: 1px solid #cfcfcf;
- }
- }
|