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

Unified Diff: chrome/common/extensions/docs/static/sass/_html.scss

Issue 113963003: added scss files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved site.css to out subdirectory Created 6 years, 11 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: chrome/common/extensions/docs/static/sass/_html.scss
diff --git a/chrome/common/extensions/docs/static/sass/_html.scss b/chrome/common/extensions/docs/static/sass/_html.scss
new file mode 100644
index 0000000000000000000000000000000000000000..3fb2ecfce578b7733e26c208311ad363d4af0156
--- /dev/null
+++ b/chrome/common/extensions/docs/static/sass/_html.scss
@@ -0,0 +1,594 @@
+//-----------------------------------------------------------------------
+// General Elements
+//-----------------------------------------------------------------------
+
+figure {
+ margin: $default-padding 0;
+ img {
+ border: $default-border;
+ }
+}
+
+table {
+ width: 100%;
+ border-collapse: collapse;
+ margin: 2em 0;
+ line-height: 1.5em;
+}
+table caption {
+ margin-bottom: 1em;
+ text-align: left;
+ font-weight: bold;
+}
+th {
+ border: $default-border;
+ font-weight: bold;
+ background: darken($gray-light, 5%);
+}
+tr {
+ border-bottom: $default-border;
+}
+table + tr {
+ border-top: $default-border;
+}
+td, th {
+ padding: 1em 1.5em;
+ text-align: left;
+ border: $default-border;
+}
+
+pre {
+ background-color: #f7f7f7;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 3px rgba(0, 0, 0, 0.15);
+ margin: 1em 0 0 0;
+ overflow: auto;
+ padding: .99em;
+ position: relative;
+ a {
+ text-decoration: underline!important;
+ }
+ b {
+ background: yellow;
+ }
+}
+
+
+//-----------------------------------------------------------------------
+// General Classes
+//-----------------------------------------------------------------------
+
+.element-invisible {
+ @include element-invisible;
+}
+
+.hidden {
+ display: none;
+}
+
+.label {
+ color: inherit;
+ text-transform: uppercase;
+ margin-bottom: 5px;
+ font-size: $small-label-size;
+ font-weight: bold;
+}
+
+.published {
+ font-size: $small-label-size;
+ font-style: italic;
+ color: $gray-light-dark;
+ line-height: $base-line-height * 0.7;
+}
+
+.description {
+ margin: $default-padding 0;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+}
+
+
+// Spans the full viewport with a gray bar.
+.span-full {
+ background: $gray-light;
+ position: relative;
+ padding: 3em 0;
+
+ &::before, &::after {
+ content: '';
+ height: 100%;
+ width: 100%;
+ top: 0;
+ position: absolute;
+ background: $gray-light;
+ z-index: -1;
+ }
+ &::before {
+ left: -100%;
+ }
+ &::after {
+ left: 100%;
+ }
+}
+
+// Big blue buttonz!
+.button {
+ background: #0370ea;
+ @include background-image(linear-gradient(top, #008dfd 0%,#0370ea 100%));
+ border: 1px solid #076bd2;
+ border-radius: 3px;
+ color: $white !important;
+ display: inline-block;
+ font-size: 13px;
+ font-weight: 700;
+ line-height: 1.3;
+ padding: 5px 20px;
+ text-align: center;
+ text-decoration: none !important;
+ text-shadow: 1px 1px 1px #076bd2;
+
+ &:hover {
+ @include background-image(linear-gradient(top, #008dfd 30%,#0370ea 100%));
+ cursor: pointer;
+ }
+}
+
+.button-alt {
+ background: #eee;
+ @include background-image(linear-gradient(bottom, #DCDCDC 46%, #FAFAFA 87%));
+ border: 1px solid #d6d6d6;
+ border-radius: 3px;
+ color: #333 !important;
+ display: inline-block;
+ font-size: 12px;
+ font-weight: 700;
+ line-height: 24px;
+ padding: 0 15px;
+ text-align: center;
+ text-decoration: none !important;
+ text-shadow: none;
+
+ &:hover {
+ @include background-image(linear-gradient(bottom, #DCDCDC 20%, #FAFAFA 87%));
+ cursor: pointer;
+ }
+}
+
+// Feedback and scroll to top buttons.
+.google-button {
+ background-color: $gray-light;
+ border-radius: 2px 0 0 0;
+ border: 1px solid rgba(0,0,0,0.1);
+ padding: 5px 12px;
+ text-align: center;
+ white-space: nowrap;
+
+ &:hover {
+ border-color: #c6c6c6;
+ @include box-shadow(0 -1px 1px rgba(0,0,0,0.1));
+ }
+ &:active {
+ background-color: #f1f1f1;
+ @include box-shadow(inset 0 0px 2px rgba(0,0,0,0.2));
+ }
+}
+
+.screenshot,
+.screenshot img {
+ margin: 1em 0;
+}
+
+p, div, aside {
+ &.note,
+ &.caution,
+ &.warning {
+ background-color: $gray-light;
+ border-bottom: 1px solid;
+ border-top: 1px solid;
+ overflow: hidden;
+ width: 85%;
+ margin: auto;
+ padding: 1em;
+ //border: none;
+ //box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 3px rgba(0, 0, 0, 0.15);
+ //background-image: -webkit-linear-gradient(top, rgba(51, 102, 204, 0.1), transparent, rgba(51, 102, 204, 0.1));
+
+ }
+ &.note {
+ border-color: #36C;
+ }
+ &.caution {
+ border-color: #FC3;
+ }
+ &.warning {
+ border-color: #A03;
+ em, strong {
+ color: #A03;
+ }
+ }
+}
+
+.permalink {
+ display: none;
+ margin-left: 5px;
+}
+.has-permalink:hover .permalink {
+ display: initial;
+}
+.no-permalink .permalink {
+ display: none !important;
+}
+
+//-----------------------------------------------------------------------
+// Specific Elements
+//-----------------------------------------------------------------------
+
+#gc-footer {
+ .links {
+ a {
+ margin-right: $default-padding;
+ }
+ }
+ #cc-info {
+ font-size: $small-label-size;
+ }
+}
+
+#social-buttons {
+ @include display-flex();
+ @include justify-content(flex-end);
+ @include align-items(center);
+
+ > * {
+ margin-left: 10px;
+ }
+
+ img {
+ margin: -4px 0 0 1px;
+ }
+}
+
+// @media only screen and (min-width: $break-small) {
+// #gc-pagecontent {
+// > .g-section {
+// padding: $main-content-top-margin / 2 0 $main-content-top-margin;
+// }
+// }
+// .g-unit {
+// &.g-last {
+// .g-content {
+// border-bottom: none;
+// }
+// }
+// .g-content {
+// margin-top: $default-padding;
+// margin-right: 0;
+// &:last-child {
+// padding-bottom: $default-padding;
+// }
+// }
+// }
+// }
+
+
+// Phone
+@media only screen and (max-width: $break-small) {
+ .more-section {
+ .g-last {
+ .g-content {
+ padding-bottom: 0;
+ border: none;
+ }
+ }
+ .g-content {
+ border: $default-border;
+ border-width: 0 0 1px 0;
+ padding-bottom: $default-padding;
+ margin-bottom: $default-padding;
+ }
+ }
+ #gc-footer {
+ .links {
+ a {
+ display: inline-block;
+ }
+ }
+ }
+}
+
+
+#scroll-to-top,
+#send-feedback {
+ border-bottom: none;
+ bottom: 0;
+ position: fixed;
+ z-index: 5;
+}
+#scroll-to-top {
+ border-left: 0;
+ left: 0;
+}
+#send-feedback {
+ border-right: 0;
+ right: 0;
+}
+
+
+//-----------------------------------------------------------------------
+// UNCLEAR IF NEEDED. Move things up as needed. ================
+//-----------------------------------------------------------------------
+
+/*
+ul.condensed {
+ margin: 0.5em 0;
+ li {
+ margin-top: 0;
+ }
+}
+
+pre {
+ &[data-filename] .filename {
+ background-color: #777;
+ padding: 2px 12px;
+ position: absolute;
+ right: 0;
+ top: 0;
+}
+*/
+
+/*
+#gc-sidebar {
+ width: 185px;
+ float: left;
+
+ // scroll.js adds and removes the floating class depending on the scroll position.
+ &.floating {
+ overflow: auto;
+ position: fixed;
+ top: 0; bottom: 0;
+ }
+
+ // Sidebar link/button styling.
+ span, a {
+ color: black;
+ display: block;
+ font-weight: normal;
+ position: relative;
+
+ &.level2 {
+ font-weight: bold;
+ }
+ }
+ a:hover,
+ a.selected {
+ color: #0d68ae;
+ }
+
+ a.button,
+ .level3,
+ .level4 {
+ color: #444;
+ }
+
+ .toggleIndicator {
+ background: url(../images/toggle_sprite.png) no-repeat 0 0;
+ height: 8px;
+ position: absolute;
+ right: 0;
+ top: 3px;
+ width: 8px;
+
+ &.toggled {
+ background-position: 0 -9px;
+ }
+ }
+
+ // Sidebar list styling.
+/* ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+
+ &.level2 {
+ margin-left: 10px;
+ padding-top: 10px;
+ }
+ &.level3,
+ &.level4,
+ &.level5 {
+ margin-left: 20px;
+ padding-top: 10px;
+ }
+ }
+
+ li {
+ line-height: 120%;
+ margin: 0;
+ padding: 8px 0;
+
+ &.level2 {
+ border-top: 1px solid #F5F5F5;
+
+ &:first-child {
+ border-top: none;
+ }
+ }
+ }
+}
+*//*
+#toc {
+ background-color: #F5F5F5;
+ border-bottom: 20px solid white; */
+ /* We want this element to have a visual left-margin of 20px, but margins on
+ floated elements don't affect the borders and background of the elements
+ they float over. So we add this border to force the issue. */
+/* border-left: 20px solid white;
+ float: right;
+ margin: 5px 0px 0px 0px;
+ padding: 5px;
+ position: relative;
+ width: 250px;
+ word-break: break-word;
+ z-index: 3;
+
+ * {
+ list-style: none;
+ overflow: hidden;
+ padding: 0;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ a {
+ color: black;
+ }
+
+ h2 {
+ border: none;
+ font-size: 100%;
+ font-weight: bold;
+ margin: 0;
+ padding: 0;
+ }
+
+ ol {
+ margin: 1em 0 0 0;
+
+ li {
+ line-height: 1.2em;
+ margin: .5em 0 .5em 1em;
+
+ ol {
+ margin: 0;
+
+ li {
+ margin: .5em 0 0 1em;
+ }
+ }
+ }
+ }
+
+ .api-reference {
+ border-top: 1px solid #e5e5e5;
+ }
+}
+
+.filtered_item {
+ line-height: 6px;
+}
+
+#filtered_apis {
+ margin-top: 5px;
+}
+
+#skipto {
+ display: none;
+}
+*/
+/* List with largeish images floated to the right. */
+/*.imaged {
+ li {
+ clear: right;
+
+ img {
+ float: right;
+ margin-bottom: 1em;
+ }
+ }
+ + p {
+ clear: right;
+ }
+}*/
+
+// small indent for better visual distinction (e.g., in a long list)
+/*.indent-small {
+ margin-left: 2em;
+}*/
+
+/* Tabbed pane with header (tabs) and content */
+/*
+tabs {
+ display: block;
+ margin: 25px 0;
+
+ header {
+ background: inherit;
+ border: 1px solid #ccc;
+ border-bottom: 1px solid white;
+ cursor: auto;
+ display: inline-block;
+ margin-bottom: 0;
+ padding: 10px;
+ outline: none;
+
+ &.unselected {
+ background: #eee;
+ border-bottom: 1px solid #ccc;
+ cursor: pointer;
+ }
+ }
+ content {
+ border: 1px solid #ccc;
+ display: block;
+ margin-top: -1px;
+ padding: 20px;
+
+ &.unselected {
+ display: none;
+ }
+
+ pre {
+ margin: 0;
+ padding: 10px;
+ }
+ }
+} */
+
+/*
+ * API references.
+ */
+/*
+.type_name,
+.property {
+ font-style: italic;
+}
+
+.api_reference {
+ div.summary {
+ background-color: #CADEF4;
+ border: 1px solid #93B4D9;
+ font-family: "Courier New", courier, monospace;
+ margin-top: 1em;
+ padding: 0.5em;
+ text-indent: -1.5em;
+
+ .line {
+ padding-left: 1.5em;
+ text-indent: -1.5em;
+ }
+
+ .subdued {
+ color: #7594B8;
+ }
+ }
+
+ div.description {
+ margin-left: 2em;
+ }
+*/
+ /* This style is used because types with functions prefix the function with the
+ * type name, using a lowercase first letter. */
+/* .uncapitalize:first-letter {
+ text-transform: lowercase;
+ }
+
+ .capitalize:first-letter {
+ text-transform: uppercase;
+ }
+}
+
+.optional {
+ color: #7D7D7D;
+}
+*/
« no previous file with comments | « chrome/common/extensions/docs/static/sass/_homepage.scss ('k') | chrome/common/extensions/docs/static/sass/_layout.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698