Skip to content

Commit

Permalink
Merge branch 'main' into html-proof
Browse files Browse the repository at this point in the history
  • Loading branch information
hossainemruz authored Jan 1, 2024
2 parents 4e63746 + d3968ca commit 2c53393
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# 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)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ For more details about the features please visit [here](https://toha-guides.netl
- Tiếng Việt
- Turkish
- Arabic (العربية)
- Português
- Português Europeu
- Català
- Português Brasileiro

Expand Down
15 changes: 9 additions & 6 deletions assets/styles/sections/about.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ $progress-bar-colors: (
}

@mixin circular-progress-animation-breakpoints() {
$progress: 50;
$progress: 0;
$duration: 0;
$delay: 1.8;

@for $i from 1 through 10 {
@for $i from 0 through 20 {
.circular-progress-percentage-#{$progress} {
animation: circular-loading-#{$progress} #{$duration}s linear forwards 1.8s;
}
.circular-progress-percentage-#{$progress}-delay {
animation-delay: #{$delay}s;
}
$progress: $progress + 5;
$duration: $duration + 0.18;
$delay: $duration + 1.8;
}
}

@mixin circular-progress-animation-keyframes($progress, $degree, $keyframes) {
@for $i from 1 through $keyframes {
@for $i from 0 through $keyframes {
@keyframes circular-loading-#{$progress} {
0% {
transform: rotate(0);
Expand Down Expand Up @@ -122,7 +127,6 @@ $progress-bar-colors: (
border-bottom-left-radius: 80px;
border-right: 0;
transform-origin: center right;
animation: circular-loading-1 1.8s linear forwards;
}
}
.circular-progress-value {
Expand All @@ -144,8 +148,7 @@ $progress-bar-colors: (
}
@include circular-progress-bar-color();
@include circular-progress-animation-breakpoints();
@include circular-progress-animation-keyframes($progress: 50, $degree: 0, $keyframes: 10);
@include circular-progress-animation-keyframes($progress: 1, $degree: 180, $keyframes: 5);
@include circular-progress-animation-keyframes($progress: 0, $degree: 0, $keyframes: 20);
}

@include media('<=large') {
Expand Down
4 changes: 4 additions & 0 deletions i18n/pt-br.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@ other = "Nota legal"

[search]
other = "Pesquisar"

[minute]
one = "minuto"
other = "minutos"
4 changes: 4 additions & 0 deletions i18n/pt.toml → i18n/pt-pt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@ other = "Nota legal"

[search]
other = "Pesquisar"

[minute]
one = "minuto"
other = "minutos"
10 changes: 8 additions & 2 deletions layouts/partials/misc/badge.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@
{{ if hasPrefix .color "#"}}
{{ $predefinedColor = false }}
{{ end }}
{{ $leftProgress := 0 }}
{{ $rightProgress := .percentage }}
{{ if ge .percentage 50 }}
{{ $rightProgress = 50 }}
{{ $leftProgress = sub .percentage 50 }}
{{ end }}
<div class="circular-progress {{if $predefinedColor}}{{ .color }}{{end}}">
<span class="circular-progress-left">
<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 }}
style="border-color: {{.color}};"
{{ end }}
></span>
</span>
<span class="circular-progress-right">
<span
class="circular-progress-bar"
class="circular-progress-bar circular-progress-percentage-{{ $rightProgress }}"
{{ if not $predefinedColor }}
style="border-color: {{.color}};"
{{ end }}
Expand Down

0 comments on commit 2c53393

Please sign in to comment.