Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c0072eac1 | |||
| fdfee4d3bb | |||
| d3968ca711 | |||
| 48a7b47319 | |||
| 2801749573 |
@@ -43,7 +43,7 @@ jobs:
|
|||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v3
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v2
|
uses: github/codeql-action/autobuild@v3
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 https://git.io/JvXDl
|
||||||
@@ -68,4 +68,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v3
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ For more details about the features please visit [here](https://toha-guides.netl
|
|||||||
- Tiếng Việt
|
- Tiếng Việt
|
||||||
- Turkish
|
- Turkish
|
||||||
- Arabic (العربية)
|
- Arabic (العربية)
|
||||||
- Português
|
- Português Europeu
|
||||||
- Català
|
- Català
|
||||||
- Português Brasileiro
|
- Português Brasileiro
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,24 @@ pre {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$alert-types: ('success', 'info', 'warning', 'danger');
|
||||||
|
|
||||||
|
.alert {
|
||||||
|
@each $type in $alert-types {
|
||||||
|
&.#{$type} {
|
||||||
|
background: get-alert-bg-color($type, 'light');
|
||||||
|
svg {
|
||||||
|
width: 1.25rem;
|
||||||
|
height: 1.25rem;
|
||||||
|
color: get-alert-text-color($type, 'light') !important;
|
||||||
|
}
|
||||||
|
strong {
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
color: get-alert-text-color($type, 'light') !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
html[data-theme='dark'] {
|
html[data-theme='dark'] {
|
||||||
.paginator {
|
.paginator {
|
||||||
@@ -45,4 +63,17 @@ html[data-theme='dark'] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.alert {
|
||||||
|
@each $type in $alert-types {
|
||||||
|
&.#{$type} {
|
||||||
|
background: get-alert-bg-color($type, 'dark');
|
||||||
|
svg {
|
||||||
|
color: get-alert-text-color($type, 'dark') !important;
|
||||||
|
}
|
||||||
|
strong {
|
||||||
|
color: get-alert-text-color($type, 'dark') !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,3 +50,23 @@
|
|||||||
color: get-dark-color('text-over-accent-color');
|
color: get-dark-color('text-over-accent-color');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@function get-alert-bg-color($type, $mode) {
|
||||||
|
$colors: map-get($alerts, $type);
|
||||||
|
@if $mode == 'light' {
|
||||||
|
@return map-get($colors, 'bg-color');
|
||||||
|
} @else {
|
||||||
|
@return map-get($colors, 'text-color');
|
||||||
|
}
|
||||||
|
@return red;
|
||||||
|
}
|
||||||
|
|
||||||
|
@function get-alert-text-color($type, $mode) {
|
||||||
|
$colors: map-get($alerts, $type);
|
||||||
|
@if $mode == 'light' {
|
||||||
|
@return map-get($colors, 'text-color');
|
||||||
|
} @else {
|
||||||
|
@return map-get($colors, 'bg-color');
|
||||||
|
}
|
||||||
|
@return red;
|
||||||
|
}
|
||||||
|
|||||||
@@ -20,20 +20,25 @@ $progress-bar-colors: (
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin circular-progress-animation-breakpoints() {
|
@mixin circular-progress-animation-breakpoints() {
|
||||||
$progress: 50;
|
$progress: 0;
|
||||||
$duration: 0;
|
$duration: 0;
|
||||||
|
$delay: 1.8;
|
||||||
|
|
||||||
@for $i from 1 through 10 {
|
@for $i from 0 through 20 {
|
||||||
.circular-progress-percentage-#{$progress} {
|
.circular-progress-percentage-#{$progress} {
|
||||||
animation: circular-loading-#{$progress} #{$duration}s linear forwards 1.8s;
|
animation: circular-loading-#{$progress} #{$duration}s linear forwards 1.8s;
|
||||||
}
|
}
|
||||||
|
.circular-progress-percentage-#{$progress}-delay {
|
||||||
|
animation-delay: #{$delay}s;
|
||||||
|
}
|
||||||
$progress: $progress + 5;
|
$progress: $progress + 5;
|
||||||
$duration: $duration + 0.18;
|
$duration: $duration + 0.18;
|
||||||
|
$delay: $duration + 1.8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin circular-progress-animation-keyframes($progress, $degree, $keyframes) {
|
@mixin circular-progress-animation-keyframes($progress, $degree, $keyframes) {
|
||||||
@for $i from 1 through $keyframes {
|
@for $i from 0 through $keyframes {
|
||||||
@keyframes circular-loading-#{$progress} {
|
@keyframes circular-loading-#{$progress} {
|
||||||
0% {
|
0% {
|
||||||
transform: rotate(0);
|
transform: rotate(0);
|
||||||
@@ -122,7 +127,6 @@ $progress-bar-colors: (
|
|||||||
border-bottom-left-radius: 80px;
|
border-bottom-left-radius: 80px;
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
transform-origin: center right;
|
transform-origin: center right;
|
||||||
animation: circular-loading-1 1.8s linear forwards;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.circular-progress-value {
|
.circular-progress-value {
|
||||||
@@ -144,8 +148,7 @@ $progress-bar-colors: (
|
|||||||
}
|
}
|
||||||
@include circular-progress-bar-color();
|
@include circular-progress-bar-color();
|
||||||
@include circular-progress-animation-breakpoints();
|
@include circular-progress-animation-breakpoints();
|
||||||
@include circular-progress-animation-keyframes($progress: 50, $degree: 0, $keyframes: 10);
|
@include circular-progress-animation-keyframes($progress: 0, $degree: 0, $keyframes: 20);
|
||||||
@include circular-progress-animation-keyframes($progress: 1, $degree: 180, $keyframes: 5);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@include media('<=large') {
|
@include media('<=large') {
|
||||||
|
|||||||
@@ -93,3 +93,30 @@ $brand-colors: (
|
|||||||
'diaspora': #1e1e1e,
|
'diaspora': #1e1e1e,
|
||||||
'whatsapp': #25d366,
|
'whatsapp': #25d366,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$alerts: (
|
||||||
|
'success': (
|
||||||
|
// green 100
|
||||||
|
'bg-color': #dcfce7,
|
||||||
|
// green 800
|
||||||
|
'text-color': #166534,
|
||||||
|
),
|
||||||
|
'info': (
|
||||||
|
// sky 100
|
||||||
|
'bg-color': #e0f2fe,
|
||||||
|
// sky 800
|
||||||
|
'text-color': #075985,
|
||||||
|
),
|
||||||
|
'warning': (
|
||||||
|
// yellow 100
|
||||||
|
'bg-color': #fef9c3,
|
||||||
|
// yellow 800
|
||||||
|
'text-color': #854d0e,
|
||||||
|
),
|
||||||
|
'danger': (
|
||||||
|
// red 100
|
||||||
|
'bg-color': #fee2e2,
|
||||||
|
// red 800
|
||||||
|
'text-color': #991b1b,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
module:
|
module:
|
||||||
|
hugoVersion:
|
||||||
|
min: "0.118.0"
|
||||||
|
extended: true
|
||||||
mounts:
|
mounts:
|
||||||
- source: content
|
- source: content
|
||||||
target: content
|
target: content
|
||||||
|
|||||||
@@ -124,3 +124,7 @@ other = "Nota legal"
|
|||||||
|
|
||||||
[search]
|
[search]
|
||||||
other = "Pesquisar"
|
other = "Pesquisar"
|
||||||
|
|
||||||
|
[minute]
|
||||||
|
one = "minuto"
|
||||||
|
other = "minutos"
|
||||||
@@ -124,3 +124,7 @@ other = "Nota legal"
|
|||||||
|
|
||||||
[search]
|
[search]
|
||||||
other = "Pesquisar"
|
other = "Pesquisar"
|
||||||
|
|
||||||
|
[minute]
|
||||||
|
one = "minuto"
|
||||||
|
other = "minutos"
|
||||||
@@ -12,10 +12,16 @@
|
|||||||
{{ if hasPrefix .color "#"}}
|
{{ if hasPrefix .color "#"}}
|
||||||
{{ $predefinedColor = false }}
|
{{ $predefinedColor = false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ $leftProgress := 0 }}
|
||||||
|
{{ $rightProgress := .percentage }}
|
||||||
|
{{ if ge .percentage 50 }}
|
||||||
|
{{ $rightProgress = 50 }}
|
||||||
|
{{ $leftProgress = sub .percentage 50 }}
|
||||||
|
{{ end }}
|
||||||
<div class="circular-progress {{if $predefinedColor}}{{ .color }}{{end}}">
|
<div class="circular-progress {{if $predefinedColor}}{{ .color }}{{end}}">
|
||||||
<span class="circular-progress-left">
|
<span class="circular-progress-left">
|
||||||
<span
|
<span
|
||||||
class="circular-progress-bar circular-progress-percentage-{{ .percentage }}"
|
class="circular-progress-bar circular-progress-percentage-{{ $leftProgress }} circular-progress-percentage-50-delay"
|
||||||
{{ if not $predefinedColor }}
|
{{ if not $predefinedColor }}
|
||||||
style="border-color: {{.color}};"
|
style="border-color: {{.color}};"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -23,7 +29,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<span class="circular-progress-right">
|
<span class="circular-progress-right">
|
||||||
<span
|
<span
|
||||||
class="circular-progress-bar"
|
class="circular-progress-bar circular-progress-percentage-{{ $rightProgress }}"
|
||||||
{{ if not $predefinedColor }}
|
{{ if not $predefinedColor }}
|
||||||
style="border-color: {{.color}};"
|
style="border-color: {{.color}};"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -1,3 +1,16 @@
|
|||||||
<div class="alert alert-{{ .Get "type"}}">
|
{{ $type := .Get "type"}}
|
||||||
<strong>{{.Inner | markdownify }}</strong>
|
{{ $icon := "alert-circle"}}
|
||||||
|
{{ if eq $type "success" }}
|
||||||
|
{{ $icon = "check-circle"}}
|
||||||
|
{{ else if eq $type "warning" }}
|
||||||
|
{{ $icon = "alert-triangle"}}
|
||||||
|
{{ else if eq $type "danger" }}
|
||||||
|
{{ $icon = "alert-octagon"}}
|
||||||
|
{{ else if eq $type "info" }}
|
||||||
|
{{ $icon = "info"}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="alert {{ $type }}">
|
||||||
|
<span><i data-feather="{{$icon}}"></i></span>
|
||||||
|
<span><strong>{{.Inner | markdownify }}</strong></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user