s
Last active
July 4, 2017 18:03
-
-
Save garrettmac/6a29e16ba03b0b20e915d775b323714a to your computer and use it in GitHub Desktop.
The basics on how to build a Chrome Extension.
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
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
ul:not(.browser-default) { | |
padding-left: 0px; | |
list-style-type: none; | |
} | |
} | |
@media screen, projection { | |
.z-depth-1, | |
nav, | |
.card-panel, | |
.card, | |
.toast, | |
.btn, | |
.btn-large, | |
.btn-floating, | |
.dropdown-content, | |
.collapsible, | |
.side-nav { | |
box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, | |
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px, | |
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs { | |
position: relative; | |
overflow-x: auto; | |
overflow-y: hidden; | |
height: 48px; | |
width: 100%; | |
background-color: rgb(255, 255, 255); | |
margin: 0px auto; | |
white-space: nowrap; | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
ul:not(.browser-default) li { | |
list-style-type: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab { | |
display: inline-block; | |
text-align: center; | |
line-height: 48px; | |
height: 48px; | |
padding: 0px; | |
margin: 0px; | |
} | |
} | |
@media screen, projection { | |
a { | |
background-color: transparent; | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
a { | |
color: rgb(3, 155, 229); | |
text-decoration: none; | |
-webkit-tap-highlight-color: transparent; | |
} | |
} | |
@media screen, projection { | |
a { | |
text-decoration: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab a { | |
color: rgba(238, 110, 115, 0.7); | |
display: block; | |
width: 100%; | |
height: 100%; | |
padding: 0px 24px; | |
font-size: 14px; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
transition: color 0.28s ease; | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
ul:not(.browser-default) li { | |
list-style-type: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab { | |
display: inline-block; | |
text-align: center; | |
line-height: 48px; | |
height: 48px; | |
padding: 0px; | |
margin: 0px; | |
} | |
} | |
@media screen, projection { | |
a { | |
background-color: transparent; | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
a { | |
color: rgb(3, 155, 229); | |
text-decoration: none; | |
-webkit-tap-highlight-color: transparent; | |
} | |
} | |
@media screen, projection { | |
a { | |
text-decoration: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab a { | |
color: rgba(238, 110, 115, 0.7); | |
display: block; | |
width: 100%; | |
height: 100%; | |
padding: 0px 24px; | |
font-size: 14px; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
transition: color 0.28s ease; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab a:hover, | |
.redditlabs-tabs .redditlab-tab a.active { | |
background-color: transparent; | |
color: rgb(238, 110, 115); | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
ul:not(.browser-default) li { | |
list-style-type: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab { | |
display: inline-block; | |
text-align: center; | |
line-height: 48px; | |
height: 48px; | |
padding: 0px; | |
margin: 0px; | |
} | |
} | |
@media screen, projection { | |
a { | |
background-color: transparent; | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
a { | |
color: rgb(3, 155, 229); | |
text-decoration: none; | |
-webkit-tap-highlight-color: transparent; | |
} | |
} | |
@media screen, projection { | |
a { | |
text-decoration: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab a { | |
color: rgba(238, 110, 115, 0.7); | |
display: block; | |
width: 100%; | |
height: 100%; | |
padding: 0px 24px; | |
font-size: 14px; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
transition: color 0.28s ease; | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
ul:not(.browser-default) li { | |
list-style-type: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab { | |
display: inline-block; | |
text-align: center; | |
line-height: 48px; | |
height: 48px; | |
padding: 0px; | |
margin: 0px; | |
} | |
} | |
@media screen, projection { | |
a { | |
background-color: transparent; | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
a { | |
color: rgb(3, 155, 229); | |
text-decoration: none; | |
-webkit-tap-highlight-color: transparent; | |
} | |
} | |
@media screen, projection { | |
a { | |
text-decoration: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .redditlab-tab a { | |
color: rgba(238, 110, 115, 0.7); | |
display: block; | |
width: 100%; | |
height: 100%; | |
//padding: 0px 24px; | |
font-size: 14px; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
transition: color 0.28s ease; | |
} | |
} | |
@media screen, projection { | |
*, ::before, ::after { | |
box-sizing: inherit; | |
} | |
} | |
@media screen, projection { | |
ul:not(.browser-default) li { | |
list-style-type: none; | |
} | |
} | |
@media screen, projection { | |
.redditlabs-tabs .reddit-labs-indicator { | |
position: absolute; | |
bottom: 0px; | |
height: 2px; | |
background-color: rgb(246, 178, 181); | |
will-change: left, right; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Redditlabs Chrome Extension
A Chrome Extension that includes reddit.com's comment section into each page you visit
Project Overview
Project File Structure:
To start run:
See blog post