You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can download the full package and make adjustments as long as you don't update the dependencies (core, buttons, notifications and docs). When you decide to adjust the dependencies, you will lose them with the next update.
18
+
19
+
There are a few ways to install:
20
+
21
+
-[Download the latest release](https://github.com/CastleCSS/castlecss/archive/master.zip)
22
+
- Clone the package ```git clone https://github.com/CastleCSS/castlecss.git```
23
+
- Install via [npm](https://www.npmjs.com/): ```npm install castlecss```
24
+
- Add it to your package.json in your own npm package
25
+
26
+
When downloading or cloning CastleCSS, you have to run ```npm install``` from the directory to get the full package (core, buttons, notifications and docs).
27
+
28
+
## Updating files
29
+
30
+
NOTE: Only update the dependencies so that you don't overwrite your own SCSS files. If you do update the full package you'll overwrite everything.
31
+
32
+
We recommend downloading the full package and updating the dependencies like:
33
+
```
34
+
npm update castlecss-core
35
+
npm update castlecss-buttons
36
+
npm update castlecss-notifications
37
+
npm update castlecss-docs
38
+
```
39
+
40
+
## Documentation and examples
41
+
You can find the documentation and examples at http://www.castlecss.com and included in this package (castlecss-docs)
42
+
43
+
## Setup
44
+
Your project should have a setup similair to this (included in the Full package):
45
+
With this you make sure your own variables overwrite the castle-core variables and your setup is still updatable.
46
+
47
+
```
48
+
| Your project/
49
+
|
50
+
|-- scss/
51
+
| |-- /* Custom project specific scss files here */
52
+
| |-- main.scss
53
+
| |
54
+
|-- node_modules/
55
+
| |
56
+
| | /* CastleCSS files included automatically here */
57
+
| | castlecss-core/
58
+
| | castlecss-buttons/
59
+
| | castlecss-etc ;)/
60
+
```
61
+
62
+
### main.scss
63
+
Your main.scss should have a setup similar to this (included in the [CastleCSS (Full package)](https://github.com/CastleCSS/castlecss)):
64
+
65
+
```
66
+
/* castlecss variable files */
67
+
@import "path/to/castlecss-core/sass/variables";
68
+
69
+
70
+
/* Your own variables so they overwrite the core */
<ahref="http://castlecss.com/grid.html" class="btn">Learn more about the grid</a>
62
+
</div>
63
+
64
+
65
+
</div>
66
+
<hr/>
67
+
68
+
<divclass="container">
69
+
70
+
<divid="basiclayout" class="p p-b3-0 mb-2x">
71
+
<divclass="g">
72
+
<divclass="b0_12 b3_06">
73
+
<divclass="block block-border p">
74
+
<h2>Menu</h2>
75
+
<ulclass="list-unstyled">
76
+
<li><ahref="#1">Link1</a></li>
77
+
<li><ahref="#2">Link2</a></li>
78
+
<li><ahref="#3">Link3</a></li>
79
+
<li><ahref="#4">Link4</a></li>
80
+
<li><ahref="#5">Link5</a></li>
81
+
</ul>
82
+
</div>
83
+
</div>
84
+
<divclass="b0_12 b3_18">
85
+
<divclass="block block-border p">
86
+
<h1>Basic layout</h1>
87
+
88
+
<p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <ahref="#">Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p>
89
+
90
+
<h2>Header Level 2</h2>
91
+
92
+
<ol>
93
+
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
94
+
<li>Aliquam tincidunt mauris eu risus.</li>
95
+
</ol>
96
+
97
+
<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.</p></blockquote>
98
+
99
+
<h3>Header Level 3</h3>
100
+
101
+
<ul>
102
+
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
103
+
<li>Aliquam tincidunt mauris eu risus.</li>
104
+
</ul>
105
+
106
+
<pre><code>
107
+
#header h1 a {
108
+
display: block;
109
+
width: 300px;
110
+
height: 80px;
111
+
}
112
+
</code></pre>
113
+
</div>
114
+
115
+
</div>
116
+
117
+
<divclass="p p-b3-0 mb-2x ta-center">
118
+
<h3>More examples?</h3>
119
+
<ahref="http://castlecss.com/grid.html" class="btn">Read the documentation</a>
0 commit comments