X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fe5cbadf3dd0a5cd397645e8476b54da8e57597e..eb789dbf757e760e8348e0aa75343eb53996b7e3:/app/assets/stylesheets/common.css.scss diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 479e24f75..72ef6b049 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1040,3 +1040,67 @@ abbr.geo { vertical-align: text-bottom; border: 0; } + +/* Rules for rich text editors */ + +.richtext_container { + white-space: nowrap; + + .richtext_content { + display: inline-block; + vertical-align: top; + + .richtext_preview { + display: inline-block; + margin-top: 1px; + margin-bottom: 1px; + border: 4px solid #eee; + background-color: #eee; + white-space: normal; + + &.loading { + background-image: image-url("loading.gif"); + background-repeat: no-repeat; + background-position: center; + } + + > :first-child { + margin-top: 0px; + } + } + } + + .richtext_help { + display: inline-block; + vertical-align: top; + background-color: #ddd; + margin-left: 15px; + padding: 5px 10px 10px 10px; + font-size: 12px; + + p { + margin: 0px; + } + + th { + vertical-align: top; + padding: 0px 15px 0px 0px !important; + } + + td { + font-family: fixed; + line-height: 16px; + padding: 0px !important; + } + + input.richtext_doedit { + margin-top: 5px !important; + margin-right: 10px !important; + } + + input.richtext_dopreview { + margin-top: 5px !important; + margin-left: 10px !important; + } + } +}