1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-23 00:32:31 +01:00
slate/examples/index.css

173 lines
2.0 KiB
CSS
Raw Permalink Normal View History

2016-06-21 19:34:51 -07:00
html,
input,
textarea {
2016-06-28 18:26:56 -07:00
font-family: 'Roboto', sans-serif;
line-height: 1.4;
background: #eee;
2016-06-21 19:34:51 -07:00
}
2016-07-06 14:54:13 -07:00
body {
margin: 0;
}
2016-06-21 19:34:51 -07:00
p {
margin: 0;
}
pre {
padding: 10px;
background-color: #eee;
2016-07-18 16:18:55 -07:00
white-space: pre-wrap;
}
2016-08-14 13:21:46 -07:00
:not(pre) > code {
background-color: #eee;
padding: 3px;
}
2016-06-28 18:26:56 -07:00
img {
max-width: 100%;
2016-06-30 10:43:24 -07:00
max-height: 20em;
}
img.active {
box-shadow: 0 0 0 2px blue;
}
2016-06-24 10:22:48 -07:00
blockquote {
border-left: 2px solid #ddd;
margin-left: 0;
2016-07-29 12:05:01 -07:00
margin-right: 0;
2016-06-24 10:22:48 -07:00
padding-left: 10px;
color: #aaa;
font-style: italic;
}
2016-07-29 12:05:01 -07:00
blockquote[dir="rtl"] {
border-left: none;
padding-left: 0;
padding-right: 10px;
border-right: 2px solid #ddd;
}
2016-06-21 19:34:51 -07:00
table {
border-collapse: collapse;
}
td {
padding: 10px;
border: 2px solid #ddd;
}
input {
font-size: .85em;
width: 100%;
padding: .5em;
border: 2px solid #ddd;
background: #fafafa;
}
input:focus {
outline: 0;
border-color: blue;
}
2016-06-24 10:22:48 -07:00
/**
* Icons.
*/
.material-icons {
font-size: 18px;
2016-11-16 17:25:27 -08:00
vertical-align: text-bottom;
2016-06-24 10:22:48 -07:00
}
/**
* App.
*/
.tabs {
2016-07-06 14:54:13 -07:00
padding: 20px;
background-color: #222;
2016-06-24 10:22:48 -07:00
text-align: center;
margin-bottom: 30px;
}
.tab {
2016-07-06 14:54:13 -07:00
color: #777;
2016-06-24 10:22:48 -07:00
display: inline-block;
text-decoration: none;
}
.tab + .tab {
2016-07-06 14:54:13 -07:00
margin-left: 30px;
2016-06-24 10:22:48 -07:00
}
.tab.active {
2016-07-06 14:54:13 -07:00
color: white;
2016-06-24 10:22:48 -07:00
}
/**
* Example.
*/
.example {
max-width: 42em;
margin: 0 auto;
2016-06-28 18:26:56 -07:00
padding: 20px;
background: #fff;
2016-06-21 19:34:51 -07:00
}
.editor > * > * + * {
margin-top: 1em;
}
.menu > * {
display: inline-block;
}
.menu > * + * {
2016-11-16 17:25:27 -08:00
margin-left: 15px;
2016-06-21 19:34:51 -07:00
}
.button {
color: #ccc;
cursor: pointer;
}
.button[data-active="true"] {
color: black;
}
2016-06-28 15:47:29 -07:00
.toolbar-menu {
2016-06-28 18:26:56 -07:00
padding: 1px 0 17px 18px;
margin: 0 -20px;
2016-06-28 15:47:29 -07:00
border-bottom: 2px solid #eee;
2016-06-28 18:26:56 -07:00
margin-bottom: 20px;
2016-06-28 15:47:29 -07:00
}
.hover-menu {
padding: 8px 7px 6px;
position: absolute;
z-index: 1;
top: -10000px;
left: -10000px;
2016-06-28 18:26:56 -07:00
margin-top: -6px;
2016-06-28 15:47:29 -07:00
opacity: 0;
background-color: #222;
border-radius: 4px;
2016-06-28 18:26:56 -07:00
transition: opacity .75s;
2016-06-28 15:47:29 -07:00
}
.hover-menu .button {
color: #aaa;
}
.hover-menu .button[data-active="true"] {
color: #fff;
}
.emoji.selected {
outline: 2px solid blue;
}