Sha256: d8ee78c21573426a87a84719a734ddd50507356625af149cdb265ceaef11bbc8

Contents?: true

Size: 982 Bytes

Versions: 57

Compression:

Stored size: 982 Bytes

Contents

/*
  Placeholder styling for empty CMS attributes. The placeholder text is only displayed, if the
  element is not focused and it gets a slightly less visible style.
*/
[data-scrivito-display-mode="editing"] [data-scrivito-editors-placeholder]:empty:not(:focus):before {
  content: attr(data-scrivito-editors-placeholder);
  color: rgba(64, 64, 64, 0.53);
  display: inline-block;
  font-size: 13px;
  font-style: normal;
  font-weight: normal;
  line-height: 28px;
  margin: 0;
  padding: 0;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Firefox: Let the input cursor appear at the expected position */
[data-scrivito-display-mode="editing"] [data-scrivito-editors-placeholder]:empty:focus:after,
[data-scrivito-display-mode="editing"] [data-scrivito-editors-placeholder]:empty:focus:before {
  content: "\200b";
  color: transparent;
  display: inline-block;
}

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
scrivito_editors-1.4.0.rc2 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.4.0.rc1 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.3.1 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.3.1.rc1 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.3.0 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.3.0.rc3 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.3.0.rc2 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.3.0.rc1 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.2.0 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.2.0.rc3 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.2.0.rc2 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.2.0.rc1 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.1.1 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.1.0 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.1.0.rc3 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.1.0.rc2 app/assets/stylesheets/scrivito_editors/placeholder.css
scrivito_editors-1.1.0.rc1 app/assets/stylesheets/scrivito_editors/placeholder.css