Skip to content

Instantly share code, notes, and snippets.

@mattbogado
mattbogado / custom.css
Created March 5, 2018 23:00
Updates to CSS for version 2
/* Global */
:root {
--color-primary : #F9D021;
--color-primary-hover : #F9D844;
}
/* Button Styling */
.btn {
@mattbogado
mattbogado / upsell.html
Last active March 5, 2018 22:57
Version 2: Hypothesis is that YP branding needs to be carried out to this pages as well.
<!-- Changes to top section:
includes changes to navbar and hero banner -->
<div class="pt-lg-4">
<nav class="navbar navbar-expand-md navbar-light bg-white">
<div class="container">
<a class="navbar-brand px-4" href="#">
<img src="assets/yp-tryp-logo_86x30.svg" width="155" height="53" alt="The Real Yellow Pages"/>
</a>
<button class="d-none d-sm-none navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
.supportTime {
font-size : 14px;
line-height: 0.2;
}
<!-- Replace header nav with this -->
<nav class="navbar navbar-expand-lg navbar-light bg-transparent">
<div class="container">
<a class="navbar-brand px-4" href="#">
<img src="assets/yp-tryp-logo_155x53.svg" width="155" height="53" alt="The Real Yellow Pages"/>
</a>
<button class="d-none d-sm-none navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
@mattbogado
mattbogado / paper-tabs.html
Created December 4, 2015 23:01
Centered paper-tabs example
<paper-toolbar id="mainToolbar">
<!-- Space to the Left -->
<span class="flex"></span>
<!-- Tabs -->
<paper-tabs id="mainTabs" attr-for-selected="data-route" selected="{{route}}">
<paper-tab data-route="home" href="/" on-click="onDataRouteClick">Home</paper-tab>
<paper-tab data-route="videos" href="/videos" on-click="onDataRouteClick">Videos</paper-tab>
<paper-tab data-route="photos" href="/photos" on-click="onDataRouteClick">Photos</paper-tab>
<paper-tab data-route="contact" href="/contact" on-click="onDataRouteClick">Contact</paper-tab>
@mattbogado
mattbogado / gist:8b8e065cd97c6c3583f0
Created November 21, 2015 00:43
paper-tabs issue
<paper-tabs class="bottom self-end" attr-for-selected="data-route" selected="[[route]]">
<paper-tab>
<a data-route="callsheets" href="/callsheets" on-click="onDataRouteClick" class="tab-link horizontal center-center layout">CALLSHEETS</a>
</paper-tab>
<paper-tab>
<a data-route="scenes" href="/scenes" on-click="onDataRouteClick" class="tab-link horizontal center-center layout">SCENES</a>
</paper-tab>
<paper-tab>
<a data-route="cast" href="/cast" on-click="onDataRouteClick" class="tab-link horizontal center-center layout">CAST</a>
</paper-tab>
@mattbogado
mattbogado / mui-zindex
Last active August 29, 2015 14:20
Material Design: z-index
body {
background: #eee;
}
.card {
background: #fff;
border-radius: 2px;
display: block;
float: left;
height: 50px;
@mattbogado
mattbogado / md_typography.css
Last active September 18, 2020 04:08
Material Design Font Sizes
/* Font Family */
<link href="http://fonts.googleapis.com/css?family=RobotoDraft:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en" rel="stylesheet" type="text/css">
body {
font-family: 'RobotoDraft', sans-serif;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
}
/* Typography */
.text-display-4 {