123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- .richText {
- position: relative;
- width: 100%;
- border-radius: 7px;
- .richText-form {
- font-family: Calibri, Verdana, Helvetica, sans-serif;
- label {
- display: block;
- padding: 10px 15px;
- }
- input {
- &[type="text"],
- &[type="file"],
- &[type="number"] {
- padding: 10px 15px;
- border: #ecf0fa solid 1px;
- min-width: 200px;
- width: 100%;
- border-radius: 5px;
- outline: 0;
- }
- }
- select {
- padding: 10px 15px;
- border: #ecf0fa solid 1px;
- min-width: 200px;
- width: 100%;
- border-radius: 5px;
- outline: 0;
- cursor: pointer;
- }
- button {
- margin: 10px 0;
- padding: 0.375rem 0.75rem;
- background-color: $primary-1;
- border: none;
- color: #fafafa;
- cursor: pointer;
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- }
- }
- .richText-toolbar {
- min-height: 20px;
- border-block-end: 0;
- ul {
- margin-block-end: 0;
- border-block-end: #ecf0fa solid 1px;
- li {
- float: $float-left;
- display: block;
- list-style: none;
- a {
- display: block;
- padding: 10px 15px;
- cursor: pointer;
- -webkit-transition: background-color 0.4s;
- -moz-transition: background-color 0.4s;
- transition: background-color 0.4s;
- color: #858398;
- .fa,
- .fe,
- .fas,
- .far,
- svg {
- pointer-events: none;
- }
- .richText-dropdown-outer {
- display: none;
- position: absolute;
- inset-block-start: 0;
- inset-inline-start: 0;
- inset-inline-end: 0;
- inset-block-end: 0;
- background-color: rgba(0, 0, 0, 0.3);
- cursor: default;
- .richText-dropdown {
- position: relative;
- display: block;
- margin: 3% auto 0 auto;
- background-color: #fff;
- border: #ecf0fa solid 1px;
- min-width: 100px;
- width: 320px;
- max-width: 90%;
- border-radius: 5px;
- -webkit-box-shadow: 0px 16px 18px rgba(6, 10, 48, 0.1);
- -moz-box-shadow: 0px 16px 18px rgba(6, 10, 48, 0.1);
- box-shadow: 0px 16px 18px rgba(6, 10, 48, 0.1);
- padding-block-start: 20px;
- z-index: 1;
- .richText-dropdown-close {
- position: absolute;
- inset-block-start: 6px;
- inset-inline-end: 5px;
- background: transparent;
- /* color: #adaeb1; */
- cursor: pointer;
- font-size: 16px;
- text-align: center;
- width: 25px;
- border-radius: 5px;
- }
- }
- ul.richText-dropdown {
- list-style: none;
- li {
- display: block;
- float: none;
- font-family: Calibri, Verdana, Helvetica, sans-serif;
- a {
- display: block;
- padding: 10px 15px;
- border-block-end: #efefef solid 1px;
- &:hover {
- background-color: #ffffff;
- }
- }
- &.inline {
- margin: 2px 8px;
- float: $float-left;
- padding: 6px;
- a {
- display: block;
- padding: 0;
- margin: 0;
- border: 1px solid #c3bdbd;
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
- /* -webkit-box-shadow: 0 0 10px 0 #999;
- -moz-box-shadow: 0 0 10px 0 #999;
- box-shadow: 0 0 10px 0 #999; */
- span {
- display: block;
- height: 30px;
- width: 30px;
- -webkit-border-radius: 50%;
- -moz-border-radius: 50%;
- border-radius: 50%;
- }
- }
- }
- }
- }
- div.richText-dropdown {
- padding: 10px 15px;
- }
- }
- &:hover {
- background-color: #ffffff;
- }
- }
- &[data-disable="true"] {
- opacity: 0.1;
- a {
- cursor: default;
- }
- }
- &:not([data-disable="true"]).is-selected .richText-dropdown-outer {
- display: block;
- }
- }
- &:after {
- display: block;
- content: "";
- clear: both;
- }
- }
- &:last-child {
- font-size: 12px;
- }
- &:after {
- display: block;
- clear: both;
- content: "";
- }
- }
- .richText-editor {
- padding: 20px;
- background-color: #ffffff;
- border-inline-start: #ffffff solid 2px;
- font-family: Calibri, Verdana, Helvetica, sans-serif;
- height: 300px;
- outline: none;
- overflow-y: scroll;
- overflow-x: auto;
- ul,
- ol {
- margin: 10px 25px;
- }
- table {
- margin: 10px 0;
- border-spacing: 0;
- width: 100%;
- td,
- th {
- padding: 10px;
- border: #efefef solid 1px;
- }
- }
- &:focus {
- border-inline-start: transparent solid 2px;
- }
- }
- .richText-initial {
- margin-block-end: -4px;
- padding: 10px;
- background-color: #282828;
- border: none;
- color: #33ff33;
- font-family: Monospace, Calibri, Verdana, Helvetica, sans-serif;
- max-width: 100%;
- min-width: 100%;
- width: 100%;
- min-height: 400px;
- height: 400px;
- }
- .richText-help {
- float: $float-right;
- display: block;
- padding: 10px 15px;
- cursor: pointer;
- }
- .richText-undo,
- .richText-redo {
- float: $float-right;
- display: block;
- padding: 10px 15px;
- border-inline-end: #efefef solid 1px;
- cursor: pointer;
- }
- .richText-undo.is-disabled,
- .richText-redo.is-disabled {
- opacity: 0.4;
- }
- .richText-help-popup {
- a {
- color: #3498db;
- text-decoration: underline;
- }
- hr {
- margin: 10px auto 5px auto;
- border: none;
- border-block-start: #efefef solid 1px;
- }
- }
- .richText-list.list-rightclick {
- position: absolute;
- background-color: #fafafa;
- border-inline-end: #efefef solid 1px;
- border-block-end: #efefef solid 1px;
- li {
- padding: 5px 7px;
- cursor: pointer;
- list-style: none;
- }
- }
- }
- @media (max-width: 768px){
- .richText .richText-toolbar ul li {
- border-block-end: #eaedf1 solid 1px;
- }
- .richText .richText-toolbar ul{
- border-block-end: 0 !important;
- }
- }
|