From 919ff123773b7cf4e6da39fec08327eb58d89fe6 Mon Sep 17 00:00:00 2001 From: Stefanie Fluin Date: Wed, 3 May 2017 10:32:15 -0700 Subject: [PATCH] fix(aio): cheatsheet table layout fix --- aio/content/guide/cheatsheet.md | 28 +++++++++++++--------------- aio/src/styles/2-modules/_table.scss | 8 ++++++++ 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/aio/content/guide/cheatsheet.md b/aio/content/guide/cheatsheet.md index 50b123fa61..c207efeb46 100644 --- a/aio/content/guide/cheatsheet.md +++ b/aio/content/guide/cheatsheet.md @@ -3,9 +3,8 @@ Cheat Sheet @description -
- - +
+
Bootstrapping

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; @@ -19,7 +18,7 @@ Cheat Sheet

- +
NgModules

import { NgModule } from '@angular/core'; @@ -54,7 +53,7 @@ is available to declarations of this module.

- +
@@ -120,7 +119,7 @@ is available to declarations of this module.

Template syntax
- +
Built-in directives

import { CommonModule } from '@angular/common'; @@ -146,7 +145,7 @@ is available to declarations of this module.

- +
Forms

import { FormsModule } from '@angular/forms'; @@ -160,7 +159,7 @@ is available to declarations of this module.

- +
Class decorators

import { Directive, ... } from '@angular/core'; @@ -187,7 +186,7 @@ is available to declarations of this module.

- +
Directive configuration

@Directive({ property1: value1, ... }) @@ -207,7 +206,7 @@ is available to declarations of this module.

- +
Component configuration

@@ -234,7 +233,7 @@ so the @Directive configuration applies to components as well

- +
Class field decorators for directives and components

import { Input, ... } from '@angular/core'; @@ -277,7 +276,7 @@ so the @Directive configuration applies to components as well

- +
Directive and component change detection and lifecycle hooks

(implemented as class methods) @@ -323,7 +322,7 @@ so the @Directive configuration applies to components as well

- +
@@ -343,7 +342,7 @@ so the @Directive configuration applies to components as well

Dependency injection configuration
- +
Routing and navigation

import { Routes, RouterModule, ... } from '@angular/router'; @@ -388,5 +387,4 @@ so the @Directive configuration applies to components as well

-
\ No newline at end of file diff --git a/aio/src/styles/2-modules/_table.scss b/aio/src/styles/2-modules/_table.scss index cd49bce85c..bc88868cc3 100644 --- a/aio/src/styles/2-modules/_table.scss +++ b/aio/src/styles/2-modules/_table.scss @@ -8,6 +8,10 @@ table { width: 100%; } + &.is-fixed-layout { + table-layout: fixed; + } + thead { vertical-align: middle; border-color: inherit; @@ -83,4 +87,8 @@ table { } } +} + +#cheatsheet table tbody td { + overflow: auto; } \ No newline at end of file