Skip to content

Instantly share code, notes, and snippets.

View davidscotson's full-sized avatar

David Scotson davidscotson

View GitHub Profile
@davidscotson
davidscotson / edition.yml
Created September 30, 2023 16:13
OpenLibrary edition yaml
classifications:
- label: Dewey Decimal Class
name: dewey_decimal_class
- label: Library of Congress
name: lc_classifications
- label: RVK
name: rvk
notes: ''
website: http://rvk.uni-regensburg.de/index.php?option=com_rvko&view=show&Itemid=53
- label: Depósito Legal N.A.
@davidscotson
davidscotson / forced-color.scss
Created June 17, 2022 16:35
Tweaks for Bootstrap 4.6 when in forced-color mode, see https://github.com/twbs/bootstrap/issues/35941
// Tweaks to Bootstrap to better support forced-color accessability mode.
// https://github.com/twbs/bootstrap/issues/35941
@media (forced-colors) {
navbar.fixed-top {
border-bottom: 1px solid transparent;
}
input[type="submit"],
diff --git a/auth/tests/behat/behat_auth.php b/auth/tests/behat/behat_auth.php
index 959c2fb..41ff726 100644
--- a/auth/tests/behat/behat_auth.php
+++ b/auth/tests/behat/behat_auth.php
@@ -96,7 +96,7 @@ class behat_auth extends behat_base {
// hamburger.
// However, the user menu *always* needs to be expanded.
- $xpath = "//div[@class='usermenu']//a[contains(concat(' ', @class, ' '), ' toggle-display ')]";
+ $xpath = "//ul[contains(concat(' ', @class, ' '), ' usermenu ')]//a[contains(concat(' ', @class, ' '), ' dropdown-toggle ')]";
diff --git a/auth/tests/behat/behat_auth.php b/auth/tests/behat/behat_auth.php
index 959c2fb..41ff726 100644
--- a/auth/tests/behat/behat_auth.php
+++ b/auth/tests/behat/behat_auth.php
@@ -96,7 +96,7 @@ class behat_auth extends behat_base {
// hamburger.
// However, the user menu *always* needs to be expanded.
- $xpath = "//div[@class='usermenu']//a[contains(concat(' ', @class, ' '), ' toggle-display ')]";
+ $xpath = "//ul[contains(concat(' ', @class, ' '), ' usermenu ')]//a[contains(concat(' ', @class, ' '), ' dropdown-toggle ')]";
<?php
// A list of old CSS classes that can be grepped for in the code without
// causing false positives. See http://getbootstrap.com/migration/
$oldstuff = array(
'span[0-9]',
'row-fluid',
'btn-mini',
'btn-small',
'btn-large',
button,
input.form-submit,
input[type="button"],
input[type="submit"],
input[type="reset"] {
display: inline-block;
margin-bottom: 0;
font-weight: 300;
text-align: center;
vertical-align: middle;
26454 mod/quiz/styles.css
14684 mod/workshop/styles.css
8022 blocks/community/styles.css
7553 mod/assign/feedback/editpdf/styles.css
6944 mod/assign/styles.css
6758 grade/grading/form/rubric/styles.css
6734 mod/forum/styles.css
6198 mod/wiki/styles.css
5455 grade/report/grader/styles.css
5431 mod/scorm/styles.css
@mod @mod_newmodule
Feature: Add a newmodule to a course
In order to use mod_newmodule
As a teacher
I need to create a newmodule
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
@mod @mod_newmodule
Feature: Add a mod_newmodule
In order to <purpose of mod_newmodule>
As a teacher
I need to create a mod_newmodule
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@example.com |
public function render_user_picture(user_picture $userpicture) {
$bill = new bill_murray_picture($userpicture->user);
return parent::render_user_picture($bill);
}
}
class bill_murray_picture extends user_picture {
private $numberofbills = 18;