+
+/* Rules for rich text */
+
+.richtext,
+.prose {
+ h1, h2 {
+ padding-bottom: $lineheight/2;
+ border-bottom: 1px dashed #cccccc;
+ margin-bottom: $lineheight/2;
+ }
+
+ h1 {
+ font-size: 24px;
+ }
+
+ h2 {
+ font-size: 18px;
+ }
+
+ h3 {
+ font-size: $typeheight;
+ }
+
+ code {
+ font-size: 13px;
+ background: #e8e8e8;
+ padding: 2px 3px;
+ }
+
+ pre {
+ font-size: 13px;
+ background: #e8e8e8;
+ padding: 2px 3px;
+
+ code {
+ padding: 0;
+ }
+ }
+
+ img {
+ padding: $lineheight;
+ background-color: $offwhite;
+ display: block;
+ max-width: 100%;
+ margin: auto;
+ }
+
+ blockquote {
+ border-left: $lineheight solid $offwhite;
+ padding-left: $lineheight;
+ margin: 0;
+ color: #7E7E7E;
+ }
+
+ ul, ol {
+ padding-left: $lineheight;
+ margin-bottom: $lineheight;
+ margin-left: $lineheight;
+ }
+
+ ul li {
+ list-style: disc;
+ }
+
+ ol li {
+ list-style: decimal;
+ }
+}
+
+.diary_post .richtext {
+ margin-top: $lineheight;
+ }
+
+.comments .richtext {
+ margin-left: 70px;
+ margin-top: 0;
+}
+
+/* Rules for rich text editors */
+
+.richtext_container {
+ margin-bottom: $lineheight;
+
+ .richtext_content {
+ width: 50%;
+ display: inline-block;
+ vertical-align: top;
+
+ .richtext_preview {
+ display: inline-block;
+ padding: $lineheight;
+ background-color: $offwhite;
+ overflow-x: auto;
+
+ &.loading {
+ background-image: image-url("loading.gif");
+ background-repeat: no-repeat;
+ background-position: center;
+ }
+
+ > :first-child {
+ margin-top: 0px;
+ }
+ }
+ }
+
+ .richtext_help {
+ display: inline-block;
+ vertical-align: top;
+ margin-left: 15px;
+ background-color: #f8f8ff;
+ padding: $lineheight/2;
+ width: 220px;
+
+ ul {
+ margin-bottom: 0;
+ }
+
+ h4.heading, li {
+ border-bottom: 1px solid #ccc;
+ margin-bottom: $lineheight/4;
+ padding-bottom: $lineheight/4;
+ }
+
+ li h4, li span, li p {
+ display: inline-block;
+ vertical-align: top;
+ font-size: 11px;
+ }
+
+ li h4 {
+ width: 40%;
+ margin: 0;
+ }
+
+ li span, li p {
+ width: 50%;
+ margin-left: $lineheight/2;
+ margin-bottom: $lineheight/4;
+ white-space: nowrap;
+ }
+ }
+}
+
+/* Rules for the user notes list */
+
+.note_list {
+ tr.creator {
+ background-color: #eeeeee;
+ }
+
+ td {
+ padding: 3px;
+ }
+
+ p {
+ margin-bottom: 0px;
+ }
+}
+
+/* Rules for the notes interface */
+
+.leaflet-popup-content .note {
+ padding-top: $lineheight/2;
+}
+
+.leaflet-popup-content .note {
+ h2 {
+ margin-bottom: $lineheight/2;
+ }
+
+ div {
+ margin-top: $lineheight/2;
+ }
+
+ .permalink {
+ position: absolute;
+ top: $lineheight/4;
+ left: $lineheight/4;
+ min-width: 15px;
+ min-height: 15px;
+ }
+
+ .permalink span {
+ display: none;
+ padding-left: $lineheight;
+ }
+
+ .permalink:hover span {
+ display: block;
+ }
+
+ .warning {
+ display: block;
+ background-color: #ffe0cc;
+ padding: 4px 6px;
+ margin-bottom: $lineheight/2;
+ }
+
+ .comment_body {
+ margin-top: 2px;
+ margin-bottom: 2px;
+
+ p {
+ margin-top: 0px;
+ margin-bottom: 0px;
+ }
+ }
+
+ .comment {
+ width: 100%;
+ height: 100px;
+ }
+
+ .buttons {
+ margin-top: $lineheight/4;
+ text-align: right;
+ }
+}
+
+/*
+ * Rules for the iD editor
+ */
+.id-embed {
+ width: 100%;
+ height: 100%;
+}
+
+/* Rules for rotating sidebar ads */
+.ad-container {
+ display: block;
+ height: 120px;
+ overflow: hidden;
+ position: relative;
+ border-bottom: 1px solid #ccc;
+}
+
+.ad {
+ height: 100px;
+ border: 0;
+ background: #fff;
+}