forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-55607 theme_noname: Remove icon styles - We only need .icon every…
…where. Part of MDL-55071
- Loading branch information
1 parent
c1d6e95
commit 072364d
Showing
12 changed files
with
72 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// The only class we need for icons is .icon | ||
// Standardize the size, padding and alignment for all icons in Moodle. | ||
.icon { | ||
width: 16px; | ||
height: 16px; | ||
vertical-align: middle; | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: content-box; | ||
margin-right: 0.5rem; | ||
} | ||
|
||
a:first-of-type > .icon { | ||
margin-left: 0.5rem; | ||
} | ||
|
||
// Fix the cog icon for an action menu. | ||
.action-menu > .dropdown { | ||
margin-left: -0.5rem; | ||
} | ||
|
||
// Fix the first item in a drop down menu (it's a list of links and icons, but has been made vertical. | ||
.dropdown a.dropdown-item .icon { | ||
margin-left: 0px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,9 +134,6 @@ | |
margin-left: 0px; | ||
float: none; | ||
} | ||
img.iconsmall { | ||
padding: 0; | ||
} | ||
.iconcol { | ||
padding: 3px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,9 +63,6 @@ | |
} | ||
} | ||
|
||
.userlist .action-icon img { | ||
vertical-align: middle; | ||
} | ||
.userlist #showall { | ||
margin: 10px 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{! | ||
This file is part of Moodle - http://moodle.org/ | ||
Moodle is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Moodle is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
}} | ||
{{! | ||
@template core/pix_icon | ||
Moodle pix_icon template. | ||
The purpose of this template is to render a pix_icon. | ||
Classes required for JS: | ||
* none | ||
Data attributes required for JS: | ||
* none | ||
Context variables required for this template: | ||
* attributes Array of name / value pairs. | ||
Example context (json): | ||
{ | ||
"attributes": [ | ||
{ "name": "src", "value": "http://moodle.com/wp-content/themes/moodle/images/logo-hat2.png" }, | ||
{ "name": "class", "value": "iconsmall" } | ||
] | ||
} | ||
|
||
}} | ||
<img class="icon" {{#attributes}}{{name}}="{{value}}" {{/attributes}}/> |