Advertisement
Guest User

Twitter - Old Design Code

a guest
Feb 4th, 2014
1,250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 17.35 KB | None | 0 0
  1. /*
  2.  * Colors
  3.  *
  4.  * Blue: #55acee
  5.  * Graphite: #66757f
  6.  * Graphite light: #99aab5
  7.  * Graphite lighter: #ccd6dd
  8.  * Web topbar light: #c4e2f9
  9.  *
  10.  * iOS topbar: #54acef
  11.  * iOS topbar dark: #3886c1
  12.  * iOS topbar light: #88c9f9
  13.  *
  14.  * Retweet (green): #77B255
  15.  * Favorite (orange): #ffac33
  16.  * iOS Favorite (yellow): #ffcc4d
  17.  */
  18.  
  19.  
  20. /*
  21.  * Globals
  22.  */
  23.  
  24. /* Prevent user backgrounds */
  25. /* We scope this to the .logged-in so that iframes in Chrome don't inherit the background change */
  26. body.logged-in {
  27.   background-color: #fafafa !important;
  28. }
  29.  
  30.  
  31. /*
  32.  * Reset theme styles
  33.  */
  34.  
  35. /* Link colors */
  36. a, .btn-link, .btn-link:focus, .icon-btn, .pretty-link b, .pretty-link:hover s, .pretty-link:hover b, .pretty-link:focus s, .pretty-link:focus b, .metadata a:hover, .metadata a:focus, .account-group:hover .fullname, .account-group:focus .fullname, .account-summary:focus .fullname, .message .message-text a, .stats a strong, .plain-btn:hover, .plain-btn:focus, .dropdown.open .user-dropdown.plain-btn, .open > .plain-btn, #global-actions .new:before, .module .list-link:hover, .module .list-link:focus, .stats a:hover, .stats a:hover strong, .stats a:focus, .stats a:focus strong, .profile-modal-header .fullname a:hover, .profile-modal-header .username a:hover, .profile-modal-header .fullname a:focus, .profile-modal-header .username a:focus, .story-article:hover .metadata, .story-article .metadata a:focus, .find-friends-sources li:hover .source, .stream-item a:hover .fullname, .stream-item a:focus .fullname, .stream-item .view-all-supplements:hover, .stream-item .view-all-supplements:focus, .tweet .time a:hover, .tweet .time a:focus, .tweet-actions a, .tweet .details.with-icn b, .tweet .details.with-icn .Icon, .stream-item:hover .original-tweet .expand-action-wrapper, .stream-item .original-tweet.focus .expand-action-wrapper, .opened-tweet.original-tweet .expand-action-wrapper, .stream-item:hover .original-tweet .details b, .stream-item .original-tweet.focus .details b, .stream-item.open .original-tweet .details b, .simple-tweet:hover .details b, .simple-tweet.focus .details b, .simple-tweet.open .details b, .simple-tweet:hover .details .expand-action-wrapper, .simple-tweet.focus .details .expand-action-wrapper, .simple-tweet.open .details .collapse-action-wrapper, .simple-tweet:hover .details .simple-details-link, .simple-tweet.focus .details .simple-details-link, .client-and-actions a:hover, .client-and-actions a:focus, .dismiss-promoted:hover b, .tweet .context .pretty-link:hover s, .tweet .context .pretty-link:hover b, .tweet .context .pretty-link:focus s, .tweet .context .pretty-link:focus b, .list .username a:hover, .list .username a:focus, .list-membership-container .create-a-list, .list-membership-container .create-a-list:hover, .story-header:hover .view-tweets, .card .list-details a:hover, .card .list-details a:focus, .card .card-body:hover .attribution, .card .card-body .attribution:focus, .events-card .card-body:hover .attribution, .events-card .card-body .attribution:focus, .new-tweets-bar, .onebox .soccer ul.ticker a:hover, .onebox .soccer ul.ticker a:focus, .discover-item-actions a, .disco-stream-item.disco_exp_actions_on_btm .more-tweet-actions .btn-link, .disco-stream-item.disco_exp_actions_on_btm_without_stats .more-tweet-actions .btn-link, .remove-background-btn, .stream-item-activity-me .latest-tweet .tweet-row a:hover, .stream-item-activity-me .latest-tweet .tweet-row a:focus, .stream-item-activity-me .latest-tweet .tweet-row a:hover b, .stream-item-activity-me .latest-tweet .tweet-row a:focus b
  37. {
  38.   color: #3886c1 !important;
  39. }
  40. s, .pretty-link:hover s, .pretty-link:focus s, .stream-item-activity-me .latest-tweet .tweet-row a:hover s, .stream-item-activity-me .latest-tweet .tweet-row a:focus s {
  41.  color: inherit !important;
  42. }
  43.  
  44. /* Undo the overrides of the giant block above */
  45. .tweet .context .pretty-link s,
  46. .tweet .context .pretty-link b,
  47. .Footer-link,
  48. .stream-item-activity-me .latest-tweet .tweet-row,
  49. .stream-item-activity-me .latest-tweet .tweet-row a,
  50. .stream-item-activity-me .latest-tweet .tweet-row b {
  51.   color: #999 !important;
  52. }
  53. .profile-header .profile-card-inner h1,
  54. .profile-header .profile-card-inner h2,
  55. .profile-header .profile-card-inner p,
  56. .profile-header .profile-card-inner s,
  57. .profile-header .profile-card-inner a,
  58. .profile-header .profile-card-inner a b,
  59. .profile-header .profile-card-inner a:hover s,
  60. .profile-header .profile-card-inner a:hover b,
  61. .enhanced-mini-profile .mini-profile .profile-summary a:hover .fullname,
  62. .enhanced-mini-profile .mini-profile .profile-summary a:hover .screen-name {
  63.   color: #fff !important;
  64. }
  65.  
  66. /* Background styles */
  67. .dropdown-menu li > a:hover,
  68. .dropdown-menu li > a:focus,
  69. .dropdown-menu .dropdown-link:hover,
  70. .dropdown-menu .dropdown-link:focus,
  71. .dropdown-menu li:hover .dropdown-link,
  72. .dropdown-menu li:focus .dropdown-link,
  73. .dropdown-menu .typeahead-recent-search-item.selected,
  74. .dropdown-menu .typeahead-saved-search-item.selected,
  75. .dropdown-menu .selected a,
  76. .dropdown-menu .dropdown-link.selected {
  77.   background-color: #54acef !important;
  78.   color: #fff !important;
  79. }
  80.  
  81. /* Move style overrides for embeds */
  82. .u-textInheritAll,
  83. .u-textInheritAll:hover,
  84. .u-textInheritAll:focus,
  85. .u-textInheritAll:active {
  86.   color: inherit !important;
  87. }
  88.  
  89. /*
  90.  * Buttons
  91.  */
  92.  
  93. /* Commented out for now while I work on improving this stuff
  94.  
  95. .btn:not(.plain-btn):not(.follow-button) {
  96.   color: #fff !important;
  97.   background-color: #55acee !important;
  98.   background-image: none !important;
  99.   border-color: #55acee !important;
  100. }
  101. .btn:focus {
  102.   box-shadow: none !important;
  103. }
  104. .btn .Icon {
  105.   color: inherit !important;
  106. }
  107. */
  108.  
  109.  
  110. /*
  111.  * Undo overzealous focus state
  112.  */
  113.  
  114. .selected-stream-item:focus {
  115.   box-shadow: none !important;
  116. }
  117.  
  118.  
  119. /*
  120.  * Undo blocks of accent color bullshit
  121.  */
  122.  
  123. .username {
  124.   color: #99aab5 !important;
  125. }
  126. .time,
  127. .time a,
  128. .metadata,
  129. .metadata button.btn-link,
  130. .metadata a {
  131.   color: #ccd6dd !important;
  132. }
  133. .username:hover,
  134. .time:hover,
  135. .time a:hover,
  136. .metadata:hover,
  137. .metadata button.btn-link:hover,
  138. .metadata a:hover {
  139.   color: #55acee !important;
  140. }
  141.  
  142.  
  143.  
  144. /*
  145.  * Inverted topbar
  146.  */
  147.  
  148. /* Tweak the borders */
  149. .topbar,
  150. .global-nav {
  151.   border-bottom: 0 !important;
  152. }
  153. .global-nav-inner {
  154.   background-color: #55acee !important;
  155. }
  156.  
  157. /* Container should go full width */
  158. .global-nav .container {
  159.   max-width: none !important;
  160.   padding-left: 10px !important;
  161.   padding-right: 5px !important;
  162. }
  163.  
  164. /* Bird */
  165. .bird-topbar-etched {
  166.   position: absolute !important;
  167.   top: 0 !important;
  168.   left: 50% !important;
  169.   margin-left: -12px !important;
  170.   color: #fff !important;
  171. }
  172.  
  173. /* Nav */
  174. #global-actions > li > a {
  175.   color: #c4e2f9 !important;
  176.   border: 0 !important;
  177.   height: 46px !important;
  178.   transition: all .1s ease-in-out !important;
  179. }
  180. #global-actions > li:hover > a {
  181.   color: #fff !important;
  182. }
  183. #global-actions > li.active > a,
  184. #global-actions > li.active:hover > a {
  185.   color: #fff !important;
  186. }
  187.  
  188. /* Neutralize the unread nav indicator */
  189. #global-actions .new:before {
  190.   color: #fff !important;
  191. }
  192.  
  193. /* Tweak the DM and settings nav links to match */
  194. .global-nav .pull-right .right-actions {
  195.   margin-right: -5px !important;
  196. }
  197. .nav.right-actions > li > a,
  198. .nav.right-actions > li > button {
  199.   color: #c4e2f9 !important;
  200.   opacity: 1 !important;
  201. }
  202. .nav.right-actions > li > a:hover,
  203. .nav.right-actions > li > button:hover,
  204. .nav.right-actions > li > a:focus,
  205. .nav.right-actions > li > button:focus {
  206.   color: #fff !important;
  207. }
  208.  
  209. /* DM unread */
  210. .global-dm-nav.new.with-count .dm-new {
  211.   background-color: #54acef !important;
  212. }
  213.  
  214. /* Normalize the DM and Settings icons */
  215. .nav.right-actions > li > a,
  216. .nav.right-actions > li > button {
  217.   /* Undo the `height: 100%;` and manually reset it to 46px so that tooltips for each link are properly aligned. */
  218.   height: 46px !important;
  219. }
  220. /* Undo the line-height that's added to only the DM icon, which overrides the original `line-height` that's been set on the icon base class. */
  221. .nav.right-actions .global-dm-nav .Icon {
  222.   line-height: 1 !important;
  223. }
  224.  
  225. /* Restyle the new tweet icon to blend into the topbar */
  226. #global-new-tweet-button {
  227.   margin-top: 0 !important;
  228.   padding: 0 !important;
  229.   color: #c4e2f9 !important;
  230.   background-color: transparent !important;
  231.   background-image: none !important;
  232.   border: 0 !important;
  233.   opacity: 1 !important;
  234. }
  235. #global-new-tweet-button:hover {
  236.   color: #fff !important;
  237. }
  238.  
  239.  
  240. /* Search field */
  241. .global-nav .form-search .search-input {
  242.   font-size: 13px !important;
  243.   line-height: 18px !important; /* Vertically center the text */
  244.   color: #81c1f2 !important;
  245.   background-color: #3886c1 !important;
  246.   opacity: 1 !important;
  247. }
  248. .global-nav .form-search .search-input:placeholder {
  249.   color: #81c1f2 !important;
  250. }
  251.  
  252. /* Make body match topbar */
  253. .wrapper,
  254. .wrapper-narrow {
  255.   padding-top: 60px !important;
  256.   /* Undo the now pointless side padding here since the white/black wash is gone */
  257.   padding-left: 0 !important;
  258.   padding-right: 0 !important;
  259. }
  260. /* Widen the .wrapper to make the gutter betwee dashboard and main content 14px, which then equals the padding adjusted padding between topbar and content (60px above). */
  261. .wrapper {
  262.   width: 894px !important;
  263. }
  264. /* Reiterate to keep permalinks from becoming too wide */
  265. .wrapper-permalink {
  266.   width: 592px !important;
  267. }
  268.  
  269.  
  270. /*
  271.  * Sidebar modules
  272.  *
  273.  * Scoped to .dashboard to avoid interference with modal modules.
  274.  */
  275.  
  276. .module {
  277.   margin-bottom: 14px !important; /* Match gutters between dashboard and main content */
  278.   background-color: #fff !important;
  279.   border: 1px solid rgba(0,0,0,.1) !important;
  280. }
  281. .module .flex-module {
  282.   border: 0 !important;
  283. }
  284.  
  285. /* Profile */
  286. .mini-profile {
  287.   position: relative !important;
  288.   padding-top: 190px !important;
  289. }
  290. .mini-profile .profile-summary {
  291.   position: absolute !important;
  292.   top: -1px !important;
  293.   left: -1px !important;
  294.   right: -1px !important;
  295.   background-color: transparent !important;
  296. }
  297.  
  298. .home-tweet-box,
  299. .rosetta .dm-tweetbox,
  300. .rosetta .WebNotification-buffer--altColor,
  301. .content-main .conversations-enabled .expansion-container .inline-reply-tweetbox {
  302.   background-color: #f9f9f9 !important;
  303. }
  304. .home-tweet-box {
  305.   border-top: 1px solid #eee !important;
  306. }
  307. .tweet-box[contenteditable="true"] {
  308.   border-color: #ddd !important;
  309. }
  310.  
  311. /* Outright hide WTF */
  312. .dashboard .wtf-module {
  313.   display: none !important;
  314. }
  315.  
  316. /* Nav links */
  317. .module .list-link,
  318. .search-more-options .btn-link {
  319.   border: 0 !important;
  320. }
  321. .module .js-nav-links > li + li .list-link {
  322.   border-top: 1px solid #eee !important;
  323. }
  324.  
  325. /* Make nav links gray instead of link color */
  326. .module .list-link,
  327. .search-more-options .btn-link {
  328.   color: #99aab5 !important;
  329. }
  330. .module .list-link .Icon--caretRight,
  331. .search-more-options .btn-link .Icon--caretRight {
  332.   opacity: .5 !important;
  333. }
  334. /* Overrides for active state */
  335. .module .active .list-link,
  336. .search-more-options .active .btn-link {
  337.   color: #66757f !important;
  338. }
  339. .module .list-link .active .Icon--caretRight,
  340. .search-more-options .active .btn-link .Icon--caretRight {
  341.   opacity: 1 !important;
  342. }
  343.  
  344.  
  345. /* Stats (for dashboard and mini profiles) */
  346. .stats {
  347.   margin-left: 1px !important;
  348.   margin-right: 1px !important;
  349.   border: 0 !important;
  350.   background-color: transparent !important;
  351. }
  352. .stats a {
  353.   color: #99aab5 !important;
  354. }
  355. .stats a strong {
  356.   padding-top: 2px !important;
  357.   color: #66757f !important;
  358.   font-size: 14px !important;
  359.   font-weight: 500 !important;
  360.   line-height: 1 !important;
  361. }
  362. .stats a:hover,
  363. .stats a:hover strong {
  364.   color: #55acee !important;
  365. }
  366.  
  367. /* Make dashboard stats equal width */
  368. .dashboard .stats {
  369.   display: table !important;
  370.   table-layout: fixed !important;
  371.   width: 100% !important;
  372.   padding: 0 !important;
  373. }
  374. .dashboard .stats li {
  375.   display: table-cell !important;
  376.   width: 1% !important;
  377.   float: none !important;
  378.   margin: 0 !important;
  379. }
  380. .dashboard .stats li a {
  381.   display: block !important;
  382.   float: none !important;
  383.   padding: 10px !important;
  384.   line-height: 1 !important;
  385. }
  386. .dashboard .stats li + li {
  387.   border-left: 1px solid #eee !important;
  388. }
  389.  
  390.  
  391. /*
  392.  * Main content area
  393.  */
  394.  
  395. .content-header,
  396. .content-no-header,
  397. .stream-item,
  398. .stream-item.open,
  399. .unfocusable-stream-item {
  400.   border-color: rgba(0,0,0,.1) !important;
  401. }
  402.  
  403. /* New tweets loading bar */
  404. .new-tweets-bar {
  405.   margin-right: -1px !important;
  406.   margin-left: -1px !important;
  407.   font-weight: 500 !important;
  408.   color: #fff !important;
  409.   background-color: #54acef !important;
  410.   border-color: #54acef !important;
  411.   transition: all .1s ease-in-out;
  412. }
  413. .new-tweets-bar:hover {
  414.   background-color: #3886c1 !important;
  415.   border-color: #3886c1 !important;
  416. }
  417.  
  418.  
  419. /*
  420.  * Tweets
  421.  */
  422.  
  423. .tweet {
  424.   border-bottom-color: #eee !important;
  425. }
  426.  
  427. /* Move the time back to the right */
  428. .tweet .time {
  429.   float: right !important;
  430. }
  431. /* Hide the bullet before the timestamp */
  432. .tweet .time:before {
  433.   display: none !important;
  434. }
  435.  
  436. .tweet .stream-item-footer {
  437.   max-height: 24px !important;
  438. }
  439. .tweet .bottom-tweet-actions {
  440.   height: 24px !important;
  441.   margin-top: 5px !important;
  442. }
  443. .content-main .expansion-container .tweet.ancestor,
  444. .content-main .expansion-container .tweet.descendant,
  445. .content-main .expansion-container .view-more-container,
  446. .content-main .expansion-container .inline-reply-tweetbox,
  447. .original-tweet:hover,
  448. .conversation-module .conversation-tweet-item .tweet:hover {
  449.   background-color: #f9f9f9 !important;
  450. }
  451. .open .tweet:hover,
  452. .original-tweet-container .original-tweet {
  453.   background-color: #fff !important;
  454. }
  455.  
  456. /* Tweet actions */
  457. .tweet-actions {
  458.   position: static !important;
  459.   float: none !important;
  460.   padding-left: 0 !important;
  461.   margin-left: -10px !important;
  462.   background-color: transparent !important;
  463.   box-shadow: none !important;
  464. }
  465. .tweet-actions a,
  466. .tweet-actions .btn-link {
  467.   margin-left: 0 !important;
  468.   padding: 3px 10px !important;
  469.   color: #ccd6dd !important;
  470. }
  471. .tweet:hover .tweet-actions a,
  472. .tweet:hover .tweet-actions .btn-link {
  473.   color: #99aab5 !important;
  474. }
  475.  
  476. /* Recolor the favorited Favorite star */
  477. .favorited .Icon--favorite,
  478. .Icon--favorited {
  479.   color: #ffcc4d !important;
  480. }
  481.  
  482. /* Hide the text */
  483. .tweet-actions b {
  484.   display: none !important;
  485. }
  486. /* Twerk the icons */
  487. .tweet .tweet-actions .Icon {
  488.   font-size: 14px !important;
  489. }
  490.  
  491. /* Hide the details to make room for the tweet actions */
  492. .tweet .details,
  493. .client-and-actions {
  494.   display: none !important;
  495. }
  496.  
  497. /* Reapply tweet stats borders */
  498. .tweet .stats {
  499.   border-top: 1px solid #eee !important;
  500.   border-bottom: 1px solid #eee !important;
  501. }
  502.  
  503. /* Hide the inline replies caret */
  504. .inline-reply-caret {
  505.   display: none !important;
  506. }
  507.  
  508. /* Line */
  509. .vellip,
  510. .vellip:before,
  511. .vellip:after,
  512. .conversation-module > li:after,
  513. .conversation-module > li:before {
  514.   background-color: #99aab5 !important;
  515. }
  516.  
  517. /* Don't use inverted icons for Activity feed */
  518. .stream-item-activity-me .activity-type {
  519.   top: 9px !important;
  520. }
  521. .activity-type .Icon {
  522.   font-size: 14px !important;
  523.   width: 16px !important;
  524.   text-align: center !important;
  525. }
  526. .activity-type .Icon--retweeted:before,
  527. .context .with-icn .Icon--retweeted:before {
  528.   content: "\f152" !important;
  529. }
  530. .activity-type .Icon--favorited:before,
  531. .context .with-icn .Icon--favorited:before {
  532.   content: "\f147" !important;
  533.   color: #ffcc4d !important;
  534. }
  535. .activity-type .Icon--follower:before,
  536. .context .with-icn .Icon--follower:before {
  537.   content: "\f056" !important;
  538. }
  539.  
  540. /* Permalinks */
  541. .inline-reply-tweetbox,
  542. .modal-content .activity-content .stream-item {
  543.   background-color: #f9f9f9 !important;
  544. }
  545.  
  546. /* Hide Promoted tweets */
  547. .promoted-tweet {
  548.   display: none !important;
  549. }
  550.  
  551.  
  552. /*
  553.  * Inline content
  554.  */
  555.  
  556. /* Vine */
  557. .with-media-forward .expanded-content .card2 {
  558.   position: relative;
  559.   height: 215px !important;
  560.   margin-top: 10px !important;
  561. }
  562. .with-media-forward.opened-tweet .expanded-content .card2 {
  563.   height: auto !important;
  564. }
  565. .with-media-forward .expanded-content .card2 .media-preview {
  566.   top: 0 !important;
  567. }
  568.  
  569.  
  570. /*
  571.  * Modals
  572.  */
  573.  
  574. .modal-header,
  575. .gallery-container .modal-header {
  576.   background-image: none !important;
  577.   /* Prevent accent color */
  578.   border-bottom-color: #eee !important;
  579. }
  580. .modal .module {
  581.   border: 0 !important;
  582. }
  583.  
  584. /* New tweet modal */
  585. #global-tweet-dialog .modal-footer {
  586.   /* Prevent accent color */
  587.   background-color: #f5f5f5 !important;
  588. }
  589.  
  590.  
  591. /*
  592.  * Profile page
  593.  */
  594.  
  595. /* Enable header image to be positioned absolutely so that it overlays the module border */
  596. .profile-card.profile-header {
  597.   position: relative !important;
  598.   width: 588px !important; /* Make it match the width of the tweets */
  599.   padding-top: 295px !important; /* Create empty space for the positioned profile header */
  600. }
  601. /* Re-position the header image to overlay the module border */
  602. .profile-card.profile-header .profile-header-inner {
  603.   position: absolute !important;
  604.   top: -1px !important;
  605.   right: -1px !important;
  606.   left: -1px !important;
  607.   margin-bottom: 0 !important;
  608. }
  609.  
  610. /* Reset the profile header in a modal */
  611. #profile_popup-dialog .profile-card.profile-header {
  612.   width: 520px !important;
  613.   padding-top: 0 !important;
  614. }
  615. #profile_popup-dialog .profile-card.profile-header .profile-header-inner {
  616.   position: static !important;
  617. }
  618.  
  619. /* Hide tweet actions in recent tweets */
  620. .recent-tweets .tweet-actions {
  621.   display: none !important;
  622. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement