Ajax Loader
×
HTML
<div class="twitter-widget">
1
<div class="twitter-widget">
2
    <div class="header cf">
3
      <a href="http://twitter.com/kayrel" target="_blank" class="avatar"><img src="http://cameronbaney.com/codepen/twitter-widget/avatar.jpg" alt="Edwin Delgado"></a>
4
      <h2>Edwin Delgado @kayrel</h2>
5
      <p>I do not recall how I came into existence.<br>Something to do with my dad and mom.</p>
6
    </div>
7
    <div class="stats cf">
8
      <a href="#" class="stat">
9
        <strong>1,250</strong>
10
        tweets
11
      </a>
12
      <a href="#" class="stat">
13
        <strong>60</strong>
14
        following
15
      </a>
16
      <a href="#" class="stat">
17
        <strong>117</strong>
18
        followers
19
      </a>
20
    </div>
21
    <ul class="menu cf">
22
      <li><a href="#" class="ico-compose">Compose</a></li>
23
      <li><a href="#" class="ico-mentions">Mentions</a></li>
24
      <li><a href="#" class="ico-profile">Profile</a></li>
25
      <li><a href="#" class="ico-settings">Settings</a></li>
26
    </ul>
27
  </div>
28
 
29
  <p>Dribbble Rebound of <a target="_blank" href="http://dribbble.com/shots/833870-Rebound-Twitter">Rebound Twitter</a> by <a target="_blank" href="http://dribbble.com/Kayrel">Edwin Delgado</a></p>
 
CSS
/*--------------------------------------------------------------
1
/*--------------------------------------------------------------
2
1.1 - CLEARFIX
3
--------------------------------------------------------------*/
4
.cf:before,
5
.cf:after {
6
    content:"";
7
    display:table;
8
}
9
.cf:after {
10
    clear:both;
11
}
12
 
13
/*--------------------------------------------------------------
14
1.2 - FORMATTING
15
--------------------------------------------------------------*/
16
body {
17
  background: #343434 url(http://cameronbaney.com/codepen/twitter-widget/bg.jpg);
18
  background-size: cover;
19
  color: #4c4c4c;
20
  font:300 1.1em/1.7em 'HelveticaNeue-Light', Helvetica, Arial, sans-serif;
21
}
22
 
23
body > p {
24
  bottom: 10px;
25
  color: #fff;
26
  font-size: 12px;
27
  left: 10px;
28
  position: absolute;
29
}
30
body > p a {
31
  color: #fff
32
}
33
 
34
/*--------------------------------------------------------------
35
2.0 - TWITTER WIDGET
36
--------------------------------------------------------------*/
37
.twitter-widget {
38
  color: #4c4c4c;
39
  height: 249px;
40
  left:50%;
41
  margin: -125px 0 0 -223px;
42
  position: absolute;
43
  top:50%;
44
  width:446px;
45
  box-shadow: 1px 1px 16px rgba(0,0,0,.58);
46
  border-radius:2px;
47
}
48
 
49
/*--------------------------------------------------------------
50
2.1 - TWITTER WIDGET HEADER
51
--------------------------------------------------------------*/
52
.header {
53
  background: url(http://cameronbaney.com/codepen/twitter-widget/bg-header.jpg) no-repeat;
54
  color: #fdfdfd;
55
  font: 12px/17px 'HelveticaNeue-UltraLight', Helvetica, Arial, sans-serif;
56
  padding: 18px 28px 20px;
57
  border-radius:2px 2px 0 0;
58
}
59
.avatar {
60
  border: 4px solid #29c6f5;
61
  border-top-width:3px;
62
  float: left;
63
  margin-right: 16px;
64
  position: relative;
65
  box-shadow: 0 1px 1px rgba(0,0,0,.6), 0 -1px 0 #9ce5fa;
66
  border-radius: 2px
67
}
68
  .avatar::before {
69
    content: "";
70
    position: absolute;
71
    top: 0;
72
    bottom: 0;
73
    left: 0;
74
    right: 0;
75
    box-shadow: 0 1px 3px rgba(0,0,0,.4) inset;
76
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,.4) inset;
77
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.4) inset;
78
  }
79
  .avatar img {
80
    display: block;
81
    box-shadow: 0 0 2px rgba(0,0,0,.5) inset
82
  }
83
.header h2, .header p {
84
  float: left;
85
  width:288px;
86
}
87
  .header h2 {
88
    font-size:26px;
89
    line-height: 32px;
90
    margin: 10px 0 8px
91
  }
92
 
93
/*--------------------------------------------------------------
94
2.2 - TWITTER WIDGET STATS
95
--------------------------------------------------------------*/
96
.stats {
97
  background: rgb(243,243,243);
98
  background: -moz-linear-gradient(top, rgba(243,243,243,1) 0%, rgba(236,236,237,1) 100%);
99
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(243,243,243,1)), color-stop(100%,rgba(236,236,237,1)));
100
  background: -webkit-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(236,236,237,1) 100%);
101
  background: -o-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(236,236,237,1) 100%);
102
  background: -ms-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(236,236,237,1) 100%);
103
  background: linear-gradient(to bottom, rgba(243,243,243,1) 0%,rgba(236,236,237,1) 100%);
104
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3f3f3', endColorstr='#ececed',GradientType=0 );
105
  border-top:1px solid #fff;
106
  border-bottom: 1px solid #d4d4d4;
107
}
108
.stat {
109
  color: #4c4c4c;
110
  float:left;
111
  font-size: 14px;
112
  line-height: 17px;
113
  padding: 15px 0 14px;
114
  text-align: center;
115
  text-decoration: none;
116
  text-shadow: 0 1px 0 #fff;
117
  width:148px;
118
}
119
  .stat:first-child{
120
    margin-left: 1px
121
  }
122
  .stat:hover {
123
    color: #747474
124
  }
125
.stat strong {
126
  display: block;
127
  font-size: 25px;
128
  line-height: 25px
129
}
130
 
131
/*--------------------------------------------------------------
132
2.3 - TWITTER WIDGET MENU
133
--------------------------------------------------------------*/
134
.menu {
135
  background: rgb(236,236,236);
136
  background: -moz-linear-gradient(top, rgba(236,236,236,1) 0%, rgba(233,233,233,1) 86%, rgba(232,232,232,1) 94%, rgba(228,228,228,1) 100%);
137
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(236,236,236,1)), color-stop(86%,rgba(233,233,233,1)), color-stop(94%,rgba(232,232,232,1)), color-stop(100%,rgba(228,228,228,1)));
138
  background: -webkit-linear-gradient(top, rgba(236,236,236,1) 0%,rgba(233,233,233,1) 86%,rgba(232,232,232,1) 94%,rgba(228,228,228,1) 100%);
139
  background: -o-linear-gradient(top, rgba(236,236,236,1) 0%,rgba(233,233,233,1) 86%,rgba(232,232,232,1) 94%,rgba(228,228,228,1) 100%);
140
  background: -ms-linear-gradient(top, rgba(236,236,236,1) 0%,rgba(233,233,233,1) 86%,rgba(232,232,232,1) 94%,rgba(228,228,228,1) 100%);
141
  background: linear-gradient(to bottom, rgba(236,236,236,1) 0%,rgba(233,233,233,1) 86%,rgba(232,232,232,1) 94%,rgba(228,228,228,1) 100%);
142
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ececec', endColorstr='#e4e4e4',GradientType=0 );
143
  border-top:1px solid #fff;
144
  border-radius:0 0 2px 2px;
145
  padding: 11px 0;
146
  text-align: center
147
}
148
.menu li {
149
  display:inline-block;
150
  margin: 0 34px
151
}
152
.menu a {
153
  background: url(http://cameronbaney.com/codepen/twitter-widget/icons.png) no-repeat;
154
  display:block;
155
  overflow: hidden;
156
  text-indent: -9999px
157
}
158
  .menu .ico-compose {
159
    background-position:-1px -2px;
160
    width: 25px;
161
    height: 26px;
162
  }
163
  .menu .ico-mentions {
164
    background-position: -31px -1px;
165
    width: 27px;
166
    height: 28px;
167
  }
168
  .menu .ico-profile {
169
    background-position: -65px -1px;
170
    width: 24px;
171
    height: 27px;
172
  }
173
  .menu .ico-settings {
174
    background-position: -97px -2px;
175
    width: 26px;
176
    height: 27px;
177
  }
178
  .menu a:hover {
179
    opacity:.75
180
  }
 

Untitled

CSSDeck G+