|
| 1 | +//Variables |
| 2 | +@white: #fff; |
| 3 | + |
| 4 | +//Mixins |
| 5 | +.border-radius(@radius: 5px) { |
| 6 | + -webkit-border-radius: @radius; |
| 7 | + -moz-border-radius: @radius; |
| 8 | + border-radius: @radius; |
| 9 | +} |
| 10 | + |
| 11 | +.opacity(@opacity: 100) { |
| 12 | + filter: e(%("alpha(opacity=%d)", @opacity)); |
| 13 | + -moz-opacity: @opacity / 100; |
| 14 | + opacity: @opacity / 100; |
| 15 | +} |
| 16 | + |
| 17 | +//Styles |
| 18 | +.mentions-input-box { |
| 19 | + position: relative; |
| 20 | + background: @white; |
| 21 | + |
| 22 | + textarea{ |
| 23 | + width: 100%; |
| 24 | + display: block; |
| 25 | + height: 18px; |
| 26 | + padding: 9px; |
| 27 | + border: 1px solid #dcdcdc; |
| 28 | + border-radius:3px; |
| 29 | + overflow: hidden; |
| 30 | + background: transparent; |
| 31 | + position: relative; |
| 32 | + outline: 0; |
| 33 | + resize: none; |
| 34 | + |
| 35 | + -webkit-box-sizing: border-box; |
| 36 | + -moz-box-sizing: border-box; |
| 37 | + box-sizing: border-box; |
| 38 | + } |
| 39 | + |
| 40 | + .mentions{ |
| 41 | + position: absolute; |
| 42 | + left: 1px; |
| 43 | + right: 0; |
| 44 | + top: 1px; |
| 45 | + bottom: 0; |
| 46 | + padding: 9px; |
| 47 | + color: @white; |
| 48 | + overflow: hidden; |
| 49 | + |
| 50 | + white-space: pre-wrap; |
| 51 | + word-wrap: break-word; |
| 52 | + |
| 53 | + & > div{ |
| 54 | + color: @white; |
| 55 | + white-space: pre-wrap; |
| 56 | + width: 100%; |
| 57 | + |
| 58 | + & > strong{ |
| 59 | + font-weight:normal; |
| 60 | + background: #d8dfea; |
| 61 | + |
| 62 | + & > span{ |
| 63 | + .opacity(0); |
| 64 | + } |
| 65 | + } |
| 66 | + } |
| 67 | + } |
| 68 | +} |
| 69 | + |
| 70 | +.mentions-input-box .mentions-autocomplete-list { |
| 71 | + display: none; |
| 72 | + background: @white; |
| 73 | + border: 1px solid #b2b2b2; |
| 74 | + position: absolute; |
| 75 | + left: 0; |
| 76 | + right: 0; |
| 77 | + z-index: 10000; |
| 78 | + margin-top: -2px; |
| 79 | + |
| 80 | + .border-radius(); |
| 81 | + border-top-right-radius:0; |
| 82 | + border-top-left-radius:0; |
| 83 | + |
| 84 | + -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.148438); |
| 85 | + -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.148438); |
| 86 | + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.148438); |
| 87 | + |
| 88 | + ul{ |
| 89 | + margin: 0; |
| 90 | + padding: 0; |
| 91 | + } |
| 92 | + |
| 93 | + li{ |
| 94 | + background-color: @white; |
| 95 | + padding: 0 5px; |
| 96 | + margin: 0; |
| 97 | + width: auto; |
| 98 | + border-bottom: 1px solid #eee; |
| 99 | + height: 26px; |
| 100 | + line-height: 26px; |
| 101 | + overflow: hidden; |
| 102 | + cursor: pointer; |
| 103 | + list-style: none; |
| 104 | + white-space: nowrap; |
| 105 | + |
| 106 | + &:last-child{ |
| 107 | + .border-radius(); |
| 108 | + } |
| 109 | + |
| 110 | + & > img, |
| 111 | + & > div.icon{ |
| 112 | + width: 16px; |
| 113 | + height: 16px; |
| 114 | + float: left; |
| 115 | + margin-top:5px; |
| 116 | + margin-right: 5px; |
| 117 | + -moz-background-origin:3px; |
| 118 | + |
| 119 | + .border-radius(3px); |
| 120 | + } |
| 121 | + |
| 122 | + em{ |
| 123 | + font-weight: bold; |
| 124 | + font-style: none; |
| 125 | + } |
| 126 | + |
| 127 | + &:hover, |
| 128 | + &.active{ |
| 129 | + background-color: #f2f2f2; |
| 130 | + } |
| 131 | + |
| 132 | + b{ |
| 133 | + background: #ffff99; |
| 134 | + font-weight: normal; |
| 135 | + } |
| 136 | + } |
| 137 | +} |
0 commit comments