Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
candi-date-tayo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
George Nicole Balmaceda
candi-date-tayo
Commits
2eb46511
Commit
2eb46511
authored
Jul 19, 2016
by
Alexander Hans Collado Jr.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed navigation styles. destroyed inline styles.
parent
ad8d587b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
43 deletions
+105
-43
Gemfile.lock
Gemfile.lock
+0
-2
style.css
app/assets/stylesheets/style.css
+58
-30
application.html.erb
app/views/layouts/application.html.erb
+47
-11
No files found.
Gemfile.lock
View file @
2eb46511
...
...
@@ -89,7 +89,6 @@ GEM
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
orm_adapter (0.5.0)
pg (0.18.4)
pkg-config (1.1.7)
puma (3.4.0)
rack (2.0.1)
...
...
@@ -177,7 +176,6 @@ DEPENDENCIES
jbuilder (~> 2.5)
jquery-rails
listen (~> 3.0.5)
pg
puma (~> 3.0)
rails (~> 5.0.0)
sass-rails (~> 5.0)
...
...
app/assets/stylesheets/style.css
View file @
2eb46511
/* CSS Reset */
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html
,
body
{
margin
:
0
;
padding
:
0
;
border
:
0
;
font-size
:
100%
;
vertical-align
:
baseline
;
color
:
#5E6B7F
;
font-family
:
'Roboto'
!important
;
font-weight
:
300
;
}
/* User defined styles */
.logo-container
{
display
:
flex
;
align-items
:
center
;
}
.logo
{
padding
:
20px
;
}
.nav
{
position
:
fixed
;
top
:
-2p
x
;
left
:
-2px
;
width
:
calc
(
100vw
+
2px
)
;
position
:
relative
;
display
:
fle
x
;
align-items
:
center
;
width
:
100%
;
list-style-type
:
none
;
margin
:
0
;
padding
:
0px
;
overflow
:
hidden
;
margin
:
0px
;
padding
:
1em
;
border
:
1px
solid
#e7e7e7
;
z-index
:
20
;
background-color
:
#f3f3f3
;
}
.nav-item
{
color
:
black
;
text-decoration
:
none
;
margin
:
0px
;
display
:
inline-block
;
padding
:
5px
25px
;
transition
:
ease-out
0.1s
;
font-size
:
18px
;
.nav
a
{
position
:
relative
;
margin-right
:
1em
;
}
.navigation-buttons
{
margin-left
:
20px
;
}
.nav-item
:hover
{
background-color
:
#004e7e
;
color
:
white
;
.button-primary
{
background
:
#32B68D
;
padding
:
10px
40px
;
border-radius
:
3px
;
color
:
white
;
transition
:
0.1s
ease-in-out
;
font-weight
:
300
;
}
.nohover
:hover
{
background
:
none
;
color
:
black
;
.button-primary
:hover
{
background
:
#37D0A0
;
color
:
white
;
}
.right
{
float
:
right
;
.actions
{
margin-left
:
auto
;
margin-right
:
20px
;
}
thead
{
font-weight
:
bold
;
}
...
...
app/views/layouts/application.html.erb
View file @
2eb46511
...
...
@@ -5,27 +5,63 @@
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
=>
true
%>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
=>
true
%>
<%=
csrf_meta_tags
%>
<link
href=
'https://fonts.googleapis.com/css?family=Roboto:300,100,400'
rel=
'stylesheet'
type=
'text/css'
>
<link
rel=
"stylesheet"
href=
"http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"
>
</head>
<body
style=
"padding:30px;"
>
<body>
<nav
class=
"nav"
>
<h6
class=
"nav-item nohover"
></h6>
<a
class=
"nav-item active"
href=
"/"
>
Home
</a>
<div
class=
"logo-container"
>
<%=
link_to
"Candidates"
,
admin_candidates_path
,{
:class
=>
" nav-item"
}
%>
<%=
link_to
"Positions"
,
admin_positions_path
,{
:class
=>
" nav-item"
}
%>
<a
class=
"nav-item"
href=
"/voting/votes"
>
Vote now
</a>
<%
if
user_signed_in?
%>
<svg
width=
"99px"
height=
"47px"
viewBox=
"229 160 99 47"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 3.8.3 (29802) - http://www.bohemiancoding.com/sketch -->
<desc>
Created with Sketch.
</desc>
<defs></defs>
<g
id=
"Group"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
transform=
"translate(229.000000, 160.000000)"
font-size=
"30.9446928"
font-family=
"Roboto-Bold, Roboto"
letter-spacing=
"0.8"
font-weight=
"bold"
>
<text
id=
"xVotes"
>
<tspan
x=
"0"
y=
"32"
fill=
"#72DBBA"
>
x
</tspan>
<tspan
x=
"16.6047601"
y=
"32"
font-family=
"Chalkduster"
font-weight=
"normal"
letter-spacing=
"-0.400000006"
fill=
"#262626"
>
V
</tspan>
<tspan
x=
"39.1824768"
y=
"32"
font-family=
"Roboto-Medium, Roboto"
font-weight=
"400"
letter-spacing=
"-0.400000006"
fill=
"#262626"
>
otes
</tspan>
</text>
</g>
</svg>
<%=
link_to
"Logout"
,
destroy_user_session_path
,{
method: :delete
,
:class
=>
" nav-item right"
}
%>
<div
class=
"nav-item nohover right"
>
Hello
<%=
current_user
.
first_name
%>
</div>
</div>
<div
class=
"navigation-buttons"
>
<a
href=
"/"
>
Home
</a>
<%=
link_to
"Candidates"
,
admin_candidates_path
,{
:class
=>
""
}
%>
<%=
link_to
"Positions"
,
admin_positions_path
,{
:class
=>
""
}
%>
</div>
<div
class=
"actions"
>
<a
class=
"button-primary"
href=
"/voting/votes"
>
Vote Now
<span
class=
"ion-ios-arrow-thin-right"
></span></a>
<%
if
user_signed_in?
%>
<%=
link_to
"Logout"
,
destroy_user_session_path
,{
method: :delete
,
:class
=>
""
}
%>
<span
class=
""
>
Hello
<%=
current_user
.
first_name
%>
</span>
<a
href=
"/profile"
class=
"nav-item right"
>
My Profile
</a>
<%
else
%>
<%=
link_to
"Log-in"
,
new_user_session_path
,
{
:class
=>
"
nav-item right
"
}
%>
<%=
link_to
"Register"
,
new_user_registration_path
,
{
:class
=>
"
nav-item right
"
}
%>
<%=
link_to
"Log-in"
,
new_user_session_path
,
{
:class
=>
""
}
%>
<%=
link_to
"Register"
,
new_user_registration_path
,
{
:class
=>
""
}
%>
<%
end
%>
</div>
</nav>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment