Sha256: f64508c757ac2dba9ce326238620292ed3fe84c3b683e5a52fa1dc1969b52762
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
.fields-relay { } .fields-relay__sortableblock { @include clearfix; // fix images height .elements-preview__container { padding-bottom: 40%; } } .fields-relay__menu-container { margin-top: 10px; width: 100%; position: relative; } .fields-relay__menu-add { width: 25px; height: 25px; margin: 0 auto; background: $color_white; border-radius: 50%; color: $color_main; border: 1px solid $color_main; cursor: pointer; text-align: center; position: relative; transition: all 0.3s; &:hover, &:focus { background-color: $color_main; color: $color_white; } } .fields-relay__menu-add-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; z-index: 10; } .fields-relay__menu { box-shadow: 0px 11px 20px rgba(41,59,90,0.08); display: block; position: absolute; top: 120%; left: 50%; transform: translateX(-50%); min-width: 250px; border: 1px solid $color_grey; list-style: none; padding: 0; margin: 0; z-index: 10; display: none; border-radius: 10px; overflow: hidden; margin-bottom: 10px; } .fields-relay__menu--active { display: block; } .fields-relay__menu-item { text-align: center; margin: 0; a { font-size: 1em; display: block; padding: 6px; background: $color_white; color: $color_black; text-decoration: none; &:hover { background-color: $color_grey; } } } .js-related-field__destroy { position: absolute; top: 0; left: 35px; opacity: 0; width: 25px; height: 25px; background: #ecf0f1; border-radius: 3px; text-align: center; transition: all 0.3s; svg { display: block; width: 15px; height: 15px; margin: 5px auto 0 auto; path { transition: all 0.3s; } } &:hover { background-color: $color_danger; svg { path { fill: white; } } } } .c-sortable__element:hover { .js-related-field__destroy { opacity: 1; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lato_blog-2.1 | app/assets/stylesheets/lato_blog/fields/_relay.scss |