mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
style(css): fix sass linter errors and add descriptions to css files
This commit is contained in:
@ -11,10 +11,12 @@
|
|||||||
files:
|
files:
|
||||||
include: 'src/**/*.s+(a|c)ss'
|
include: 'src/**/*.s+(a|c)ss'
|
||||||
ignore:
|
ignore:
|
||||||
|
- 'src/css/flex-utils.scss'
|
||||||
|
- 'src/css/normalize.scss'
|
||||||
|
- 'src/css/text-alignment.scss'
|
||||||
- 'src/themes/ionic.functions.color.scss'
|
- 'src/themes/ionic.functions.color.scss'
|
||||||
- 'src/themes/ionic.mixins.scss'
|
- 'src/themes/ionic.mixins.scss'
|
||||||
- 'src/themes/license.scss'
|
- 'src/themes/license.scss'
|
||||||
- 'src/themes/normalize.scss'
|
|
||||||
- 'src/themes/util.scss'
|
- 'src/themes/util.scss'
|
||||||
- 'src/themes/version.scss'
|
- 'src/themes/version.scss'
|
||||||
- 'src/platform/cordova.*.scss'
|
- 'src/platform/cordova.*.scss'
|
||||||
|
@ -8,10 +8,12 @@ scss_files: 'src/**/*.scss'
|
|||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
- '*.css'
|
- '*.css'
|
||||||
|
- 'src/css/flex-utils.scss'
|
||||||
|
- 'src/css/normalize.scss'
|
||||||
|
- 'src/css/text-alignment.scss'
|
||||||
- 'src/themes/ionic.functions.color.scss'
|
- 'src/themes/ionic.functions.color.scss'
|
||||||
- 'src/themes/ionic.mixins.scss'
|
- 'src/themes/ionic.mixins.scss'
|
||||||
- 'src/themes/license.scss'
|
- 'src/themes/license.scss'
|
||||||
- 'src/themes/normalize.scss'
|
|
||||||
- 'src/themes/util.scss'
|
- 'src/themes/util.scss'
|
||||||
- 'src/themes/version.scss'
|
- 'src/themes/version.scss'
|
||||||
- 'src/platform/cordova.*.scss'
|
- 'src/platform/cordova.*.scss'
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
@import "../themes/ionic.globals";
|
@import "../themes/ionic.globals";
|
||||||
|
|
||||||
|
// Ionic Colors
|
||||||
|
// --------------------------------------------------
|
||||||
|
// Generates the color classes and variables based on the
|
||||||
|
// colors map
|
||||||
|
|
||||||
@mixin generate-color($color-name) {
|
@mixin generate-color($color-name) {
|
||||||
$value: map-get($colors, $color-name);
|
$value: map-get($colors, $color-name);
|
||||||
|
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
// Column Alignment
|
// Flex Utilities
|
||||||
|
// --------------------------------------------------
|
||||||
|
// Creates flex attributes to align flex containers
|
||||||
|
// and items
|
||||||
|
|
||||||
|
// Align Self
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
[align-self-start] {
|
[align-self-start] {
|
||||||
@ -22,7 +27,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Column Wrap
|
// Flex Wrap
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
[nowrap] {
|
[nowrap] {
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
@import "../themes/ionic.globals";
|
@import "../themes/ionic.globals";
|
||||||
@import "../themes/ionic.mixins";
|
@import "../themes/ionic.mixins";
|
||||||
|
|
||||||
|
// Float Elements
|
||||||
|
// --------------------------------------------------
|
||||||
|
// Creates float attributes based on screen size
|
||||||
|
|
||||||
// Creates text transform attributes based on screen size
|
|
||||||
@each $breakpoint in map-keys($screen-breakpoints) {
|
@each $breakpoint in map-keys($screen-breakpoints) {
|
||||||
$infix: breakpoint-infix($breakpoint, $screen-breakpoints);
|
$infix: breakpoint-infix($breakpoint, $screen-breakpoints);
|
||||||
|
|
||||||
|
@ -1,9 +1,18 @@
|
|||||||
@import "../themes/ionic.globals";
|
@import "../themes/ionic.globals";
|
||||||
@import "../themes/ionic.mixins";
|
@import "../themes/ionic.mixins";
|
||||||
|
|
||||||
|
|
||||||
|
// Element Space
|
||||||
|
// --------------------------------------------------
|
||||||
|
// Creates padding and margin attributes to be used on
|
||||||
|
// any element
|
||||||
|
|
||||||
$padding: var(--ion-padding, 16px);
|
$padding: var(--ion-padding, 16px);
|
||||||
$margin: var(--ion-margin, 16px);
|
$margin: var(--ion-margin, 16px);
|
||||||
|
|
||||||
|
// Padding
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
[no-padding] {
|
[no-padding] {
|
||||||
@include padding(0);
|
@include padding(0);
|
||||||
|
|
||||||
@ -61,10 +70,10 @@ $margin: var(--ion-margin, 16px);
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Content Margin
|
// Margin
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
ion-app [no-margin] {
|
[no-margin] {
|
||||||
@include margin(0);
|
@include margin(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,4 +114,3 @@ ion-app [no-margin] {
|
|||||||
[margin-horizontal] {
|
[margin-horizontal] {
|
||||||
@include margin-horizontal($margin);
|
@include margin-horizontal($margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
@import "../themes/ionic.globals";
|
@import "../themes/ionic.globals";
|
||||||
@import "../themes/ionic.mixins";
|
@import "../themes/ionic.mixins";
|
||||||
|
|
||||||
|
|
||||||
|
// Structure
|
||||||
|
// --------------------------------------------------
|
||||||
|
// Adds structural css to the native html elements
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
@ -45,5 +50,6 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[hidden] {
|
[hidden] {
|
||||||
|
// scss-lint:disable ImportantRule
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
@import "../themes/ionic.globals";
|
@import "../themes/ionic.globals";
|
||||||
@import "../themes/ionic.mixins";
|
@import "../themes/ionic.mixins";
|
||||||
|
|
||||||
|
// Text Alignment
|
||||||
|
// --------------------------------------------------
|
||||||
// Creates text alignment attributes based on screen size
|
// Creates text alignment attributes based on screen size
|
||||||
|
|
||||||
@each $breakpoint in map-keys($screen-breakpoints) {
|
@each $breakpoint in map-keys($screen-breakpoints) {
|
||||||
$infix: breakpoint-infix($breakpoint, $screen-breakpoints);
|
$infix: breakpoint-infix($breakpoint, $screen-breakpoints);
|
||||||
|
|
||||||
@ -34,12 +36,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
[text#{$infix}-nowrap] {
|
[text#{$infix}-nowrap] {
|
||||||
// scss-lint:disable ImportantRule
|
|
||||||
white-space: nowrap !important;
|
white-space: nowrap !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
[text#{$infix}-wrap] {
|
[text#{$infix}-wrap] {
|
||||||
// scss-lint:disable ImportantRule
|
|
||||||
white-space: normal !important;
|
white-space: normal !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
@import "../themes/ionic.globals";
|
@import "../themes/ionic.globals";
|
||||||
@import "../themes/ionic.mixins";
|
@import "../themes/ionic.mixins";
|
||||||
|
|
||||||
|
// Text Transformation
|
||||||
|
// --------------------------------------------------
|
||||||
// Creates text transform attributes based on screen size
|
// Creates text transform attributes based on screen size
|
||||||
|
|
||||||
@each $breakpoint in map-keys($screen-breakpoints) {
|
@each $breakpoint in map-keys($screen-breakpoints) {
|
||||||
$infix: breakpoint-infix($breakpoint, $screen-breakpoints);
|
$infix: breakpoint-infix($breakpoint, $screen-breakpoints);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@import "../themes/ionic.globals";
|
@import "../themes/ionic.globals";
|
||||||
@import "../themes/ionic.mixins";
|
@import "../themes/ionic.mixins";
|
||||||
|
|
||||||
// App Typography
|
// Typography
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
/// @prop - Font weight of all headings
|
/// @prop - Font weight of all headings
|
||||||
@ -44,8 +44,8 @@ $h6-font-size: calc(#{$h1-font-size} - #{$h-step} * 5) !default;
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
background-color: transparent;
|
|
||||||
color: ion-color(primary, base);
|
color: ion-color(primary, base);
|
||||||
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
|
Reference in New Issue
Block a user