first commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* @file
|
||||
* Styling for the shortcut module icons.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Toolbar tab icon.
|
||||
*/
|
||||
.toolbar-bar .toolbar-icon-shortcut:before,
|
||||
.toolbar-bar .toolbar-icon-shortcut:active:before,
|
||||
.toolbar-bar .toolbar-icon-shortcut.is-active:before {
|
||||
background-image: url(../../images/icons/shortcut.svg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add/remove links.
|
||||
*/
|
||||
.shortcut-action__icon {
|
||||
background: transparent url(../../images/shortcut/favstar.svg) no-repeat left top;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
vertical-align: -2px;
|
||||
}
|
||||
[dir="rtl"] .shortcut-action__icon {
|
||||
background-image: url(../../images/shortcut/favstar-rtl.svg);
|
||||
}
|
||||
.shortcut-action--add:hover .shortcut-action__icon,
|
||||
.shortcut-action--add:focus .shortcut-action__icon {
|
||||
background-position: -20px top;
|
||||
}
|
||||
.shortcut-action--remove .shortcut-action__icon {
|
||||
background-position: -40px top;
|
||||
}
|
||||
.shortcut-action--remove:focus .shortcut-action__icon,
|
||||
.shortcut-action--remove:hover .shortcut-action__icon {
|
||||
background-position: -60px top;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* @file
|
||||
* Styling for the shortcut module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Toolbar.
|
||||
*/
|
||||
.toolbar .toolbar-tray-vertical .edit-shortcuts {
|
||||
text-align: left; /* LTR */
|
||||
padding: 20px 25px;
|
||||
border-bottom: 1px solid #0e4f8a;
|
||||
}
|
||||
[dir="rtl"] .toolbar .toolbar-tray-vertical .edit-shortcuts {
|
||||
text-align: right;
|
||||
}
|
||||
.toolbar .toolbar-tray-horizontal .edit-shortcuts {
|
||||
float: right; /* LTR */
|
||||
}
|
||||
[dir="rtl"] .toolbar .toolbar-tray-horizontal .edit-shortcuts {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add/remove links.
|
||||
*/
|
||||
.shortcut-action {
|
||||
display: inline-block;
|
||||
margin-left: 0.3em; /* LTR */
|
||||
}
|
||||
[dir="rtl"] .shortcut-action {
|
||||
margin-left: 0;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
.shortcut-action__message {
|
||||
background: #000;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 5px;
|
||||
padding: 0 5px;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
margin-left: 0.3em; /* LTR */
|
||||
opacity: 0;
|
||||
-ms-transform: translateY(-12px);
|
||||
-webkit-transform: translateY(-12px);
|
||||
transform: translateY(-12px);
|
||||
-webkit-transition: all 200ms ease-out;
|
||||
transition: all 200ms ease-out;
|
||||
-ms-backface-visibility: hidden;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
[dir="rtl"] .shortcut-action__message {
|
||||
margin-left: 0;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
.shortcut-action:hover .shortcut-action__message,
|
||||
.shortcut-action:focus .shortcut-action__message {
|
||||
opacity: 1;
|
||||
-ms-transform: translateY(-2px);
|
||||
-webkit-transform: translateY(-2px);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
Reference in New Issue
Block a user