Skip to content

Commit 7d2e145

Browse files
author
illya
committed
initial changes
1 parent e094292 commit 7d2e145

File tree

9 files changed

+175
-77
lines changed

9 files changed

+175
-77
lines changed

apinf_packages/apis/client/card/api_card.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ <h3>
4343
</li>
4444
</ul>
4545
</div>
46-
<div class="api-card-logo clearfix">
47-
{{> viewApiLogo api=api }}
48-
</div>
46+
<a href="{{ pathFor 'viewApi' slug=api.slug }}" class="api-card-a">
47+
<div class="api-card-logo clearfix">
48+
{{> viewApiLogo api=api }}
49+
</div>
50+
</a>
4951
<div class="api-card-description">
5052
<p class="text-center">
5153
{{ api.description }}

apinf_packages/apis/client/profile/header/header.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ <h1 id="api-header">
149149
{{/ if }}
150150
{{/ if }}
151151
</ul>
152-
{{# if api.currentUserCanView }}
153-
{{> apiIntro }}
154-
{{/ if }}
155152
</div>
156153
</div>
157154
</div>

apinf_packages/core/client/custom_stylesheet/custom_stylesheet.html

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,30 @@
66
<template name="customStylesheet">
77
<style>
88
footer {
9-
background-color: {{ primaryColor }};
9+
/*background-color: {{ primaryColor }};*/
10+
padding-bottom: 1em;
11+
padding-top: 2em;
1012
}
1113

1214
.footer-text, footer a, footer a:hover, footer a:focus {
1315
color: {{ primaryColorText }};
1416
}
1517

16-
#language-select, #language-select:focus, #language-select:active {
18+
/*#language-select, #language-select:focus, #language-select:active {
1719
color: {{ primaryColorText}};
1820
background-color: {{ primaryColor }};
1921
border: 1px solid {{ primaryColor }};
20-
margin-left: -0.7em;
21-
}
22+
margin-left: -0.4em;
23+
}*/
2224

2325
.coverphoto {
2426
background-color: {{ primaryColor }} !important;
2527
}
2628

27-
.dropdown-toggle {
29+
/*.dropdown-toggle {
2830
background-color: {{ mostReadableBackground }} !important;
2931
color: {{ primaryColorText }} !important;
30-
}
32+
}*/
3133

3234
.project-name-link {
3335
color: {{ primaryColorText }} !important;
@@ -37,48 +39,48 @@
3739
background: {{ primaryColor }} !important;
3840
}
3941

40-
.main-navigation {
42+
/*.main-navigation {
4143
background-color: {{ primaryColor }} !important;
42-
}
44+
}*/
4345

44-
.navbar-nav > li > a:hover,
46+
/*.navbar-nav > li > a:hover,
4547
.navbar-nav > .active > a,
4648
.navbar-nav > .active > a:hover,
4749
.navbar-nav > .active > a:focus {
4850
background-color: {{ mostReadableBackground }} !important;
49-
}
51+
}*/
5052

51-
.search-box {
53+
/*.search-box {
5254
background-color: {{ primaryColor }} !important;
53-
}
55+
}*/
5456

55-
.media-heading {
57+
/*.media-heading {
5658
color: {{ primaryColorText }} !important;
57-
}
59+
}*/
5860

59-
#api-navigation-tabs .nav-tabs > li.active > a {
61+
/*#api-navigation-tabs .nav-tabs > li.active > a {
6062
border-top-color: {{ primaryColor }} !important;
61-
}
63+
}*/
6264

63-
#statisticswrap {
65+
/*#statisticswrap {
6466
background-color: {{ primaryColor }};
6567
color: {{ primaryColorText }};
66-
}
68+
}*/
6769

6870
#headerwrap {
6971
background: {{ coverPhotoOverlay }};
7072
}
7173

7274
/* Only select top-level navigation menu items */
73-
#main-navbar > li > a {
75+
/*#main-navbar > ul > li > a {
7476
color: {{ primaryColorText }} !important;
75-
}
77+
}*/
7678

77-
#settings-menu .list-group-item.active {
79+
/* #settings-menu .list-group-item.active {
7880
color: {{ primaryColorText }} !important;
7981
background-color: {{ primaryColor }} !important;
8082
border-color: {{ primaryColor }};
81-
}
83+
} */
8284

8385
#site-title {
8486
color: {{ primaryColorText }} !important;
@@ -87,11 +89,11 @@
8789
#site-slogan {
8890
color: {{ primaryColorText }} !important;
8991
}
90-
92+
/*
9193
#get-more-apis {
9294
color: {{ primaryColorText }} !important;
9395
background-color: {{ primaryColor }} !important;
9496
border-color: {{ primaryColor }};
95-
}
97+
} */
9698
</style>
9799
</template>

apinf_packages/core/client/footer/footer.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
footer {
77
padding-bottom: 1em;
88
padding-top: 1em;
9-
9+
background-color: #2c2c2c;
1010
@media only screen and (max-width: 767px) {
1111
.social-media-icon {
1212
width: 3em;

apinf_packages/core/client/navbar/navbar.html

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
{{ else }}
2828
<li>
2929
<a class="navbar-login" href="{{ pathFor 'signUp' }}" id="signup-button">
30-
<i class="fa fa-user-plus" aria-hidden="true"></i>
30+
<!-- <i class="fa fa-user-plus" aria-hidden="true"></i> -->
3131
{{_ "navbar_signUp" }}
3232
</a>
3333
</li>
3434
<li>
3535
<a class="navbar-login" href="{{ pathFor 'signIn' }}" id="signin-button">
36-
<i class="fa fa-sign-in" aria-hidden="true"></i>
36+
<!-- <i class="fa fa-sign-in" aria-hidden="true"></i> -->
3737
{{_ "navbar_signIn" }}
3838
</a>
3939
</li>
@@ -53,7 +53,7 @@
5353
{{# if userCanViewDashboard }}
5454
<li class="{{ isActiveRoute 'dashboard' }}">
5555
<a href="{{ pathFor 'dashboard' }}" id="dashboard-button">
56-
<i class="fa fa-bar-chart" aria-hidden="true"></i>
56+
<!-- <i class="fa fa-bar-chart" aria-hidden="true"></i> -->
5757
{{_ "navbar_dashboard" }}
5858
</a>
5959
</li>
@@ -62,21 +62,21 @@
6262
{{/ if }}
6363
<li class="{{ isActiveRoute 'apiCatalog' }}">
6464
<a href="{{ pathFor 'apiCatalog' }}" id="apis-button">
65-
<i class="fa fa-book" aria-hidden="true"></i>
65+
<!-- <i class="fa fa-book" aria-hidden="true"></i> -->
6666
{{_ "navbar_apis" }}
6767
</a>
6868
</li>
6969
<li class="{{ isActiveRoute 'organizationCatalog' }}">
7070
<a href="{{ pathFor 'organizationCatalog' }}" id="organizations-button">
71-
<i class="fa fa-address-card" aria-hidden="true"></i>
71+
<!-- <i class="fa fa-address-card" aria-hidden="true"></i> -->
7272
{{_ "navbar_organizations" }}
7373
</a>
7474
</li>
7575
{{# if currentUser }}
7676
{{# if userCanAddApi }}
7777
<li class="{{ isActiveRoute 'addApi' }}">
7878
<a href="{{ pathFor 'addApi' }}" id="addapi-button">
79-
<i class="fa fa-plus" aria-hidden="true"></i>
79+
<!-- <i class="fa fa-plus" aria-hidden="true"></i> -->
8080
{{_ "navbar_addAPIBackend" }}
8181
</a>
8282
</li>
@@ -85,20 +85,12 @@
8585
{{# if isInRole 'admin' }}
8686
<li class="{{ isActiveRoute 'accountsAdmin' }}">
8787
<a href="{{ pathFor 'accountsAdmin' }}" id="users-button">
88-
<i class="fa fa-users" aria-hidden="true"></i>
88+
<!-- <i class="fa fa-users" aria-hidden="true"></i> -->
8989
{{_ "navbar_users" }}
9090
</a>
9191
</li>
9292
{{/ if }}
9393
{{/ if }}
94-
{{# if branding.homeCustomBlock }}
95-
<li class="{{ isActiveRoute 'pricing' }}">
96-
<a href="{{ pathFor 'pricing' }}" id="pricing-button">
97-
<i class="fa fa-credit-card" aria-hidden="true"></i>
98-
{{_ "navbar_pricing" }}
99-
</a>
100-
</li>
101-
{{/ if }}
10294
</ul>
10395
</div>
10496
<div class="container">

apinf_packages/core/client/style/bootstrap-variables.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ https://joinup.ec.europa.eu/community/eupl/og_page/european-union-public-licence
2525
@gray-light: lighten(@gray-base, 60%); // #999
2626
@gray-lighter: lighten(@gray-base, 93.5%); // #eee
2727

28-
@brand-primary: #2FA4E7;
28+
@brand-primary: #0a77d1;
2929
@brand-success: #28ae4f;
3030
@brand-info: #00BCD4;
3131
@brand-warning: #e15400;

apinf_packages/core/client/style/global.less

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -76,34 +76,10 @@ hr {
7676
}
7777

7878
.navigation-tabs {
79-
position: relative;
80-
top: 9px; // needs to be in px
81-
margin-top: 0.6em;
82-
clear: both;
83-
79+
margin-top: 2em;
8480
.nav-tabs {
8581
border-bottom: none;
86-
display: inline-block;
87-
margin-bottom: 0.23em;
88-
}
89-
90-
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
91-
font-weight: bold;
92-
line-height: initial;
93-
color: #333;
94-
background-color: #fff;
95-
border-top-right-radius: 3px;
96-
border-top-left-radius: 3px;
97-
border-top: 3px @brand-primary;
98-
border-right-color: #EEE;
99-
border-left-color: #EEE;
100-
}
101-
102-
.nav-tabs > li {
103-
border: solid transparent;
104-
border-width: 3px 1px 1px;
105-
border-radius: 3px 3px 0 0;
106-
height: 42px;
82+
margin-bottom: 1px;
10783
}
10884

10985
.nav-tabs > li > a {
@@ -112,9 +88,7 @@ hr {
11288

11389
.nav > li > a:hover, .nav > li > a:focus {
11490
text-decoration: none;
115-
background-color: transparent;
11691
color: #333;
117-
border-color: transparent;
11892
}
11993
}
12094

0 commit comments

Comments
 (0)