tinymce-studio-content.css 3.46 KB
Newer Older
1
/* NOTE: This file, which customizes mid-editing styling to match xmodule preview rendering, is 3 of 3 CSS files compiled in our production pipeline  */
Abdallah committed
2
.mce-content-body {
3 4
    padding: 10px;
    background-color: #fff;
5 6 7 8
    /* keep font-family in sync with CUSTOM_FONTS constant in Html editor XModule
     * (edx-platform/common/lib/xmodule/xmodule/js/src/html/edit.coffee)
     * and with acceptance tests in cms/djangoapps/contentstore/features/html-editor.feature
     */
9
    font-family: 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
10
    font-size: 16px;
11 12 13 14 15 16 17 18 19 20
    line-height: 1.6;
    color: #3c3c3c;
    scrollbar-3dlight-color: #F0F0EE;
    scrollbar-arrow-color: #676662;
    scrollbar-base-color: #F0F0EE;
    scrollbar-darkshadow-color: #DDDDDD;
    scrollbar-face-color: #E0E0DD;
    scrollbar-highlight-color: #F0F0EE;
    scrollbar-shadow-color: #F0F0EE;
    scrollbar-track-color: #F5F5F5;
cahrens committed
21 22
}

23
.mce-content-body h1 {
24 25 26 27 28 29
    color: #3c3c3c;
    font-weight: normal;
    font-size: 2em;
    line-height: 1.4em;
    letter-spacing: 1px;
    margin: 0 0 1.416em 0;
cahrens committed
30 31
}

32
.mce-content-body h2 {
33
    color: #646464;
34
    font-weight: 300;
35 36 37 38 39 40
    font-size: 1.2em;
    line-height: 1.2em;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
cahrens committed
41 42
}

43
.mce-content-body h3, .mce-content-body h4, .mce-content-body h5, .mce-content-body h6 {
44 45
    margin: 0 0 10px 0;
    font-weight: 600;
46 47
}

48
.mce-content-body h3 {
49
    font-size: 1.2em;
50 51
}

52
.mce-content-body h4 {
53
    font-size: 1em;
54 55
}

56
.mce-content-body h5 {
57
    font-size: .83em;
58 59
}

60
.mce-content-body h6 {
61
    font-size: 0.75em;
62 63
}

64
.mce-content-body p {
65 66 67 68
    margin-bottom: 1.416em;
    font-size: 1em;
    line-height: 1.6em !important;
    color: #3c3c3c;
69 70
}

71
.mce-content-body em, .mce-content-body i {
72
    font-style: italic;
73 74
}

75
.mce-content-body strong, .mce-content-body b {
76
    font-style: bold;
77 78
}

79
.mce-content-body p + p, .mce-content-body ul + p, .mce-content-body ol + p {
80
    margin-top: 20px;
81 82
}

83
.mce-content-body ol, .mce-content-body ul {
84 85 86 87
    margin: 1em 0;
    padding: 0 0 0 1em;
    color: #3c3c3c;

88 89
}

90
.mce-content-body ol li, .mce-content-body ul li {
91
    margin-bottom: 0.708em;
92 93
}

94
.mce-content-body ol {
95
    list-style: decimal outside none;
96 97
}

98
.mce-content-body ul {
99
    list-style: disc outside none;
100 101
}

102
.mce-content-body a, .mce-content-body a:link, .mce-content-body a:visited, .mce-content-body a:hover, .mce-content-body a:active {
103 104
    color: #1d9dd9;
}
105

106
.mce-content-body img {
107
    max-width: 100%;
cahrens committed
108 109
}

110
.mce-content-body pre {
111 112 113 114 115 116 117 118
  margin: 1em 0;
  color: #3c3c3c;
  font-family: monospace, serif;
  font-size: 1em;
  white-space: pre-wrap;
  word-wrap: break-word;
}

119
.mce-content-body code {
120 121 122
    font-family: monospace, serif;
    background: none;
    color: #3c3c3c;
123
    padding: 0;
124 125
}

126
.mce-content-body table {
127 128 129
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
130 131
}

132
.mce-content-body th {
133 134
    background: #eee;
    font-weight: bold;
135 136
}

137
.mce-content-body table td, .mce-content-body th {
138 139 140 141 142 143
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc !important;
    text-align: left;
    font-size: 14px;
}
144

145
.mce-content-body table td.cont-justified-left, .mce-content-body table th.cont-justified-left {
146 147 148
    text-align: left;
}

149
.mce-content-body table td.cont-justified-right, .mce-content-body table th.cont-justified-right {
150 151 152
    text-align: right;
}

153
.mce-content-body table td.cont-justified-center, .mce-content-body table th.cont-justified-center {
154 155
    text-align: center;
}