Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cc2113

Browse files
committed
Upgrade packages
Improve design
1 parent 7069605 commit 2cc2113

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
"build:style-coder": "sass src/scss/coder.scss:static/compiled/coder.css --style compressed",
1616
"build:style-main": "sass src/scss/style.scss:static/compiled/style.css --style compressed",
1717
"watch:scripts": "nodemon -e js -w src/js -x 'npm run build:scripts'",
18-
"watch:style-coder": "nodemon -e css -w src/scss -x 'npm run build:style-coder'",
19-
"watch:style-main": "nodemon -e css -w src/scss -x 'npm run build:style-main'",
18+
"watch:style-coder": "nodemon -e scss -w src/scss/coder.scss -x 'npm run build:style-coder'",
19+
"watch:style-main": "nodemon -e scss -w src/scss -x 'npm run build:style-main'",
2020
"build": "run-p build:*",
2121
"watch": "run-p watch:*"
2222
},
2323
"license": "MIT",
2424
"devDependencies": {
25-
"@babel/cli": "^7.17.10",
26-
"@babel/core": "^7.18.5",
27-
"@babel/preset-env": "^7.18.2",
28-
"babel-loader": "^8.2.5",
29-
"nodemon": "^2.0.16",
25+
"@babel/cli": "^7.22.10",
26+
"@babel/core": "^7.22.11",
27+
"@babel/preset-env": "^7.22.10",
28+
"babel-loader": "^9.1.3",
29+
"nodemon": "^3.0.1",
3030
"npm-run-all": "^4.1.5",
31-
"sass": "^1.52.3"
31+
"sass": "^1.66.1"
3232
},
3333
"dependencies": {
3434
"@getbase/base": "^5.2.0"

src/scss/coder.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
color: $color1;
77
font-size: .8em;
88
text-align: center;
9-
width: 12em;
9+
flex: 1 1 9em;
1010
}
1111

1212
.box-stat h4 {
@@ -17,6 +17,9 @@
1717
.boxes {
1818
background-color: $color3;
1919
padding: 1em 0;
20+
display: flex;
21+
flex-wrap: wrap;
22+
max-width: 100%;
2023
}
2124

2225
.boxes .box-stat:not(:last-child) {
@@ -56,11 +59,14 @@
5659
fill:rgb(128,177,211)
5760
}
5861

59-
.meta {
60-
background-color: $color4;
62+
// tabs
63+
.button {
64+
border-width: 1px 1px 0 1px;
65+
border-style: ridge;
66+
border-color: $color5;
67+
padding: 1em;
6168
}
6269

63-
// tabs
6470
.button.active {
6571
background-color: $color3;
6672
}

src/scss/nav.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ nav .button {
1717
margin: .2rem 0 0 .2rem;
1818
padding: .4rem 1rem;
1919
display: inline;
20+
border-radius: .3em;
2021
}

src/scss/style.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
$base-font-family: Roboto, Helvetica, sans-serif;
2-
$base-font-size: 17;
2+
$base-font-size: 18px;
3+
$base-line-height: 26px;
34
$base-heading-font-family: Arial Black;
45
$base-link-color: #0000ee;
56
$base-link-hover-color: #0000ff;
7+
$grid-gutter: 0px;
68

79
/* Import Base */
810
@import "../../node_modules/@getbase/base/scss/_mixins";

templates/coder/boxes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% raw %}
2-
<div class="flex flex-wrap boxes">
2+
<div class="boxes">
33
<div class="box-stat" title="The number of loaded repositories this user has pushed to.">
44
<i class="fa fa-code" aria-hidden="true"></i> Pushed to repos
55
<h4>{{ repos_pushed.length }}</h4>

0 commit comments

Comments
 (0)