Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Unified Diff: lib/src/prism/plugins/show-language/prism-show-language.css

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/prism/plugins/show-language/prism-show-language.css
diff --git a/lib/src/prism/plugins/show-language/prism-show-language.css b/lib/src/prism/plugins/show-language/prism-show-language.css
index 4a3c2f29f6650b403941e02ecb8991af66f4f0b5..9fddc2b2c495ad190c6ed8810eb362fc72a23fb2 100644
--- a/lib/src/prism/plugins/show-language/prism-show-language.css
+++ b/lib/src/prism/plugins/show-language/prism-show-language.css
@@ -1,16 +1,29 @@
-pre[class*='language-'] {
+div.prism-show-language {
position: relative;
}
-pre[class*='language-'][data-language]::before {
- content: attr(data-language);
+
+div.prism-show-language > div.prism-show-language-label[data-language] {
color: black;
background-color: #CFCFCF;
display: inline-block;
position: absolute;
+ bottom: auto;
+ left: auto;
top: 0;
right: 0;
+ width: auto;
+ height: auto;
font-size: 0.9em;
border-radius: 0 0 0 5px;
padding: 0 0.5em;
text-shadow: none;
-}
+ z-index: 1;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ -webkit-transform: none;
+ -moz-transform: none;
+ -ms-transform: none;
+ -o-transform: none;
+ transform: none;
+}

Powered by Google App Engine
This is Rietveld 408576698