-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsource.styl
1406 lines (1013 loc) · 27.4 KB
/
source.styl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
main-bg = #333
sec-bg = #444
third-bg = #555
code-bg = #2b2b2b
main-font-color = #bbb
heading = #b9c5cf
link-default = #93b2d0
link-hover = #738290
dark-green = #294436
dark-blue = #385570
dark-grey = #484a4a
hljs-default = #a9b7c6
hljs-comment = gray
hljs-string = #390
hljs-keyword = #cc7833
hljs-literal = #9876aa
hljs-tag = #63a35c
hljs-name = #d0d0ff
hljs-title = #ffc66d
hljs-reserved = #1d3e81
font-blue = #49f
font-red = #f66
font-green = #0d0
comment-new = #445
comment-ts = #454
comment-author = #554
epic_fail = #785555
fail = #827454
normal = #657380
successful = #707855
negative = #a44
positive = #4a4
code-font = Consolas, Menlo, Monaco, 'Courier New', monospace
filter(value)
-webkit-filter: value
filter: value
img_grayscale(hover = true)
opacity: 0.5
transition: all .3s
filter(grayscale(.8))
&.image-inverted
filter(grayscale(.8) invert(1))
if hover
&:hover
opacity: 1
filter(grayscale(0))
&.image-inverted:hover
filter(grayscale(0) invert(1))
button-hover(color = sec-bg)
background-color: color
&:hover
background-color: lighten(color, 14)
link(color = link-default)
color: color
&:visited:not(.button)
color: link-hover
// Common Styles
#TMpanel
z-index: 2
background: #111
border: none
position: relative
.container
.bmenu
a
color: link-default
&.current
color: link-hover
&_inner a[href^="http://bit.ly"]
color: darken(link-default, 30) !important
body
background-color: main-bg
color: main-font-color
&.nl .layout
background-color: main-bg
// For habr info page (Improve?)
.h-info p
color: main-font-color
#layout, #xpanel, .to_top
z-index: 1
#edit_tags_form
background: transparent
.company_header, .user_header, .rotated_posts, #footer
z-index: 0
position: relative
h1, h2, h3, h4, h5, h6
color: heading
a
link()
.top_banner img, .announce img, .author-info__image-pic, .html_banner
img_grayscale()
.html_banner
background: none
border: 1px solid #838383
.icon_briefcase2, .post .hubs
&::before
img_grayscale(false)
.checkbox, .radio
&__label
color: main-font-color
.checkbox__label::before
background-color: third-bg
.grey a, a.grey
color: link-hover
input[type=text], .hubs_list .hubs_suggest input, .companies_list .companies_suggest input
background: sec-bg
color: white
border-color: third-bg
form .item, form .digest, .inner_search_form
label, span
color: #838383
input
&[type=text], &[type=email], &[type=password]
@extends input[type=text]
.notes table tr td
border-bottom-color: third-bg
#people-tags li a, .habr-badge
color: white
.columns-group__column + .columns-group__column
border-color: transparent
.layout__row_footer
background: third-bg
&-links
background: sec-bg
.icon-svg_logo-habrahabr
color: inherit
// Access denied page TODO
#logo, #reg-wrapper
z-index: 1
position: relative
#reg-wrapper
border-color: transparent
.main
h1, h2, h3, h4, h5, h6
color: heading
// end
.rotated_posts
border: none
.page_head
z-index: 200
.page-nav
a, a:visited:not(.button)
color: link-default
#nav-pages li em
background: #6da3bd
color: #333
.page_head h2.title
color: heading
.user_header h2.username a,
.page_head h2.title
color: link-default
.hubs_list ul li.hidden
display: none
&[style="display: list-item;"]
display: inline-block !important
.social_accounts a
opacity: .5
transition: opacity .3s
&:hover
opacity: 1
.author-info
background: transparent
&__name, &__nickname
color: #6a6a6a
.author-panel
border:none
.btn_navbar_user-dropdown>img
img_grayscale()
.user_profile .summary img
img_grayscale()
.profile-section__about-text
color: main-font-color
.info_page
h1, h2, h3, h4, h5, h6
color: darken(#ff6000, 10)
#yandex_ad, #yandex_ad_bottom
background: main-bg !important
.yap-yandex_ad-posterVertical .yap-logo-block__text
color: link-default !important
.yap-yandex_ad-posterVertical .yap-layout_block_poster .yap-layout__title,
.yap-yandex_ad-posterVertical .yap-layout_block_poster .yap-layout__slider,
.yap-yandex_ad-posterVertical .yap-layout_block_poster .yap-layout__warning
background: rgba(255, 255, 255, .5) !important
.yap-yandex_ad-posterVertical .yap-layout_block_poster .yap-layout__item_picture_false
background: transparent !important
.yap-yandex_ad-posterVertical .yap-layout__item
border-color: inherit !important
.yap-yandex_ad-posterVertical .yap-layout__item_abused,
.yap-yandex_ad-posterVertical .yap-layout_block_poster .yap-layout__item_abused
background: transparent !important
.search-field__input[type=text]
@extends input[type=text]
.post-type-selector
background-color: sec-bg
#global_notify, .global_notify
.inner_notice
background: #454
color: inherit
// Navbar
body.nl .layout__row_navbar
background-color: #2e2e2e
border-color: #222
.main-navbar
background-color: inherit
.badge:not(:empty)
background: #79b
box-sizing: content-box
color: black
text-shadow: none
body.nl .layout__elevator
&:hover
background: third-bg
&:active
background: sec-bg
// Posts list
.posts_list
.news-block__title
color: heading
.news-topic__title
link()
// Comments list
.comments
&-placeholder__text
color: inherit
&-form__placeholder
background: transparent
border-color: gray
.form-placeholder
&__title
color: heading
&__text
color: inherit
.comment__message, .comment-form__preview
color: main-font-color
.comments_list
.comment_item_plain .post_info .count
color: negative
.comment_item
.comment_body.is_selected
&::after
content: "˃"
font-family: code-font
background: none
font-weight: 600
font-size: 1.2em
line-height: 1.7em
text-align: center
color: lighten(comment-new, 30)
.info .folding-dot
right: 21px
.message[class*=bad]
background: transparent
.info
&.is_new
background: comment-new
&.is_topic_starter
background: comment-ts
&.is_author
background: comment-author
.folding-dot
background-image: none
&::before
content: '・・・・・・・・・・・・・・・・';
display: block;
position: absolute;
top: -9px;
right: -2.5px;
font-size: 1.2em;
color: lightgray;
letter-spacing: 6.8px;
.voting .mark
.negative span
color: negative
.positive span
color: positive
time
color: #aaa
&:hover
color: #aaa
a.avatar img, .comment-item__avatar
img_grayscale()
.comment-item__avatar-img_default::before
background-color: transparent
.comment__head_topic-author
background-color: dark-green
.comment__date-time
color: main-font-color
.user-info__nickname_comment
color: link-default
.user-info__nickname:hover, .user-info__nickname:active
color: link-hover
// Content
.content_left
.submenu, table.menu tr td a
background: third-bg
border: 0
color: white
.submenu .item.active, table.menu tr td.active a
background: sec-bg
border: 0
color: #d3e2f0
.submenu .item
a
color: link-default
&.active a
color: link-hover
table.menu tr td
&, &.active
border-color: transparent
span.count_new
color: positive
.tabs
.tabs-menu, .menu_sub
background: rgba(0, 0, 0, .1)
.tabs-menu .tab-item
border-right-color: rgba(0, 0, 0, .3)
span
color: main-font-color
&:hover
background: rgba(255, 255, 255 .1)
&_current
background: rgba(0, 0, 0, .2)
.h-info
li, p
color: main-font-color
// Wtrfall
.wtf_bc
&--skin
&--bg-primary&--bg-primary
background: inherit !important
&--sec-text&--sec-text
color: rgba(255, 255, 255, .3) !important
&--main-text&--main-text
color: inherit !important
&--bg-gray&--bg-gray
background: sec-bg !important
border: 0 !important
.wtf_broadcast &-feed &--feed-item&--hot &--feed-item--bg&--feed-item--bg
background: inherit !important
.wtf_broadcast &--header&--header--updates&--header&--header--updates
background: darken(#25A971, 10)
&:hover
background: darken(#28B579, 9)
.wtf_broadcast &--need-more-items &--need-more-items--button&--need-more-items--button
background: darken(#407BDC, 10)
&:hover
background: darken(#3C72CC, 9)
&--skin--link&--skin--link
color: link-default !important
&:hover
color: link-hover !important
&--userpic, &--og--pic
img_grayscale()
.timeline__item
color: inherit !important
.default-block
background: #222
opacity: .5 !important
transition: all .3s
&:hover
opacity: 1 !important
&__header
border-bottom: 1px solid dark-grey
&-title
color: link-default !important
&:hover
color: link-hover !important
&__polling-title
color: main-font-color
// block with polling and results. Shouldn't be transparent
.default_block_polling
opacity: 1 !important
.poll-result
&__data-label
color: main-font-color
&__progress
background: #78A7C4;
&__progress_winner
background: #2B6DAC
&__polling-title
color: main-font-color
.checkbox__label_poll,
.radio__label_poll
color: main-font-color
.stacked-menu
&__item-text
color: link-default
.toggle-menu
border: none
background: sec-bg
.toggle-menu__most-read,
.toggle-menu_most-comments
background-color: transparent
.toggle-menu__item-link
color: main-font-color
border: none
.toggle-menu__item-link_active
color: heading
background: third-bg
// Sidebar
.sidebar_right // TODO merge with bottom promo?
img, iframe, embed
img_grayscale()
.block, .sidebar-block
background: #222
opacity: .5 !important
transition: all .3s
&.best_company .company_info p a,
&.new_vacancies .vacanies .job_item a,
&.freelansim .tasks .task a
link()
&:hover
opacity: 1 !important
.for_authors_help
.row .text
color: #858585
.line
background: third-bg !important
border-top: 1px solid main-bg
.about_exchange, .for_authors_help
.row .g-icon
color: rgba(255, 255, 255, .2)
> .show_more
background: #383838
> .line-r
background: #504E4E
&::after
border-color: #646464
&.twitter_stream .tweets .tweet .text
color: #aaa
a
color: #8392a0 // TODO
&.mobile_applications
.app_widget
.app_title
color: #5f5f5f
.description
color: #6c6362
.posts_list .post_item
a.post_name
color: #b5b5b5
&:visited
color: #666
.count
color: negative
.xyz_wrapper
img_grayscale()
&_inner
background: none
border: 1px solid #838383
.post__type-label
background-color: third-bg
border: none
.post-info__title
color: heading
// Conversation page
.page__body_conversation
.content-list__item
&_bordered
border-color: third-bg
&_conversation:hover
background-color: third-bg
.user-message
&__username
color: #aaa
&__body
color: #ccc
img
img_grayscale()
&_my .user-message__body
color: #bc8
.media-obj__image
img_grayscale()
.messages .message
border-top: 1px solid third-bg
.info
.time
color: white
.media-obj__image
img_grayscale()
.login a
color: #ddd
&:hover
color: #aaa
&.new .info
background: comment-new
&.my .info
background: comment-author
.conversations .conversation
&.new, &:hover
background: sec-bg
border-color: sec-bg
border-bottom-color: third-bg
a.conversation_link
link()
a.delete
filter(invert(1))
.post-stats
border: none
// Post
.post
.post__title
&, a.post_title, a.post__title_link, .post__title-text
link(heading)
.flag
cursor: default
img_grayscale()
.hubs a.subscribed
color: positive
.poll
.poll_title
color: #999
table.result tr td strong
color: #999
ul.tags li a
link()
div.tags
color: gray
.fb_iframe_widget
background: #bbb
twitterwidget::shadow
.SandboxRoot
color: inherit
.EmbeddedTweet
background: none
.FollowButton
opacity: .5
.TweetAuthor-avatar
img_grayscale()
.MediaCard-media
img_grayscale()
.content a:not(.habracut)
link()
&__tags
color: inherit
.post__text-html
color: main-font-color
blockquote
background-color: rgba(67, 67, 67, .6);
.article
.megapost-cover__img
img_grayscale()
&__body
border-color: transparent
&-text, .t-text
color: inherit
.t-heading, .t-title
color: heading
iframe, object, img
img_grayscale()
[class^=t-container_]
background-color: rgba(0, 0, 0, .6);
transition: all .3s
&:hover
background-color: transparent
.postinfo-panel
background-color: transparent
&__button-more_habr
color: dark-blue
border-color: dark-blue
&:hover
background-color: dark-blue
.clear
clear: both
span.g-icon.g-icon-twitter::before
content: ''
.t-carousel
&__item__img
img_grayscale()
&__indicator
background-color: #ddd !important
&__arrow
border-color: #ddd !important
// Infopanel
.postinfo-panel
background-color: transparent
border-color: sec-bg
.postinfo-panel__item
.post-author__pic, .post-author__pic_default
img_grayscale(false)
&::before
background-color: transparent
&:hover
.post-author__pic, .post-author__pic_default
opacity: 1
filter(grayscale(0))
.post-author__name
color: main-font-color
.voting-wjt, .post-comments
border-color: sec-bg
.post-share a
opacity: .5
transition: opacity .3s
&:hover
opacity: 1
.post-type
background-color: transparent
border-color: sec-bg
// HTML form (post, comment, pm)
.post__text-html, .comment__message
h1, h2, h3, h4, h5, h6
color: heading
a
link()
.spoiler .spoiler_text
background: sec-bg
border: 0
.MJXc-display
overflow-y: hidden
overflow-x: auto
.mjx-math
color: hljs-default
padding: .2em
margin: -.2em 0
font
&[color="#0000FF"], &[color="blue"]
color: font-blue
&[color="#FF0000"], &[color="red"]
color: font-red
&[color="#00FF00"], &[color="green"]
color: font-green
&[color="#000000"], &[color="black"]
color: main-font-color
iframe, object, img
img_grayscale()
img
filter(invert(0))
&.image-inverted
filter(invert(1))
&.message a.unchecked_link
&, &:visited
color: #b17474 !important
.post__text-html img
img_grayscale()
// Code highlight
.madskillz_page, .help_holder, .post__text-html, .comment__message
code
border: 0
display: inline-block
padding: .2em
margin: -.2em 0
pre code
background: code-bg
border: 0
display: block
&, &.nohighlight
color: hljs-default
code, pre code.hljs
color: hljs-default
background: code-bg
font-family: code-font
font-size: 13px
code.hljs
.hljs
&-comment, &-javadoc, &-shebang, &-quote
color: hljs-comment
&-string, &-doctag, &-sqbracket, &-regexp, &-attribute, &-emphasis, &-blockquote,
&-link_label, &-strong &-preprocessor, &-preprocessor &-title
color: hljs-string
&-keyword, &-javadoctag, &-at_rule, &-type, &-typename, &-important,
&-subst, &-selector-tag, &-phpdoc, &-setting, &-request
color: hljs-keyword
&-literal, &-number, &-variable, &-hexcolor, &-built_in, &-function,
&-attribute, &-tag &-attr, &-template-variable, &-common, &-cbracket,
&-link_reference, &-prompt, &-symbol, &-params, &-bullet, &-builtin-name
color: hljs-literal
&-tag, &-xmlDocTag
color: hljs-tag
&-name, &-attr_selector, &-constant, &-value, &-tag &-title
color: hljs-name
&-title, &-class &-title, &-parent, &-id, &-class, &-pseudo, &-pragma,
&-sub, &-decorator, &-selector-id, &-section
color: hljs-title
&-reserved
color: hljs-reserved
&-link_url
text-decoration: underline
&.javascript .hljs-tag
color: hljs-keyword
&.rust .hljs-preprocessor
color: hljs-comment
&.coffeescript .hljs
&-subst
color: hljs-string
&-attribute
color: hljs-reserved
&.makefile .hljs
&-variable
color: hljs-string
&-keyword
color: hljs-literal
&.markdown .hljs-value
color: hljs-string
&.nginx .hljs
&-number
color: hljs-string
&-title
color: hljs-keyword
&-variable
color: hljs-name
&.objectivec .hljs-preprocessor
color: hljs-keyword
&.xml .hljs
&-value
color: hljs-string
&-title
color: hljs-tag
&-tag
color: hljs-name
&-attribute
color: hljs-title
&.less .hljs
&-built_in
color: hljs-string
&-tag
color: hljs-keyword
&.scss .hljs
&-built_in
color: hljs-string
&-tag
color: hljs-keyword