aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/stylesheets/content/_embedded.scss
diff options
context:
space:
mode:
authorsadbeast <sadbeast@sadbeast.com>2024-01-31 17:47:56 -0800
committersadbeast <sadbeast@sadbeast.com>2024-01-31 17:47:56 -0800
commit332ec93366315fa1ed7b4acd7a3407c96e8ddfa7 (patch)
tree6ae553317f12a7a6a29c849c8805ffab96436dc2 /app/assets/stylesheets/content/_embedded.scss
downloadtd-332ec93366315fa1ed7b4acd7a3407c96e8ddfa7.tar.gz
td-332ec93366315fa1ed7b4acd7a3407c96e8ddfa7.tar.bz2
initial mistakeHEADmain
Diffstat (limited to 'app/assets/stylesheets/content/_embedded.scss')
-rw-r--r--app/assets/stylesheets/content/_embedded.scss48
1 files changed, 48 insertions, 0 deletions
diff --git a/app/assets/stylesheets/content/_embedded.scss b/app/assets/stylesheets/content/_embedded.scss
new file mode 100644
index 0000000..d48293b
--- /dev/null
+++ b/app/assets/stylesheets/content/_embedded.scss
@@ -0,0 +1,48 @@
+/**
+ * Embedded content
+ */
+
+// Reboot based on :
+// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
+// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
+// ––––––––––––––––––––
+
+// Change the alignment on media elements in all browsers (opinionated)
+:where(audio, canvas, iframe, img, svg, video) {
+ vertical-align: middle;
+}
+
+// Add the correct display in IE 9-
+audio,
+video {
+ display: inline-block;
+}
+
+// Add the correct display in iOS 4-7
+audio:not([controls]) {
+ display: none;
+ height: 0;
+}
+
+// Remove the border on iframes in all browsers (opinionated)
+:where(iframe) {
+ border-style: none;
+}
+
+// 1. Remove the border on images inside links in IE 10.
+// 2. Responsive by default
+img {
+ max-width: 100%; // 2
+ height: auto; // 2
+ border-style: none; // 1
+}
+
+// Change the fill color to match the text color in all browsers (opinionated)
+:where(svg:not([fill])) {
+ fill: currentColor;
+}
+
+// Hide the overflow in IE
+svg:not(:root) {
+ overflow: hidden;
+}