Skip to content

Commit 47de1f9

Browse files
Initial commit
0 parents  commit 47de1f9

File tree

106 files changed

+6305
-0
lines changed

Some content is hidden

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

106 files changed

+6305
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#Nothing to see here
2+
3+
This is a ground-up re-write of Oneweb, and it isn't ready yet. I strongly recommend you don't try and use it right now.
4+
5+
## Todo
6+
* Add a template preview image.
7+
* Update touch icons.
8+
* Expand mixins with my most used.
9+
* Check compiled output, again.

STYLEGUIDE.md

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Oneweb CSS/Scss styleguide
2+
3+
Because I'm a little obsessive about some things…
4+
5+
## CSS Classes, not IDs!
6+
7+
IDs are only used on html elements when it is completely un-avoidable (that's never the case for styling).
8+
9+
### Don't over-specify!
10+
11+
Add only as many selectors as you need to do the job, no more. It's not clever and you only make life harder down the line.
12+
13+
## Tabs to indent code
14+
15+
One tab (equal to 4 spaces) is used to indent / nest markup and Scss
16+
17+
.example {
18+
color: #bada55;
19+
font-family: Baskerville, Georgia, serif;
20+
font-weight: 300;
21+
left: 1em;
22+
}
23+
24+
Scss is also nested with a tab, with child rules spaced, like so:
25+
26+
figure {
27+
margin: $gutter 0;
28+
29+
img {
30+
display:block;
31+
margin-bottom: $half-gutter;
32+
}
33+
34+
figcaption {
35+
@extend .muted;
36+
}
37+
}
38+
39+
## CSS Class naming conventions
40+
41+
Use hypens only
42+
43+
.large-class-name == good
44+
.large_class_name == bad
45+
.largeClassName == bad
46+
.largeclassname == bad
47+
48+
## CSS Commenting
49+
50+
### Major sections
51+
52+
/* ==========================================================================
53+
LOOK LIKE THIS
54+
============================================================================= */
55+
56+
Major sections are always preceded by 2 spaces.
57+
58+
### Minor sections
59+
60+
/*
61+
* LOOK LIKE THIS
62+
*/
63+
64+
### CSS comments
65+
66+
/* Look like this. I'm a comment. Don't sweat it. */
67+
68+
and
69+
70+
/*
71+
* Multi-line commments, where verbosity forces the
72+
* line to wrap in order to properly contain all the
73+
* commenty goodness...
74+
*
75+
* Look like this!
76+
* /
77+
78+
### Uncompiled Scss comments
79+
80+
// Are like this. They are stripped on compile.
81+
82+
## CSS rules are sorted alphabetically (that's the intention at least!).
83+
84+
This will aid quick error finding (notice the 2 left declarations).
85+
86+
For Example -
87+
88+
.example {
89+
color: #bada55;
90+
font-family: Baskerville, Georgia, serif;
91+
font-weight: 300;
92+
left: 1em;
93+
left: 1.5em;
94+
}
95+
96+
### CSS values are always spaced
97+
98+
display: inline-block;
99+
100+
not
101+
102+
display:inline-block;
103+
104+
### Brace space
105+
106+
Braces are always spaced from the selector
107+
108+
.example {
109+
color: #bada55;
110+
}
111+
112+
not
113+
114+
.example{
115+
color: #bada55;
116+
}
117+
118+
### Rule closure
119+
120+
Rules are always followed by a semicolon, even the last one!
121+
122+
.example {
123+
color: #bada55;
124+
font-family: Baskerville, Georgia, serif;
125+
font-weight: 300;
126+
left: 1em;
127+
}
128+
129+
not
130+
131+
.example {
132+
color: #bada55;
133+
font-family: Baskerville, Georgia, serif;
134+
font-weight: 300;
135+
left: 1em
136+
}
137+
138+
##Compiling
139+
140+
Comments are very useful for development, but always minimise the stylesheet for production.
141+
142+
Seriously. Minise that shit.
1.28 KB
Loading
1.53 KB
Loading
903 Bytes
Loading
1 KB
Loading

apple-touch-icon.png

903 Bytes
Loading

build.properties.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
www.dir=/var/www/oneweb

build.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="OneWeb" default="site" basedir=".">
3+
<!-- Do initialization stuff -->
4+
<target name="prepare" >
5+
<property file="build.properties" override="true"/>
6+
<if>
7+
<equals arg1="${extension}" arg2="" />
8+
<then>
9+
<fail message="Extension not specified, use -Dextension=EXTENSION" />
10+
</then>
11+
<else>
12+
<!--<property file="${extension}.properties" override="true"/>-->
13+
</else>
14+
</if>
15+
</target>
16+
17+
<property name="src" value="./" />
18+
19+
<target name="site" description="Copies files to the testing joomla site" depends="prepare">
20+
<echo message="Copying template ..." />
21+
22+
<!-- Template - Site -->
23+
<copy todir="${www.dir}/templates/oneweb" overwrite="true">
24+
<fileset dir="${src}">
25+
<include name="**" />
26+
<exclude name="language" />
27+
</fileset>
28+
</copy>
29+
30+
<!-- Template - Languages -->
31+
<copy todir="${www.dir}/language" overwrite="true">
32+
<fileset dir="${src}/language">
33+
<include name="**" />
34+
</fileset>
35+
</copy>
36+
</target>
37+
38+
</project>

css/style.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fonts/icomoon.eot

3.45 KB
Binary file not shown.

fonts/icomoon.svg

Lines changed: 70 additions & 0 deletions
Loading

fonts/icomoon.ttf

3.29 KB
Binary file not shown.

fonts/icomoon.woff

5.07 KB
Binary file not shown.

fonts/license.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Icon Set: IcoMoon - Free -- http://keyamoon.com/icomoon/
2+
License: CC BY 3.0 -- http://creativecommons.org/licenses/by/3.0/

0 commit comments

Comments
 (0)