Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95e913f

Browse files
committed
styling for news box, header
1 parentd3ada8a commit95e913f

File tree

8 files changed

+55
-12
lines changed

8 files changed

+55
-12
lines changed

‎_site/assets/css/robotframework.css‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,26 @@ ul {
174174
font-family:'Oleo Script', serif;
175175
font-size:3em;
176176
font-weight:400;
177+
margin-bottom:0;
178+
}
179+
180+
#tweets {
181+
height:31em;
182+
overflow: auto;
183+
}
184+
185+
.by.container {
186+
font-size:1.2em;
187+
display: inline;
188+
padding-right:16px;
189+
background: transparenturl(/assets/img/twitter_bird.png) right center no-repeat;
177190
}
178191

179192
.tweet_list {
180193
list-style-type: none;
181194
list-style-position: inside;
182-
margin:0000;
195+
margin:00.5em;
196+
border-top:1px dotted white;
183197
}
184198

185199
.tweet_odd, .tweet_even {
@@ -190,11 +204,16 @@ ul {
190204

191205
.tweet_time {
192206
font-style: italic;
193-
font-size:0.8em;
207+
font-size:0.6em;
194208
display: block;
195209
margin-bottom:0.5em;
210+
width:100%;
211+
text-align: right;
196212
}
197213

214+
.tweet_timea {
215+
text-decoration: none;
216+
}
198217

199218
.highlighttable {
200219
margin-left: auto;

‎_site/assets/img/twitter_bird.png‎

1.08 KB
Loading

‎_site/assets/js/robotframework.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
functioninit_tweets(){
2-
$(".news.container > p").first().after('<div></div>');
2+
$(".container.by").after('<div></div>');
33
$("#tweets").tweet({
4-
"username":"robotframework"
5-
,count:5
4+
"username":"robotframework"
5+
,"count":10
6+
,"template":"{text} {time}"
67
});
78

89
}

‎_site/index.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ <h1 id="main-header">Robot Framework</h1>
3333
<h2>Introduction</h2>
3434
<divclass="news container">
3535
<p>News</p>
36-
<p>Tweets by<aclass="reference external"href="http://twitter.com/robotframework">&#64;robotframework</a></p>
36+
<divclass="by container">
37+
by<aclass="reference external"href="http://twitter.com/robotframework">&#64;robotframework</a></div>
3738
</div>
3839
<p>Robot Framework is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It has easy-to-use tabular test data syntax and utilizes the keyword-driven testing approach. Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new keywords from existing ones using the same syntax that is used for creating test cases.</p>
3940
<p>Robot Framework is open source software released under<aclass="reference external"href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License 2.0</a>. Its copyrights are owned and development supported by<aclass="reference external"href="http://www.nokiasiemensnetworks.com/">Nokia Siemens Networks</a>.</p>

‎assets/css/robotframework.css‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,26 @@ ul {
174174
font-family:'Oleo Script', serif;
175175
font-size:3em;
176176
font-weight:400;
177+
margin-bottom:0;
178+
}
179+
180+
#tweets {
181+
height:31em;
182+
overflow: auto;
183+
}
184+
185+
.by.container {
186+
font-size:1.2em;
187+
display: inline;
188+
padding-right:16px;
189+
background: transparenturl(/assets/img/twitter_bird.png) right center no-repeat;
177190
}
178191

179192
.tweet_list {
180193
list-style-type: none;
181194
list-style-position: inside;
182-
margin:0000;
195+
margin:00.5em;
196+
border-top:1px dotted white;
183197
}
184198

185199
.tweet_odd, .tweet_even {
@@ -190,11 +204,16 @@ ul {
190204

191205
.tweet_time {
192206
font-style: italic;
193-
font-size:0.8em;
207+
font-size:0.6em;
194208
display: block;
195209
margin-bottom:0.5em;
210+
width:100%;
211+
text-align: right;
196212
}
197213

214+
.tweet_timea {
215+
text-decoration: none;
216+
}
198217

199218
.highlighttable {
200219
margin-left: auto;

‎assets/img/twitter_bird.png‎

1.08 KB
Loading

‎assets/js/robotframework.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
functioninit_tweets(){
2-
$(".news.container > p").first().after('<div></div>');
2+
$(".container.by").after('<div></div>');
33
$("#tweets").tweet({
4-
"username":"robotframework"
5-
,count:5
4+
"username":"robotframework"
5+
,"count":10
6+
,"template":"{text} {time}"
67
});
78

89
}

‎index.rst‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Introduction
99

1010
News
1111

12-
Tweets by `@robotframework<http://twitter.com/robotframework>`_
12+
..container::by
13+
14+
by `@robotframework<http://twitter.com/robotframework>`_
1315

1416

1517
Robot Framework is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It has easy-to-use tabular test data syntax and utilizes the keyword-driven testing approach. Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new keywords from existing ones using the same syntax that is used for creating test cases.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp