Commit 054c681827798177f27441adf6774e94b7c69f5b

Authored by carlos.vieira
1 parent 1f43f303
Exists in master

build.sh: verificando se n?o est? vazio e colocando no diretorio correto. scss: …

…adicionando a borda no bottom
LEIAME
... ... @@ -4,11 +4,26 @@ Como instalar
4 4  
5 5 Dependências:
6 6  
  7 +
7 8 - Flask
  9 + # sudo pip install flask
8 10 - assetgen
  11 + # sudo pip install assetgen
9 12 - node.js
10   - - coffeescript
11   - - sass
  13 + # sudo apt-get install python-software-properties python g++ make
  14 + # sudo add-apt-repository ppa:chris-lea/node.js
  15 + # sudo apt-get update
  16 + # sudo apt-get install nodejs
  17 + # sudo apt-get install npm
  18 + - coffeescript
  19 + # sudo npm install -g coffee-script
  20 + - sass
  21 + # sudo apt-get install ruby-full build-essential
  22 + # sudo apt-get install rubygems
  23 + # sudo gem install sass
  24 + # sass -v
  25 + - uglifyjs
  26 + # sudo npm install -g uglify-js
12 27  
13 28 Requisitos da Barra
14 29  
... ...
app/templates/exemplo.html
... ... @@ -6,6 +6,6 @@
6 6 <div id="barra-brasil"><a href="http://brasil.gov.br" style="background:#7F7F7F; height: 20px; padding:4px 0 4px 10px; display: block; font-family:sans,sans-serif; text-decoration:none; color:white; ">Portal do Governo Brasileiro</a></div>
7 7 <h1>Barra Brasil</h1>
8 8 <p>Veja as <a href="http://epwg.governoeletronico.gov.br/barra/">instruções de como usar a barra</a> no e-PWG.</p>
9   - <script src="barra.js" type="text/javascript"></script>
  9 + <script src="copa2014/barra-brasil.js" type="text/javascript"></script>
10 10 </body>
11 11 </html>
... ...
build.sh
1 1 #!/bin/sh
2 2 echo ""
3   -echo ""
4   -if test -d "recipes/$1"
  3 +if [ -n "$1" ] && test -d "recipes/$1"
5 4 then
6   - sh recipes/$1/compile.sh
  5 + cd recipes/$1
  6 + sh ./compile.sh
7 7 else
8 8 echo "Error. Profile $1 does not exist."
9 9 fi
... ...
recipes/copa2014/assets/barra-copa.scss
... ... @@ -16,6 +16,9 @@
16 16 font-size: 13px;
17 17 line-height: 32px;
18 18 font-family: "Open Sans",Arial,Helvetica,sans-serif;
  19 + border-bottom-style: solid;
  20 + border-bottom-color: hsl(45, 70%, 49%);
  21 + border-bottom-width: 1px;
19 22 a {
20 23 text-decoration: none;
21 24 }
... ...
recipes/copa2014/compile.sh
1 1 #!/bin/sh
  2 +
2 3 assetgen ./barra-brasil-1.yaml
3 4 assetgen ./barra-brasil-2.yaml
... ...