Projet

Général

Profil

Révision 4eeb3b46

Ajouté par Assos Assos il y a presque 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/themes/bootstrap/starterkits/less/README.md
1
<!-- @file Instructions for subtheming using the LESS Starterkit. -->
1
<!-- @file Instructions for subtheming using the Less Starterkit. -->
2 2
<!-- @defgroup subtheme_less -->
3 3
<!-- @ingroup subtheme -->
4
# LESS Starterkit
4
# Less Starterkit
5 5

  
6
Below are instructions on how to create a Bootstrap sub-theme using a LESS
6
Below are instructions on how to create a Bootstrap sub-theme using a Less
7 7
preprocessor.
8 8

  
9 9
- [Prerequisites](#prerequisites)
10 10
- [Additional Setup](#setup)
11
- [Override Styles](#styles)
12
- [Override Settings](#settings)
13
- [Override Templates and Theme Functions](#registry)
11
- [Overrides](#overrides)
14 12

  
15 13
## Prerequisites
16 14
- Read the @link getting_started Getting Started @endlink documentation topic.
17
- You must understand the basic concept of using the [LESS] CSS pre-processor.
18
- You must use a **[local LESS compiler](https://www.google.com/search?q=less+compiler)**.
15
- You must understand the basic concept of using the [Less] CSS pre-processor.
16
- You must use a **[local Less compiler](https://www.google.com/search?q=less+compiler)**.
19 17
- You must use the [Bootstrap Framework Source Files] ending in the `.less`
20 18
  extension, not files ending in `.css`.
21 19

  
......
33 31
`./subtheme/bootstrap` directly. Doing so may cause issues when upgrading the
34 32
[Bootstrap Framework] in the future.
35 33

  
36
## Override Styles {#styles}
34
## Overrides {#overrides}
37 35
The `./subtheme/less/variable-overrides.less` file is generally where you will
38 36
the majority of your time overriding the variables provided by the [Bootstrap
39 37
Framework].
40 38

  
41 39
The `./subtheme/less/bootstrap.less` file is nearly an exact copy from the
42 40
[Bootstrap Framework Source Files]. The only difference is that it injects the
43
`variable-overrides.less` file directly after it has imported the[Bootstrap
41
`variable-overrides.less` file directly after it has imported the [Bootstrap
44 42
Framework]'s `variables.less` file. This allows you to easily override variables
45 43
without having to constantly keep up with newer or missing variables during an
46 44
upgrade.
......
55 53
This is the file that you should compile to `./subtheme/css/styles.css` (note
56 54
the same file name, using a different extension of course).
57 55

  
58
## Override Theme Settings {#settings}
59
Please refer to the @link subtheme_settings Sub-theme Settings @endlink topic.
60

  
61
## Override Templates and Theme Functions {#registry}
62
Please refer to the @link registry Theme Registry @endlink topic.
56
#### See also:
57
- @link templates Templates @endlink
58
- @link theme_settings Theme Settings @endlink
59
- @link registry Theme Registry @endlink
63 60

  
64 61
[Bootstrap Framework]: http://getbootstrap.com
65 62
[Bootstrap Framework Source Files]: https://github.com/twbs/bootstrap/releases
66
[LESS]: http://lesscss.org
63
[Less]: http://lesscss.org

Formats disponibles : Unified diff