mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			86 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Sass
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Sass
		
	
	
	
	
	
//- 💫 CSS > COMPONENTS > CODE
 | 
						|
 | 
						|
//- Code block
 | 
						|
 | 
						|
.c-code-block
 | 
						|
    background: $color-front
 | 
						|
    color: $color-back
 | 
						|
    padding: 0.75em 0
 | 
						|
    border-radius: 2px
 | 
						|
    overflow: auto
 | 
						|
    width: 100%
 | 
						|
    max-width: 100%
 | 
						|
    white-space: pre
 | 
						|
    direction: ltr
 | 
						|
 | 
						|
    &.c-code-block--has-icon
 | 
						|
        padding: 0
 | 
						|
        display: flex
 | 
						|
 | 
						|
.c-code-block__icon
 | 
						|
    padding: 0 0 0 1rem
 | 
						|
    display: flex
 | 
						|
    justify-content: center
 | 
						|
    align-items: center
 | 
						|
    border-left: 6px solid
 | 
						|
 | 
						|
 | 
						|
//- Code block content
 | 
						|
 | 
						|
.c-code-block__content
 | 
						|
    display: block
 | 
						|
    font: normal normal 1.1rem/#{2} $font-code
 | 
						|
    padding: 1em 2em
 | 
						|
 | 
						|
 | 
						|
//- Inline code
 | 
						|
 | 
						|
*:not(.c-code-block) > code
 | 
						|
    font: normal 600 0.8em/#{1} $font-code
 | 
						|
    background: darken($color-theme-light, 5)
 | 
						|
    box-shadow: 1px 1px 0 rgba($color-front, 0.05)
 | 
						|
    text-shadow: 1px 1px 0 rgba($color-back, 0.5)
 | 
						|
    color: $color-front
 | 
						|
    padding: 0.1em 0.5em
 | 
						|
    margin: 0
 | 
						|
    border-radius: 1px
 | 
						|
    box-decoration-break: clone
 | 
						|
    white-space: nowrap
 | 
						|
 | 
						|
    .c-aside__content &
 | 
						|
        background: lighten($color-front, 10)
 | 
						|
        color: $color-back
 | 
						|
        text-shadow: none
 | 
						|
 | 
						|
 | 
						|
//- Syntax Highlighting
 | 
						|
 | 
						|
[class*="language-"] .token
 | 
						|
    &.comment, &.prolog, &.doctype, &.cdata, &.punctuation
 | 
						|
        color: map-get($syntax-highlighting, comment)
 | 
						|
 | 
						|
    &.property, &.tag, &.constant, &.symbol, &.deleted
 | 
						|
        color: map-get($syntax-highlighting, tag)
 | 
						|
 | 
						|
    &.boolean, &.number
 | 
						|
        color: map-get($syntax-highlighting, number)
 | 
						|
 | 
						|
    &.selector, &.attr-name, &.string, &.char, &.builtin, &.inserted
 | 
						|
        color: map-get($syntax-highlighting, selector)
 | 
						|
 | 
						|
    @at-root .language-css .token.string,
 | 
						|
    &.operator, &.entity, &.url, &.variable
 | 
						|
        color: map-get($syntax-highlighting, operator)
 | 
						|
 | 
						|
    &.atrule, &.attr-value, &.function
 | 
						|
        color: map-get($syntax-highlighting, function)
 | 
						|
 | 
						|
    &.regex, &.important
 | 
						|
        color: map-get($syntax-highlighting, regex)
 | 
						|
 | 
						|
    &.keyword
 | 
						|
        color: map-get($syntax-highlighting, keyword)
 | 
						|
 | 
						|
    &.italic
 | 
						|
        font-style: italic
 |