Skip to content

Commit 2f83de9

Browse files
authored
Merge pull request #2 from CESNET/next
Update theme for next big ownCloud server update
2 parents 204ade1 + 3cd8353 commit 2f83de9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1269
-497
lines changed

.github/workflows/php.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PHP Composer Build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
container: owncloudci/php:7.3
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: '15'
14+
- name: Install build dependencies
15+
working-directory: build
16+
run: npm install
17+
- name: Build scss assets
18+
working-directory: build
19+
run: npm run build-all
20+
- name: Build app distribution
21+
run: tar -czvf theme-cesnet.tar.gz appinfo apps core *.php README.md LICENSE AUTHORS.md
22+
- name: Release app distribution assets
23+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
24+
uses: softprops/action-gh-release@v1
25+
with:
26+
files: theme-cesnet.tar.gz
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
GNU AFFERO GENERAL PUBLIC LICENSE
1+
GNU AFFERO GENERAL PUBLIC LICENSE
22
Version 3, 19 November 2007
33

44
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
@@ -658,4 +658,4 @@ specific requirements.
658658
You should also get your employer (if you work as a programmer) or school,
659659
if any, to sign a "copyright disclaimer" for the program, if necessary.
660660
For more information on this, and how to apply and follow the GNU AGPL, see
661-
<http://www.gnu.org/licenses/>.
661+
<http://www.gnu.org/licenses/>.

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
1-
theme-cesnet
2-
==============
3-
4-
CESNET branded ownCloud theme with specifics
5-
for the ownCloud@CESNET instance.
6-
7-
To use this theme, just clone it to the apps folder
8-
of your ownCloud installation and enable the app from
9-
the Admin interface.
1+
## theme-cesnet for ownCloud
2+
![image](docs/screenshot.png)

appinfo/info.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0"?>
22
<info>
33
<id>theme-cesnet</id>
4-
<name>CESNET Theme</name>
5-
<description>This is a theme used by the ownCloud@CESNET instance.</description>
4+
<name>CESNET ownCloud Theme</name>
5+
<description>Custom theme for the ownCloud@CESNET server.</description>
66
<licence>AGPL</licence>
77
<author>Miroslav Bauer @ CESNET</author>
8-
<version>1.0.0</version>
8+
<version>2.0.0</version>
99
<types>
1010
<theme/>
1111
</types>
1212
<dependencies>
13-
<owncloud min-version="10.0" max-version="10.0" />
13+
<owncloud min-version="10.2" max-version="10" />
1414
</dependencies>
1515
<namespace>Theme</namespace>
1616
</info>

build/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "cesnet-brand",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "sass/bulma.scss",
6+
"scripts": {
7+
"cubes-build": "node-sass --omit-source-map-url sass/cubes.scss ../core/css/cubes.min.css --output-style compressed",
8+
"bulma-build": "node-sass --omit-source-map-url sass/bulma.scss ../core/css/bulma.min.css --output-style compressed",
9+
"build-all": "npm run bulma-build && npm run cubes-build",
10+
"css-watch": "npm run bulma-build -- --watch",
11+
"start": "npm run css-watch"
12+
},
13+
"author": "Miroslav Bauer @ CESNET",
14+
"license": "MIT",
15+
"devDependencies": {
16+
"bulma": "^0.9.2",
17+
"node-sass": "^6.0.0"
18+
}
19+
}

build/sass/_colors.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@charset "utf-8";
2+
3+
$datacare: #a70057;
4+
$grey-dark: hsl(0, 0%, 29%);
5+
$grey-darker: hsl(0, 0%, 21%);
6+
7+
$primary: #0068a2;
8+
$link: $datacare;
9+
$info: #00A1DE;
10+
$success: #008547;
11+
$warning: #FBB731;
12+
$danger: #E60000;
13+
$dark: $grey-darker;
14+
$text: $grey-dark;
15+
$orange: #d33d39;

build/sass/bulma.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@charset "utf-8";
2+
@import "colors";
3+
4+
$size-1: 6rem !default;
5+
$size-2: 4.5rem !default;
6+
$size-3: 3rem !default;
7+
8+
@import "../node_modules/bulma/sass/utilities/_all.sass";
9+
@import "../node_modules/bulma/sass/base/_all.sass";
10+
@import "../node_modules/bulma/sass/elements/button.sass";
11+
@import "../node_modules/bulma/sass/elements/container.sass";
12+
@import "../node_modules/bulma/sass/elements/title.sass";
13+
@import "../node_modules/bulma/sass/elements/content.sass";
14+
@import "../node_modules/bulma/sass/components/navbar.sass";
15+
@import "../node_modules/bulma/sass/components/message.sass";
16+
@import "../node_modules/bulma/sass/components/level.sass";
17+
@import "../node_modules/bulma/sass/layout/hero.sass";
18+
@import "../node_modules/bulma/sass/layout/section.sass";
19+
@import "../node_modules/bulma/sass/grid/columns.sass";
20+
@import "../node_modules/bulma/sass/helpers/typography.sass";
21+
@import "../node_modules/bulma/sass/helpers/spacing.sass";
22+
@import "../node_modules/bulma/sass/helpers/visibility.sass";
23+

build/sass/cubes.scss

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
@charset "utf-8";
2+
/*
3+
Copyright (c) 2021 by Jon Ambas (https://codepen.io/jonambas/pen/OPqbzx)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8+
persons to whom the Software is furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all copies or substantial
11+
portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
14+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
16+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
$cube-size: 85;
19+
$animation-duration: 7.7s;
20+
$easing: cubic-bezier(0.645, 0.045, 0.355, 1);
21+
$base-matrix: matrix(0.9, 0.5, 0, 1, 0, 0);
22+
23+
@import "colors";
24+
25+
@function base($n) {
26+
@return $n * ($cube-size - 1px);
27+
}
28+
29+
.layer {
30+
position: absolute;
31+
width: 100%;
32+
height: 100%;
33+
&.top {
34+
animation: $animation-duration top $easing infinite;
35+
}
36+
&.bottom {
37+
animation: $animation-duration bottom $easing infinite;
38+
}
39+
}
40+
41+
$radial-map: (
42+
"n": (
43+
x1: base(1),
44+
y1: base(-1),
45+
x2: base(1),
46+
y2: base(-1),
47+
x3: base(2),
48+
y3: base(-2),
49+
x4: base(2),
50+
y4: base(-2)
51+
),
52+
"s": (
53+
x1: base(-1),
54+
y1: base(1),
55+
x2: base(-1),
56+
y2: base(1),
57+
x3: base(-2),
58+
y3: base(2),
59+
x4: base(-2),
60+
y4: base(2)
61+
),
62+
"e": (
63+
x1: base(1),
64+
y1: 0,
65+
x2: base(2),
66+
y2: 0,
67+
x3: base(2),
68+
y3: 0,
69+
x4: base(1),
70+
y4: 0
71+
),
72+
"w": (
73+
x1: base(-1),
74+
y1: 0,
75+
x2: base(-2),
76+
y2: 0,
77+
x3: base(-2),
78+
y3: 0,
79+
x4: base(-1),
80+
y4: 0
81+
),
82+
"ne": (
83+
x1: base(2),
84+
y1: base(-1),
85+
x2: base(3),
86+
y2: base(-1),
87+
x3: base(4),
88+
y3: base(-2),
89+
x4: base(3),
90+
y4: base(-2)
91+
),
92+
"se": (
93+
x1: 0,
94+
y1: base(1),
95+
x2: base(1),
96+
y2: base(1),
97+
x3: base(0),
98+
y3: base(2),
99+
x4: base(-1),
100+
y4: base(2)
101+
),
102+
"sw": (
103+
x1: base(-2),
104+
y1: base(1),
105+
x2: base(-3),
106+
y2: base(1),
107+
x3: base(-4),
108+
y3: base(2),
109+
x4: base(-3),
110+
y4: base(2)
111+
),
112+
"nw": (
113+
x1: base(0),
114+
y1: base(-1),
115+
x2: base(-1),
116+
y2: base(-1),
117+
x3: base(0),
118+
y3: base(-2),
119+
x4: base(1),
120+
y4: base(-2)
121+
)
122+
);
123+
124+
@each $position, $points in $radial-map {
125+
.#{$position} {
126+
animation: $animation-duration $position $easing infinite;
127+
}
128+
@keyframes #{$position} {
129+
0%,
130+
83.33%,
131+
100% {
132+
transform: $base-matrix
133+
translate(map-get($points, x1), map-get($points, y1));
134+
}
135+
16.66% {
136+
transform: $base-matrix
137+
translate(map-get($points, x2), map-get($points, y2));
138+
}
139+
33.33%,
140+
50% {
141+
transform: $base-matrix
142+
translate(map-get($points, x3), map-get($points, y3));
143+
}
144+
66.66% {
145+
transform: $base-matrix
146+
translate(map-get($points, x4), map-get($points, y4));
147+
}
148+
}
149+
}
150+
151+
.cube {
152+
position: absolute;
153+
top: 45%;
154+
left: 45%;
155+
width: $cube-size + 0px;
156+
height: $cube-size + 0px;
157+
margin: 0 auto;
158+
background: $orange;
159+
transform: $base-matrix;
160+
161+
&:before,
162+
&:after {
163+
display: block;
164+
content: "";
165+
position: absolute;
166+
width: 100%;
167+
height: 100%;
168+
}
169+
170+
&:before {
171+
background: $warning;
172+
transform: matrix(1, -1, 1, 0, $cube-size / 2, -$cube-size);
173+
}
174+
175+
&:after {
176+
background: $link;
177+
transform: matrix(1, -1, 0, 1, $cube-size, -$cube-size / 2);
178+
}
179+
}
180+
181+
@keyframes top {
182+
0%,
183+
33.33%,
184+
100% {
185+
transform: translate(0, base(-1));
186+
}
187+
50%,
188+
83.33% {
189+
transform: translate(0, base(-2));
190+
}
191+
}
192+
@keyframes bottom {
193+
0%,
194+
33.33%,
195+
100% {
196+
transform: translate(0, base(1));
197+
}
198+
50%,
199+
83.33% {
200+
transform: translate(0, base(2));
201+
}
202+
}

0 commit comments

Comments
 (0)