MDL-55607 theme_noname: Remove icon styles - We only need .icon everywhere.
[moodle.git] / theme / noname / scss / moodle / icons.scss
CommitLineData
072364df
DW
1// The only class we need for icons is .icon
2// Standardize the size, padding and alignment for all icons in Moodle.
3.icon {
4 width: 16px;
5 height: 16px;
6 vertical-align: middle;
7 margin: 0;
8 padding: 0;
9 box-sizing: content-box;
10 margin-right: 0.5rem;
11}
12
13a:first-of-type > .icon {
14 margin-left: 0.5rem;
15}
16
17// Fix the cog icon for an action menu.
18.action-menu > .dropdown {
19 margin-left: -0.5rem;
20}
21
22// Fix the first item in a drop down menu (it's a list of links and icons, but has been made vertical.
23.dropdown a.dropdown-item .icon {
24 margin-left: 0px;
25}