- Button
- syntax:
button
or[role=button tabindex=0]
- syntax:
- Toggle Button
- syntax: Button +
[aria-pressed]
- syntax: Button +
- Menu button
- syntax: Button +
[aria-haspopup=true aria-expanded aria-controls]
- ref: https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton
- syntax: Button +
- Menu
- syntax:
nav>ul[role=menubar aria-activedescendant]>(li[role=presentation aria-selected=true]>a[role=menuitem]+ul[role=menu hidden])
- syntax:
- todo: check above code
This file contains hidden or 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
$svg-filters: no; | |
// add different output if it is used within the mixin filter | |
@function grayscale($value){ | |
@if $svg-filters == yes{ | |
@return $value | |
} @else { | |
@return desaturate($color, 100%) | |
} | |
} |
This file contains hidden or 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
@mixin inline-block{ | |
display: inline-block; | |
zoom: 1; | |
*display: inline; | |
} | |
@mixin opacity ($value) { | |
opacity: $value; | |
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=” $value * 100 “)”; | |
filter: alpha(opacity= $value * 100 ); |
This file contains hidden or 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
$pi: 3.14159265359; | |
@function power ($x, $n){ | |
$ret: 1; | |
@if $n >= 0 { | |
@for $i from 1 through $n { | |
$ret: $ret * $x; | |
} | |
} @else { | |
@for $i from $n through 0 { |
This file contains hidden or 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
$color-value: green; | |
$border-radius-value: 20px; | |
$box-shadow-value: inset 5px 5px 5px red; | |
@mixin progress{ | |
-webkit-appearance: none; | |
border: none; | |
width: 160px; | |
height: 16px; | |
overflow: hidden; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
var debug = { | |
getCallstack: function(){ | |
var err = (new Error), | |
caller_stack = err.stack.split("\n"), | |
stack = []; | |
for (var i = 0; i < caller_stack.length; i++) { | |
var caller = caller_stack[i], | |
caller_line = caller.split(":"), | |
caller_nf = caller_line[0].split("@"), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
<!-- Defines element markup --> | |
<template> | |
<div id="tab1" aria-controls=”panel1″ role=”tab” tabindex="0"> | |
<content></content> | |
</div> | |
</template> | |
<script>(function(window, document, undefined) { | |
// Refers to the "importer", which is index.html | |
var thatDoc = document; |
This file contains hidden or 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
body { | |
font-family: SegoeUI-Semibold; | |
} | |
$size: 90vh; | |
$fit-in: if(unit($size) == "vh", "height", "width"); | |
$viewbox: 0 0 196 97; | |
$font-size-in-svg: 52; | |
$width: if($fit-in == "width", $size, $size / nth($viewbox, 4) * nth($viewbox, 3)); |
OlderNewer