1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-18 22:24:38 +01:00
slate/examples/index.css
2016-06-28 18:26:56 -07:00

128 lines
1.4 KiB
CSS

html {
padding: 20px;
font-family: 'Roboto', sans-serif;
line-height: 1.4;
background: #eee;
}
main {
max-width: 42em;
margin: 0 auto;
}
p {
margin: 0;
}
img {
max-width: 100%;
}
blockquote {
border-left: 2px solid #ddd;
margin-left: 0;
padding-left: 10px;
color: #aaa;
font-style: italic;
}
table {
border-collapse: collapse;
}
td {
padding: 10px;
border: 2px solid #ddd;
}
/**
* Icons.
*/
.material-icons {
font-size: 18px;
}
/**
* App.
*/
.tabs {
text-align: center;
margin-bottom: 30px;
}
.tab {
color: #aaa;
display: inline-block;
text-decoration: none;
}
.tab + .tab {
margin-left: 20px;
}
.tab.active {
color: black;
font-weight: bold;
}
/**
* Example.
*/
.example {
background: #fff;
padding: 20px;
}
.editor > * > * + * {
margin-top: 1em;
}
.menu > * {
display: inline-block;
}
.menu > * + * {
margin-left: 10px;
}
.button {
color: #ccc;
cursor: pointer;
}
.button[data-active="true"] {
color: black;
}
.toolbar-menu {
padding: 1px 0 17px 18px;
margin: 0 -20px;
border-bottom: 2px solid #eee;
margin-bottom: 20px;
}
.hover-menu {
padding: 8px 7px 6px;
position: absolute;
z-index: 1;
top: -10000px;
left: -10000px;
margin-top: -6px;
opacity: 0;
background-color: #222;
border-radius: 4px;
transition: opacity .75s;
}
.hover-menu .button {
color: #aaa;
}
.hover-menu .button[data-active="true"] {
color: #fff;
}