This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from ckeditor/t/ckeditor5/436
Feature: Added styles for the code block feature UI (see ckeditor/ckeditor5#436).
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
|
||
:root { | ||
--ck-color-code-block-label-background: hsl(0, 0%, 46%); | ||
} | ||
|
||
.ck.ck-editor__editable pre[data-language]::after { | ||
top: -1px; | ||
right: 10px; | ||
background: var(--ck-color-code-block-label-background); | ||
|
||
font-size: 10px; | ||
font-family: var(--ck-font-face); | ||
line-height: 16px; | ||
padding: var(--ck-spacing-tiny) var(--ck-spacing-medium); | ||
color: hsl(0, 0%, 100%); | ||
white-space: nowrap; | ||
} | ||
|
||
.ck.ck-code-block-dropdown .ck-dropdown__panel { | ||
/* There could be dozens of languages available. Use scroll to prevent a 10e6px dropdown. */ | ||
max-height: 250px; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
} |