123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- //
- // Editor
- // --------------------------------------------------
- @editor-border: darken(@gray-lighter, 15%);
- .editor-border {
- background-color: #fff;
- border: 1px solid @editor-border;
- border-radius: @border-radius-base;
- }
- .editor-border .form-control {
- // remove border and resizing
- border: none;
- resize: none;
- // remove shadow from control
- &, &:focus, &:active {
- .box-shadow(none);
- }
- }
- // Footer styles
- .editor-footer {
- border-top: 1px solid @editor-border;
- padding: @padding-base-vertical @padding-base-horizontal;
- overflow: auto;
- .pull-left {
- margin-right: @padding-base-horizontal;
- }
- .pull-right {
- margin-left: @padding-base-horizontal;
- }
- .btn-icon .material-icon {
- margin-bottom: -2px;
- }
- // center buttons on small devices
- @media screen and (max-width: @screen-sm-max) {
- .buttons-list {
- float: none !important;
- margin: 0px;
- margin-bottom: @line-height-computed / 2;
- .btn {
- display: inline-block;
- float: none !important;
- margin: @line-height-computed / 3;
- }
- }
- .btn-protect {
- .btn-text {
- margin-left: @padding-small-horizontal;
- }
- .material-icon {
- position: relative;
- bottom: 2px;
- width: 14px;
- height: 14px;
- font-size: 14px;
- line-height: 14px;
- }
- }
- }
- }
- @media screen and (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
- .buttons-list .btn {
- &:first-child {
- margin-left: 0px;
- }
- }
- }
- // make lock button full width
- @media screen and (max-width: @screen-xs-max) {
- .buttons-list {
- text-align: center;
- .btn-protect {
- display: block;
- float: none !important;
- width: 100%;
- margin: 0px;
- margin-top: @line-height-computed / 2;
- }
- }
- }
- // Attachments list
- .editor-attachments-list {
- margin: 0px;
- padding: 0px;
- li {
- margin: 0px;
- }
- }
- .editor-attachment-complete {
- border-top: 1px solid @editor-border;
- padding: @padding-base-vertical 0px;
- padding-right: @padding-base-horizontal;
- .editor-attachment-image {
- float: left;
- width: 50px;
- a {
- background-size: cover;
- background-position: center;
- border-radius: @border-radius-small;
- display: block;
- margin: 0px auto;
- width: 36px;
- height: 36px;
- }
- }
- .editor-attachment-icon {
- float: left;
- width: 50px;
- text-align: center;
- .material-icon {
- position: relative;
- top: 2px;
- height: 28px;
- width: 28px;
- font-size: 28px;
- line-height: 28px;
- }
- }
- .editor-attachment-details {
- margin-left: 50px;
- h4, p {
- margin: 0px;
- padding: 0px;
- font-size: @font-size-base;
- }
- p {
- margin-top: @padding-base-vertical / 2;
- color: @gray-light;
- font-size: @font-size-small;
- }
- abbr {
- white-space: nowrap;
- }
- }
- }
- .editor-attachment-actions {
- @media screen and (min-width: @screen-sm-min) {
- padding-top: 3px;
- }
- @media screen and (max-width: @screen-xs-max) {
- padding-left: @padding-base-horizontal;
- padding-right: @padding-base-horizontal;
- }
- }
- .editor-attachment-error {
- border-top: 1px solid @editor-border;
- padding: @padding-base-vertical 0px;
- padding-right: @padding-base-horizontal;
- }
- .editor-attachment-error-icon {
- float: left;
- width: 50px;
- text-align: center;
- .material-icon {
- position: relative;
- top: 2px;
- height: 28px;
- width: 28px;
- font-size: 28px;
- line-height: 28px;
- }
- }
- .editor-attachment-error-message {
- margin-left: 50px;
- padding: @padding-base-vertical 0px;
- position: relative;
- h4, p {
- margin: 0px;
- padding: 0px;
- font-size: @font-size-base;
- }
- p {
- margin-top: @padding-base-vertical / 2;
- font-size: @font-size-small;
- }
- .btn {
- position: absolute;
- top: @padding-base-vertical + 3px;
- right: @padding-base-horizontal;
-
- @media screen and (max-width: @screen-xs-max) {
- display: block;
- margin-top: @line-height-computed / 2;
- position: static;
- }
- }
- }
- .editor-attachment-progress-bar {
- background: @editor-border;
- overflow: auto;
- }
- .editor-attachment-progress {
- background: @brand-primary;
- float: left;
- height: 1px;
- }
- .editor-attachment-upload-message {
- margin: 0px;
- padding: @padding-base-vertical @padding-base-horizontal;
- }
- // Hide file input outside of viewport
- #editor-upload-field {
- position: absolute;
- left: -1000px;
- top: -1000px;
- }
- // Scale avatar in at.js suggestion
- .atwho-view ul li img {
- border-radius: @border-radius-small;
- margin-right: @font-size-base / 3;
- width: @line-height-computed;
- height: @line-height-computed;
- }
|