_editor.scss 4.9 KB
Newer Older
NGPixel's avatar
NGPixel committed
1

2 3
.editor-toolbar {
	z-index: 2;
4
	background-color: rgba(0,0,0,0.75);
5 6 7
	border: none;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
NGPixel's avatar
NGPixel committed
8 9
	opacity: 1;
	position: fixed;
10
	top: 51px;
NGPixel's avatar
NGPixel committed
11 12
	left: 0;
	width: 100%;
13 14 15 16 17

	&:hover {
		opacity: 1;
	}

NGPixel's avatar
NGPixel committed
18 19
	a {
		color: #FFF !important;
20 21
		border: none;
		transition: background-color 0.4s ease;
NGPixel's avatar
NGPixel committed
22

23
		&.active, &:hover, &:focus {
NGPixel's avatar
NGPixel committed
24
			background-color: rgba(0,0,0,0.5);
25
			outline: none;
NGPixel's avatar
NGPixel committed
26 27 28 29 30 31 32 33 34 35
		}

	}

	i.separator {
		margin-top: 5px;
		border-left-color: #000;
		border-right-color: #AAA;
	}

36 37
}

38 39 40 41 42 43 44 45 46
.editor-modal-load {

	display: flex;
	align-items: center;
	opacity: 0;
	transition: opacity .5s ease;

	span {
		font-size: 12px;
47
		color: mc('blue', '500');
48 49 50 51 52 53 54 55 56 57 58 59
	}

	i {
		margin-left: 10px;
		width: 32px;
		height: 32px;
		display: flex;
		justify-content: center;
		align-items: center;

		&::before {
			content: " ";
60
			@include spinner(mc('blue', '500'),0.5s,24px);
61 62 63 64 65 66 67
		}
	}

	&.is-active {
		opacity: 1;
	}

68 69
}

70
#btn-editor-image-upload, #btn-editor-file-upload {
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
	position: relative;
	overflow: hidden;

	> label {
		display: block;
		opacity: 0;
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		cursor: pointer;

		input[type=file] {
			opacity: 0;
			position: absolute;
			top: -9999px;
			left: -9999px;
		}

	}

	

95 96
}

97
.editor-modal-image-choices {
NGPixel's avatar
NGPixel committed
98 99 100
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
NGPixel's avatar
NGPixel committed
101
	
NGPixel's avatar
NGPixel committed
102 103 104
	overflow: auto;
	overflow-x: hidden;

NGPixel's avatar
NGPixel committed
105 106 107 108 109 110 111 112 113 114 115 116 117 118
	> em {
		display: flex;
		align-items: center;
		padding: 25px;
		color: mc('grey', '500');

		> i {
			font-size: 32px;
			margin-right: 10px;
			color: mc('grey', '300');
		}

	}

NGPixel's avatar
NGPixel committed
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
	> figure {
		display: flex;
		flex-direction: column;
		background-color: #FAFAFA;
		border-radius: 5px;
		padding: 5px;
		width: 160px;
		min-height: 205px;
		margin: 0 5px 10px 5px;
		cursor: pointer;
		justify-content: center;
		align-items: center;
		transition: background-color 0.4s ease;

		> img {
			border: 1px solid #DDD;
			border-radius: 5px;
			padding: 2px;
			background-color: #FFF;
			margin: 0 0 5px 0;
		}

		> span {
			font-size: 12px;
			
			> strong {
				text-overflow: ellipsis;
				white-space: nowrap;
				overflow: hidden;
				display: block;
				width: 150px;
				text-align: center;
			}

		}

		&:hover {
			background-color: #DDD;
		}

		&.is-active {
NGPixel's avatar
NGPixel committed
160
			background-color: mc('green', '500');
NGPixel's avatar
NGPixel committed
161 162 163
			color: #FFF;

			> img {
NGPixel's avatar
NGPixel committed
164
				border-color: darken(mc('green', '500'), 10%);
NGPixel's avatar
NGPixel committed
165 166 167 168 169 170 171 172
			}

			> span > strong {
				color: #FFF;
			}

		}

173
		&.is-contextopen {
NGPixel's avatar
NGPixel committed
174
			background-color: mc('blue', '500');
175 176 177
			color: #FFF;

			> img {
NGPixel's avatar
NGPixel committed
178
				border-color: darken(mc('blue', '500'), 10%);
179 180 181 182 183 184 185 186
			}

			> span > strong {
				color: #FFF;
			}

		}

NGPixel's avatar
NGPixel committed
187 188 189 190
	}

}

191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
.editor-modal-file-choices {
	overflow: auto;
	overflow-x: hidden;

	> em {
		display: flex;
		align-items: center;
		padding: 25px;
		color: mc('grey', '500');

		> i {
			font-size: 32px;
			margin-right: 10px;
			color: mc('grey', '300');
		}

	}

	> figure {
		display: flex;
		background-color: #FAFAFA;
		border-radius: 3px;
		padding: 5px;
		height: 34px;
		margin: 0 0 5px 0;
		cursor: pointer;
		justify-content: flex-start;
		align-items: center;
		transition: background-color 0.4s ease;

		> i {
			width: 16px;
		}

		> span {
			font-size: 14px;
			flex: 0 1 auto;
			padding: 0 15px;
			color: mc('grey', '600');

			&:first-of-type {
				flex: 1 0 auto;
				color: mc('grey', '800');
			}

			&:last-of-type {
				width: 100px;
			}

		}

		&:hover {
			background-color: #DDD;
		}

		&.is-active {
			background-color: mc('green', '500');
			color: #FFF;

			> span, strong {
				color: #FFF;
			}

		}

		&.is-contextopen {
			background-color: mc('blue', '500');
			color: #FFF;

			> span, strong {
				color: #FFF;
			}

		}

	}

}

NGPixel's avatar
NGPixel committed
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
.editor-modal-imagealign {

	.control > span {
		letter-spacing: 1px;
    text-transform: uppercase;
    color: #aeb1b5;
    font-size: 11px;
	}

	> .is-grouped {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.button > .icon {
		margin: 0;
	}

}

.editor-modal-folderlist {
NGPixel's avatar
NGPixel committed
292
	height: 100%;
NGPixel's avatar
NGPixel committed
293 294 295 296
	overflow: auto;
	overflow-x: hidden;
}

297 298
// CODE MIRROR

299 300 301
.CodeMirror {
	border-left: none;
	border-right: none;
NGPixel's avatar
NGPixel committed
302
	padding-top: 52px;
303
	font-family: $core-font-monospace;
304 305
}

NGPixel's avatar
NGPixel committed
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322
.CodeMirror .CodeMirror-code .cm-url {
	color: #00ACC1;
}
.CodeMirror .CodeMirror-code .cm-header-1 {
	color: #635c8c;
	font-size: 2em;
	font-weight: 400;
}
.CodeMirror .CodeMirror-code .cm-header-2 {
	color: #222324;
	font-size: 1.75em;
	font-weight: 300;
}
.CodeMirror .CodeMirror-code .cm-header-3 {
	color: #222324;
	font-size: 1.5em;
	font-weight: 300;
NGPixel's avatar
NGPixel committed
323 324 325 326
}

.editor-toolbar .fa {
	font-size: 14px;
327 328
}

329 330
// ACE EDITOR

331 332
.ace-container {
	position: relative;
NGPixel's avatar
NGPixel committed
333 334
}

335
/*.ace_scroller {
NGPixel's avatar
NGPixel committed
336 337 338 339
	width: 100%;
}
.ace_content {
	height: 100%;
340
}*/
NGPixel's avatar
NGPixel committed
341

NGPixel's avatar
NGPixel committed
342
#page-type-source .ace-container {
343 344 345
	min-height: 95vh;
}

NGPixel's avatar
NGPixel committed
346
#modal-editor-codeblock .ace-container {
NGPixel's avatar
NGPixel committed
347 348 349 350 351 352
	display: flex;
	align-items: stretch;
	padding: 0;
	position: relative;
	width: 100%;
	height: 100%;
NGPixel's avatar
NGPixel committed
353 354 355
}

#source-display, #codeblock-editor {
356 357 358 359 360
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
NGPixel's avatar
NGPixel committed
361
}