first commit
This commit is contained in:
commit
1ea34121d1
17
.gitignore
vendored
Normal file
17
.gitignore
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
.DS_Store
|
||||||
|
node_modules/
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
/test/unit/coverage/
|
||||||
|
/test/e2e/reports/
|
||||||
|
selenium-debug.log
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
/package-lock.json
|
26
device.scss
Normal file
26
device.scss
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
/**
|
||||||
|
* Unified Theme
|
||||||
|
* 通用个性化主题
|
||||||
|
*/
|
||||||
|
|
||||||
|
@mixin _PHONE {
|
||||||
|
/* #ifdef H5 */
|
||||||
|
@media screen and (min-width: 0px) and (max-width: 750px) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
@mixin _PAD {
|
||||||
|
/* #ifdef H5 */
|
||||||
|
@media screen and (min-width: 751px) and (max-width: 1024px) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
@mixin _DESK {
|
||||||
|
/* #ifdef H5 */
|
||||||
|
@media screen and (min-width: 751px) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
/* #endif */
|
||||||
|
}
|
63
triangle.scss
Normal file
63
triangle.scss
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
//***************************************
|
||||||
|
// * 三角函数
|
||||||
|
//***************************************
|
||||||
|
@function fact($number) {
|
||||||
|
$value: 1;
|
||||||
|
@if $number>0 {
|
||||||
|
@for $i from 1 through $number {
|
||||||
|
$value: $value * $i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@return $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@function pow($number, $exp) {
|
||||||
|
$value: 1;
|
||||||
|
@if $exp>0 {
|
||||||
|
@for $i from 1 through $exp {
|
||||||
|
$value: $value * $number;
|
||||||
|
}
|
||||||
|
} @else if $exp < 0 {
|
||||||
|
@for $i from 1 through -$exp {
|
||||||
|
$value: $value / $number;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@return $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@function rad($angle) {
|
||||||
|
$unit: unit($angle);
|
||||||
|
$unitless: $angle / ($angle * 0 + 1);
|
||||||
|
@if $unit==deg {
|
||||||
|
$unitless: $unitless / 180 * pi();
|
||||||
|
}
|
||||||
|
@return $unitless;
|
||||||
|
}
|
||||||
|
|
||||||
|
@function pi() {
|
||||||
|
@return 3.14159265359;
|
||||||
|
}
|
||||||
|
|
||||||
|
@function sin($angle) {
|
||||||
|
$sin: 0;
|
||||||
|
$angle: rad($angle);
|
||||||
|
// Iterate a bunch of times.
|
||||||
|
@for $i from 0 through 10 {
|
||||||
|
$sin: $sin + pow(-1, $i) * pow($angle, (2 * $i + 1)) / fact(2 * $i + 1);
|
||||||
|
}
|
||||||
|
@return $sin;
|
||||||
|
}
|
||||||
|
|
||||||
|
@function cos($angle) {
|
||||||
|
$cos: 0;
|
||||||
|
$angle: rad($angle);
|
||||||
|
// Iterate a bunch of times.
|
||||||
|
@for $i from 0 through 10 {
|
||||||
|
$cos: $cos + pow(-1, $i) * pow($angle, 2 * $i) / fact(2 * $i);
|
||||||
|
}
|
||||||
|
@return $cos;
|
||||||
|
}
|
||||||
|
|
||||||
|
@function tan($angle) {
|
||||||
|
@return sin($angle) / cos($angle);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user